Mercurial > repos > iuc > ena_upload
comparison extract_tables.py @ 7:6f6537780379 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ena_upload commit 9961f24acebb17f837238df6541e1af59df1163b"
author | iuc |
---|---|
date | Thu, 24 Feb 2022 18:20:40 +0000 |
parents | 57251c760cab |
children | a62c4a11a67d |
comparison
equal
deleted
inserted
replaced
6:4aab5ae907b6 | 7:6f6537780379 |
---|---|
42 studies_table.write('\t'.join([study_alias, action, 'ENA_accession', study['title'], | 42 studies_table.write('\t'.join([study_alias, action, 'ENA_accession', study['title'], |
43 study['type'], study['abstract'], study['pubmed_id'], | 43 study['type'], study['abstract'], study['pubmed_id'], |
44 'ENA_submission_data'])) | 44 'ENA_submission_data'])) |
45 if "geo_location" in study['samples'][0].keys(): # sample belongs to a viral sample | 45 if "geo_location" in study['samples'][0].keys(): # sample belongs to a viral sample |
46 samples_table.write('\t'.join(['alias', 'status', 'accession', 'title', 'scientific_name', | 46 samples_table.write('\t'.join(['alias', 'status', 'accession', 'title', 'scientific_name', |
47 'taxon_id', 'sample_description', 'collection_date', | 47 'taxon_id', 'sample_description', 'collection date', |
48 'geographic_location', 'host_common_name', 'host_subject_id', | 48 'geographic location (country and/or sea)', 'host common name', 'host subject id', |
49 'host_health_state', 'host_sex', 'host_scientific_name', | 49 'host health state', 'host sex', 'host scientific name', |
50 'collector_name', 'collecting_institution', 'isolate', | 50 'collector name', 'collecting institution', 'isolate', |
51 'submission_date']) + '\n') | 51 'submission_date']) + '\n') |
52 else: | 52 else: |
53 samples_table.write('\t'.join(['alias', 'status', 'accession', 'title', 'scientific_name', | 53 samples_table.write('\t'.join(['alias', 'status', 'accession', 'title', 'scientific_name', |
54 'taxon_id', 'sample_description', 'submission_date']) + '\n') | 54 'taxon_id', 'sample_description', 'submission_date']) + '\n') |
55 for sample_index, sample in enumerate(study['samples']): | 55 for sample_index, sample in enumerate(study['samples']): |