NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Revised to be consistent.

...

If your user account has the Write or Own permission level on an existing collection in DME, you can use a CLU command to update the metadata of a data file in that collection. 

...

  1.  In your file system, create a JSON file that specifies the metadata for the data file:

    Code Block
    { 
        "metadataEntries": [
          {
            "attribute": "description",
            "value": "my-dataObject-description"
          },
          {
            "attribute": "my-second-attribute-name",
            "value": "my-second-attribute-value"
          }
        ]
    }
  2. Run the following command:

    Code Block
    dm_register_dataobject <description.json> <destination-path> [source-file]

    The following table describes each parameter:

    ParameterDescription
    <description.json>
    A path to the JSON file that specifies the metadata for the new data data file.
    <destination-path>
    A path within DME, including the name of the file you intend to upload. Specify where you want the system to create the new data fileupdate.

For example, the following command updates the metadata of the data.txt file in the Project1 collection in DME:

Code Block
dm_register_dataobject /cygdrive/c/Users/JaneDoe/my-metadata.json /Example_Archive/PI_Lab1/Project1/data.txt

The JSON file must contain metadata for the data file, data.txt.

For instructions on performing a similar task in the GUI, refer to Updating Metadata via the GUI.