Add new paths for spreadsheet ENCODE submission.
authorDiane Trout <diane@ghic.org>
Sat, 18 Feb 2017 00:48:03 +0000 (16:48 -0800)
committerDiane Trout <diane@ghic.org>
Sat, 18 Feb 2017 00:48:03 +0000 (16:48 -0800)
Added
 * /file/
 * /files/
 * /annotations/

htsworkflow/submission/encoded.py

index dc546ea6d2fc7ae5c241b78e4a084f45a3a72708..1db9a1164ce400ae1b9602acc1ad6cb2f5a304bd 100644 (file)
@@ -277,13 +277,14 @@ class ENCODED:
            Schema URL
         """
         collection_to_type = {
+            '/annotations/': 'annotation',
             '/biosamples/': 'biosample',
             '/datasets/': 'dataset',
             '/documents/': 'document',
             '/experiments/': 'experiment',
             '/libraries/': 'library',
             '/replicates/': 'replicate',
-            '/file/': 'file',
+            '/files/': 'file',
         }
         object_type = collection_to_type.get(object_type, object_type)
 
@@ -293,8 +294,10 @@ class ENCODED:
         """Lookup common object accession name given a collection name.
         """
         collection_to_accession_name = {
-            '/experiments/': 'experiment_accession',
+            '/annotations/': 'annotation_accession',
             '/biosamples/': 'biosample_accession',
+            '/experiments/': 'experiment_accession',
+            '/files/': 'file_accession',
             '/libraries/': 'library_accession',
             '/replicates/': 'uuid',
         }