# HG changeset patch # User ieguinoa # Date 1600807001 0 # Node ID 436da36c611423b574227ae564273aa8ca4ebdbc # Parent 91a3a617d94b3d496121c9830a3e8ff1abdf30d2 Uploaded diff -r 91a3a617d94b -r 436da36c6114 ena_upload.xml --- a/ena_upload.xml Fri Sep 18 14:29:47 2020 +0000 +++ b/ena_upload.xml Tue Sep 22 20:36:41 2020 +0000 @@ -1,6 +1,6 @@ - 0.1.7 + 0.1.8 ena-upload-cli @@ -69,6 +69,9 @@ --study $action_options.input_format_conditional.studies_users_table --run $action_options.input_format_conditional.runs_users_table --sample $action_options.input_format_conditional.samples_users_table + #if $action_options.input_format_conditional.viral_submission == "true": + --vir + #end if #else: --experiment $experiments_table_path --study $studies_table_path @@ -101,7 +104,7 @@ #end for $runs.append($run_files) #end for - $experiments.append({'title':str($experiment.experiment_title),'experiment_design':str($experiment.experiment_design),'library_strategy':str($experiment.library_strategy),'library_source':str($experiment.library_source),'library_selection':str($experiment.library_selection),'library_layout':str($experiment.library_layout),'insert_size':str($experiment.insert_size),'library_construction_protocol':str($experiment.library_construction_protocol),'platform':str($experiment.platform),'instrument_model':str($experiment.instrument_model),'runs':$runs}) + $experiments.append({'title':str($experiment.experiment_title),'experiment_design':str($experiment.experiment_design),'library_strategy':str($experiment.library_strategy),'library_source':str($experiment.library_source),'library_selection':str($experiment.library_strategy),'library_layout':str($experiment.library_layout),'insert_size':str($experiment.insert_size),'library_construction_protocol':str($experiment.library_construction_protocol),'platform':str($experiment.platform),'instrument_model':str($experiment.instrument_model),'runs':$runs}) #end for $samples.append({'title':str($sample.sample_title),'description':str($sample.sample_description),'tax_name':str($sample.scientific_name),'tax_id':str($sample.tax_id),'experiments':$experiments}) #end for @@ -125,6 +128,7 @@ + @@ -137,7 +141,7 @@ - + @@ -151,22 +155,22 @@ - + - + - + - + @@ -185,7 +189,7 @@ - + diff -r 91a3a617d94b -r 436da36c6114 extract_tables.py --- a/extract_tables.py Fri Sep 18 14:29:47 2020 +0000 +++ b/extract_tables.py Tue Sep 22 20:36:41 2020 +0000 @@ -34,14 +34,14 @@ for exp_index,exp in enumerate(sample['experiments']): exp_alias = 'experiment_'+str(exp_index)+'_'+str(sample_index) lib_alias = 'library_'+str(exp_index)+'_'+str(sample_index) - experiments_table.write('\t'.join([exp_alias,action,'accession_ena',exp['title'],study_alias,sample_alias,exp['experiment_design'],lib_alias,exp['library_strategy'],exp['library_source'],exp['library_selection'],exp['library_layout'].lower(),exp['insert_size'],exp['library_construction_protocol'],exp['platform'],exp['instrument_model'],'submission_date_ENA']) + '\n') + experiments_table.write('\t'.join([exp_alias,action,'accession_ena',exp['title'],study_alias,sample_alias,exp['experiment_design'],lib_alias,exp['library_strategy'],exp['library_source'],exp['library_selection'],exp['library_layout'],exp['insert_size'],exp['library_construction_protocol'],exp['platform'],exp['instrument_model'],'submission_date_ENA']) + '\n') run_index = 0 # exp['runs'] is a list of lists for run in exp['runs']: run_index += 1 run_alias = '_'.join(['run',str(exp_index),str(sample_index),str(run_index)]) for file_entry in run: - file_format = 'fastq' + file_format = 'fastq.gz' if os.path.splitext(file_entry)[-1] == '.gz' else 'fastq.bz2' runs_table.write('\t'.join([run_alias,action,'ena_run_accession',exp_alias,file_entry,file_format,'file_checksum','submission_date_ENA']) + '\n') studies_table.close() diff -r 91a3a617d94b -r 436da36c6114 tool-data/geographic_location_1.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/geographic_location_1.loc.sample Tue Sep 22 20:36:41 2020 +0000 @@ -0,0 +1,279 @@ +not applicable +not collected +not provided +restricted access +Afghanistan +Albania +Algeria +American Samoa +Andorra +Angola +Anguilla +Antarctica +Antigua and Barbuda +Arctic Ocean +Argentina +Armenia +Aruba +Ashmore and Cartier Islands +Atlantic Ocean +Australia +Austria +Azerbaijan +Bahamas +Bahrain +Baker Island +Baltic Sea +Bangladesh +Barbados +Bassas da India +Belarus +Belgium +Belize +Benin +Bermuda +Bhutan +Bolivia +Borneo +Bosnia and Herzegovina +Botswana +Bouvet Island +Brazil +British Virgin Islands +Brunei +Bulgaria +Burkina Faso +Burundi +Cambodia +Cameroon +Canada +Cape Verde +Cayman Islands +Central African Republic +Chad +Chile +China +Christmas Island +Clipperton Island +Cocos Islands +Colombia +Comoros +Cook Islands +Coral Sea Islands +Costa Rica +Cote d'Ivoire +Croatia +Cuba +Curacao +Cyprus +Czech Republic +Democratic Republic of the Congo +Denmark +Djibouti +Dominica +Dominican Republic +East Timor +Ecuador +Egypt +El Salvador +Equatorial Guinea +Eritrea +Estonia +Ethiopia +Europa Island +Falkland Islands (Islas Malvinas) +Faroe Islands +Fiji +Finland +France +French Guiana +French Polynesia +French Southern and Antarctic Lands +Gabon +Gambia +Gaza Strip +Georgia +Germany +Ghana +Gibraltar +Glorioso Islands +Greece +Greenland +Grenada +Guadeloupe +Guam +Guatemala +Guernsey +Guinea +Guinea-Bissau +Guyana +Haiti +Heard Island and McDonald Islands +Honduras +Hong Kong +Howland Island +Hungary +Iceland +India +Indian Ocean +Indonesia +Iran +Iraq +Ireland +Isle of Man +Israel +Italy +Jamaica +Jan Mayen +Japan +Jarvis Island +Jersey +Johnston Atoll +Jordan +Juan de Nova Island +Kazakhstan +Kenya +Kerguelen Archipelago +Kingman Reef +Kiribati +Kosovo +Kuwait +Kyrgyzstan +Laos +Latvia +Lebanon +Lesotho +Liberia +Libya +Liechtenstein +Lithuania +Luxembourg +Macau +Macedonia +Madagascar +Malawi +Malaysia +Maldives +Mali +Malta +Marshall Islands +Martinique +Mauritania +Mauritius +Mayotte +Mediterranean Sea +Mexico +Micronesia +Midway Islands +Moldova +Monaco +Mongolia +Montenegro +Montserrat +Morocco +Mozambique +Myanmar +Namibia +Nauru +Navassa Island +Nepal +Netherlands +New Caledonia +New Zealand +Nicaragua +Niger +Nigeria +Niue +Norfolk Island +North Korea +North Sea +Northern Mariana Islands +Norway +Oman +Pacific Ocean +Pakistan +Palau +Palmyra Atoll +Panama +Papua New Guinea +Paracel Islands +Paraguay +Peru +Philippines +Pitcairn Islands +Poland +Portugal +Puerto Rico +Qatar +Republic of the Congo +Reunion +Romania +Ross Sea +Russia +Rwanda +Saint Helena +Saint Kitts and Nevis +Saint Lucia +Saint Pierre and Miquelon +Saint Vincent and the Grenadines +Samoa +San Marino +Sao Tome and Principe +Saudi Arabia +Senegal +Serbia +Seychelles +Sierra Leone +Singapore +Sint Maarten +Slovakia +Slovenia +Solomon Islands +Somalia +South Africa +South Georgia and the South Sandwich Islands +South Korea +Southern Ocean +Spain +Spratly Islands +Sri Lanka +Sudan +Suriname +Svalbard +Swaziland +Sweden +Switzerland +Syria +Taiwan +Tajikistan +Tanzania +Tasman Sea +Thailand +Togo +Tokelau +Tonga +Trinidad and Tobago +Tromelin Island +Tunisia +Turkey +Turkmenistan +Turks and Caicos Islands +Tuvalu +USA +Uganda +Ukraine +United Arab Emirates +United Kingdom +Uruguay +Uzbekistan +Vanuatu +Venezuela +Viet Nam +Virgin Islands +Wake Island +Wallis and Futuna +West Bank +Western Sahara +Yemen +Zambia +Zimbabwe diff -r 91a3a617d94b -r 436da36c6114 tool-data/host_health_state_1.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/host_health_state_1.loc.sample Tue Sep 22 20:36:41 2020 +0000 @@ -0,0 +1,6 @@ +not applicable +diseased +healthy +not provided +not collected +restricted access diff -r 91a3a617d94b -r 436da36c6114 tool-data/host_sex_1.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/host_sex_1.loc.sample Tue Sep 22 20:36:41 2020 +0000 @@ -0,0 +1,9 @@ +other +not applicable +not provided +neuter +not collected +female +restricted access +male +hermaphrodite