NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

This page is a work in progress.

If your user account has the Write or Own permission level on an existing collection in DME, and if that existing collection has been configured to contain another collection, you can create an empty collection within that existing collection. 

To create an empty collection:

  1. In your file system, create a JSON file that specifies the metadata for the new collection, as follows:

    {
        "metadataEntries": [
            {
             "attribute": "project",
             "value": "my-project-name"
            },
            {
             "attribute": "collection_type",
             "value": "Folder"
            }
        ]
    }
  2. Run the following command:

    dm_register_collection <description.json> <destination-path>

    The following table describes each parameter:

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

    The following command registers the metadata specified in <description.json> to the <destination-path> in DME. 

For example, the following command creates a Project_New collection within the PI_Lab1 collection and applies to that new collection the metadata in the my-collection.json file:

dm_register_collection my-collection.json /TEST_Archive/PI_Lab1/Project_New

For instructions on performing similar tasks in the GUI, refer to the following pages:


  • No labels