NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Expanded the examples to have as much detail as the wiki page for the deprecated command.

...

The following example uses the credentials file in a non-default location to download a Project_1 collection from the PI_Lab1 collection in DME to a bucket1 bucket in a collectionA collection. 

Code Block
dm_download_collection_s3 /Example_Archive/PI_Lab1/Project_1 bucket1 collectionAbucket1 folder1/subfolder1 /cygdrive/c/Users/JaneDoe/aws/credentials

In this example, the command performs the following:

  • Locates or creates a folder1 folder in the bucket1 bucket.
  • Locates or creates a subfolder1 folder within the folder1 folder.
  • Downloads from DME all files in the Project_1 collection.
  • Saves those files in the subfolder1 folder with the same file names they have in DME. 

Multiple Collections Example

...

Code Block
dm_download_collection_s3 -f collection-list.txt bucket1 collectionAbucket1 folder1/subfolder1 

With the following code in the specified collection-list.txt file, the above command uses the credentials file in a default location to download multiple collections from various locations in DME.

Code Block
/Example_Archive/PI_Lab2/Project_1
/Example_Archive/PI_Lab2/Project_2
/Example_Archive/PI_Lab3/Project_1

In this example, the command performs the following:

  • Locates or creates a folder1 folder in the bucket1 bucket.
  • Locates or creates a subfolder1 folder within the folder1 folder.
  • Downloads from DME all files in the collections listed in the specified collection-list.txt file.
  • Saves those files in the subfolder1 folder with the same file names they have in DME.