From 5b4a25a005dd79e0d0751d855cc16ace45aa8188 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 17 Feb 2017 16:48:03 -0800 Subject: [PATCH] Add new paths for spreadsheet ENCODE submission. Added * /file/ * /files/ * /annotations/ --- htsworkflow/submission/encoded.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htsworkflow/submission/encoded.py b/htsworkflow/submission/encoded.py index dc546ea..1db9a11 100644 --- a/htsworkflow/submission/encoded.py +++ b/htsworkflow/submission/encoded.py @@ -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', } -- 2.30.2