diff --git a/ena_upload/templates/ENA_template_samples_ERC000011.xml b/ena_upload/templates/ENA_template_samples_ERC000011.xml
index 4731e70..7996915 100644
--- a/ena_upload/templates/ENA_template_samples_ERC000011.xml
+++ b/ena_upload/templates/ENA_template_samples_ERC000011.xml
@@ -81,16 +81,16 @@ def mandatorytest(row, column, index):
${row['collected_by']}
-
+
- collection date
- ${row['collection date']}
+ collection_date
+ ${row['collection_date']}
-
+
- geographic location (region and locality)
- ${row['geographic location (region and locality)']}
+ geographic_location_region_and_locality
+ ${row['geographic_location_region_and_locality']}
@@ -117,10 +117,10 @@ def mandatorytest(row, column, index):
${row['sex']}
-
+
- geographic location (country and/or sea)
- ${row['geographic location (country and/or sea)']}
+ geographic_location_country_andor_sea
+ ${row['geographic_location_country_andor_sea']}
@@ -129,10 +129,10 @@ def mandatorytest(row, column, index):
${row['lab_host']}
-
+
- host scientific name
- ${row['host scientific name']}
+ host_scientific_name
+ ${row['host_scientific_name']}
diff --git a/ena_upload/templates/ENA_template_samples_ERC000012.xml b/ena_upload/templates/ENA_template_samples_ERC000012.xml
index 9512c97..40d87c4 100644
--- a/ena_upload/templates/ENA_template_samples_ERC000012.xml
+++ b/ena_upload/templates/ENA_template_samples_ERC000012.xml
@@ -33,28 +33,28 @@ def mandatorytest(row, column, index):
${row.sample_description}
-
+
- trophic level
- ${row['trophic level']}
+ trophic_level
+ ${row['trophic_level']}
-
+
- observed biotic relationship
- ${row['observed biotic relationship']}
+ observed_biotic_relationship
+ ${row['observed_biotic_relationship']}
-
+
- known pathogenicity
- ${row['known pathogenicity']}
+ known_pathogenicity
+ ${row['known_pathogenicity']}
-
+
- relationship to oxygen
- ${row['relationship to oxygen']}
+ relationship_to_oxygen
+ ${row['relationship_to_oxygen']}
@@ -63,41 +63,41 @@ def mandatorytest(row, column, index):
${row['propagation']}
-
+
- sample collection device
- ${row['sample collection device']}
+ sample_collection_device
+ ${row['sample_collection_device']}
-
+
- sample collection method
- ${row['sample collection method']}
+ sample_collection_method
+ ${row['sample_collection_method']}
-
+
- sample storage temperature
- ${row['sample storage temperature']}
+ sample_storage_temperature
+ ${row['sample_storage_temperature']}
°C
-
+
- sample storage location
- ${row['sample storage location']}
+ sample_storage_location
+ ${row['sample_storage_location']}
-
+
- oxygenation status of sample
- ${row['oxygenation status of sample']}
+ oxygenation_status_of_sample
+ ${row['oxygenation_status_of_sample']}
-
+
- project name
- ${row['project name']}
+ project_name
+ ${row['project_name']}
@@ -106,70 +106,70 @@ def mandatorytest(row, column, index):
${row['ploidy']}
-
+
- number of replicons
- ${row['number of replicons']}
+ number_of_replicons
+ ${row['number_of_replicons']}
-
+
- extrachromosomal elements
- ${row['extrachromosomal elements']}
+ extrachromosomal_elements
+ ${row['extrachromosomal_elements']}
-
+
- estimated size
- ${row['estimated size']}
+ estimated_size
+ ${row['estimated_size']}
-
+
- target gene
- ${row['target gene']}
+ target_gene
+ ${row['target_gene']}
-
+
- target subfragment
- ${row['target subfragment']}
+ target_subfragment
+ ${row['target_subfragment']}
-
+
- multiplex identifiers
- ${row['multiplex identifiers']}
+ multiplex_identifiers
+ ${row['multiplex_identifiers']}
-
+
- sequence quality check
- ${row['sequence quality check']}
+ sequence_quality_check
+ ${row['sequence_quality_check']}
-
+
- chimera check software
- ${row['chimera check software']}
+ chimera_check_software
+ ${row['chimera_check_software']}
-
+
- relevant electronic resources
- ${row['relevant electronic resources']}
+ relevant_electronic_resources
+ ${row['relevant_electronic_resources']}
-
+
- relevant standard operating procedures
- ${row['relevant standard operating procedures']}
+ relevant_standard_operating_procedures
+ ${row['relevant_standard_operating_procedures']}
-
+
- collection date
- ${row['collection date']}
+ collection_date
+ ${row['collection_date']}
@@ -179,42 +179,42 @@ def mandatorytest(row, column, index):
m
-
+
- geographic location (latitude)
- ${row['geographic location (latitude)']}
+ geographic_location_latitude
+ ${row['geographic_location_latitude']}
DD
-
+
- geographic location (longitude)
- ${row['geographic location (longitude)']}
+ geographic_location_longitude
+ ${row['geographic_location_longitude']}
DD
-
+
- geographic location (region and locality)
- ${row['geographic location (region and locality)']}
+ geographic_location_region_and_locality
+ ${row['geographic_location_region_and_locality']}
-
+
- broad-scale environmental context
- ${row['broad-scale environmental context']}
+ broadscale_environmental_context
+ ${row['broadscale_environmental_context']}
-
+
- local environmental context
- ${row['local environmental context']}
+ local_environmental_context
+ ${row['local_environmental_context']}
-
+
- environmental medium
- ${row['environmental medium']}
+ environmental_medium
+ ${row['environmental_medium']}
@@ -224,60 +224,60 @@ def mandatorytest(row, column, index):
m
-
+
- ventilation rate
- ${row['ventilation rate']}
+ ventilation_rate
+ ${row['ventilation_rate']}
m3/min
-
+
- ventilation type
- ${row['ventilation type']}
+ ventilation_type
+ ${row['ventilation_type']}
-
+
- amount or size of sample collected
- ${row['amount or size of sample collected']}
- m3
+ amount_or_size_of_sample_collected
+ ${row['amount_or_size_of_sample_collected']}
+ kg
-
+
- organism count
- ${row['organism count']}
+ organism_count
+ ${row['organism_count']}
-
+
- sample storage duration
- ${row['sample storage duration']}
+ sample_storage_duration
+ ${row['sample_storage_duration']}
-
+
- geographic location (country and/or sea)
- ${row['geographic location (country and/or sea)']}
+ geographic_location_country_andor_sea
+ ${row['geographic_location_country_andor_sea']}
-
+
- host disease status
- ${row['host disease status']}
+ host_disease_status
+ ${row['host_disease_status']}
-
+
- host scientific name
- ${row['host scientific name']}
+ host_scientific_name
+ ${row['host_scientific_name']}
-
+
- barometric pressure
- ${row['barometric pressure']}
+ barometric_pressure
+ ${row['barometric_pressure']}
mm Hg
@@ -285,34 +285,34 @@ def mandatorytest(row, column, index):
humidity
${row['humidity']}
- g/m3
+ %
pollutants
${row['pollutants']}
- mg/L
+ M/L
-
+
- solar irradiance
- ${row['solar irradiance']}
+ solar_irradiance
+ ${row['solar_irradiance']}
W/m2
-
+
- wind direction
- ${row['wind direction']}
+ wind_direction
+ ${row['wind_direction']}
-
+
- wind speed
- ${row['wind speed']}
- m/s
+ wind_speed
+ ${row['wind_speed']}
+ km/h
@@ -322,17 +322,17 @@ def mandatorytest(row, column, index):
ºC
-
+
- carbon dioxide
- ${row['carbon dioxide']}
+ carbon_dioxide
+ ${row['carbon_dioxide']}
µmol/L
-
+
- carbon monoxide
- ${row['carbon monoxide']}
+ carbon_monoxide
+ ${row['carbon_monoxide']}
µM/L
@@ -340,20 +340,20 @@ def mandatorytest(row, column, index):
oxygen
${row['oxygen']}
- parts/million
+ mg/L
-
+
- air particulate matter concentration
- ${row['air particulate matter concentration']}
+ air_particulate_matter_concentration
+ ${row['air_particulate_matter_concentration']}
µg/m3
-
+
- volatile organic compounds
- ${row['volatile organic compounds']}
+ volatile_organic_compounds
+ ${row['volatile_organic_compounds']}
µg/m3
@@ -371,10 +371,10 @@ def mandatorytest(row, column, index):
psu
-
+
- source material identifiers
- ${row['source material identifiers']}
+ source_material_identifiers
+ ${row['source_material_identifiers']}
@@ -383,125 +383,125 @@ def mandatorytest(row, column, index):
${row['perturbation']}
-
+
- negative control type
- ${row['negative control type']}
+ negative_control_type
+ ${row['negative_control_type']}
-
+
- positive control type
- ${row['positive control type']}
+ positive_control_type
+ ${row['positive_control_type']}
-
+
- experimental factor
- ${row['experimental factor']}
+ experimental_factor
+ ${row['experimental_factor']}
-
+
- encoded traits
- ${row['encoded traits']}
+ encoded_traits
+ ${row['encoded_traits']}
-
+
- subspecific genetic lineage
- ${row['subspecific genetic lineage']}
+ subspecific_genetic_lineage
+ ${row['subspecific_genetic_lineage']}
-
+
- taxonomic classification
- ${row['taxonomic classification']}
+ taxonomic_classification
+ ${row['taxonomic_classification']}
-
+
- isolation and growth condition
- ${row['isolation and growth condition']}
+ isolation_and_growth_condition
+ ${row['isolation_and_growth_condition']}
-
+
- annotation source
- ${row['annotation source']}
+ annotation_source
+ ${row['annotation_source']}
-
+
- reference for biomaterial
- ${row['reference for biomaterial']}
+ reference_for_biomaterial
+ ${row['reference_for_biomaterial']}
-
+
- sample material processing
- ${row['sample material processing']}
+ sample_material_processing
+ ${row['sample_material_processing']}
-
+
- sample volume or weight for DNA extraction
- ${row['sample volume or weight for DNA extraction']}
- ng
+ sample_volume_or_weight_for_dna_extraction
+ ${row['sample_volume_or_weight_for_dna_extraction']}
+ mL
-
+
- nucleic acid extraction
- ${row['nucleic acid extraction']}
+ nucleic_acid_extraction
+ ${row['nucleic_acid_extraction']}
-
+
- nucleic acid amplification
- ${row['nucleic acid amplification']}
+ nucleic_acid_amplification
+ ${row['nucleic_acid_amplification']}
-
+
- library size
- ${row['library size']}
+ library_size
+ ${row['library_size']}
-
+
- library reads sequenced
- ${row['library reads sequenced']}
+ library_reads_sequenced
+ ${row['library_reads_sequenced']}
-
+
- library construction method
- ${row['library construction method']}
+ library_construction_method
+ ${row['library_construction_method']}
-
+
- library vector
- ${row['library vector']}
+ library_vector
+ ${row['library_vector']}
-
+
- library screening strategy
- ${row['library screening strategy']}
+ library_screening_strategy
+ ${row['library_screening_strategy']}
-
+
- pcr conditions
- ${row['pcr conditions']}
+ pcr_conditions
+ ${row['pcr_conditions']}
-
+
- pcr primers
- ${row['pcr primers']}
+ pcr_primers
+ ${row['pcr_primers']}
@@ -510,10 +510,10 @@ def mandatorytest(row, column, index):
${row['adapters']}
-
+
- chemical administration
- ${row['chemical administration']}
+ chemical_administration
+ ${row['chemical_administration']}
diff --git a/ena_upload/templates/ENA_template_samples_ERC000013.xml b/ena_upload/templates/ENA_template_samples_ERC000013.xml
index 9ca5147..01b623e 100644
--- a/ena_upload/templates/ENA_template_samples_ERC000013.xml
+++ b/ena_upload/templates/ENA_template_samples_ERC000013.xml
@@ -33,28 +33,28 @@ def mandatorytest(row, column, index):
${row.sample_description}
-
+
- trophic level
- ${row['trophic level']}
+ trophic_level
+ ${row['trophic_level']}
-
+
- observed biotic relationship
- ${row['observed biotic relationship']}
+ observed_biotic_relationship
+ ${row['observed_biotic_relationship']}
-
+
- known pathogenicity
- ${row['known pathogenicity']}
+ known_pathogenicity
+ ${row['known_pathogenicity']}
-
+
- relationship to oxygen
- ${row['relationship to oxygen']}
+ relationship_to_oxygen
+ ${row['relationship_to_oxygen']}
@@ -63,65 +63,65 @@ def mandatorytest(row, column, index):
${row['propagation']}
-
+
- observed host symbionts
- ${row['observed host symbionts']}
+ observed_host_symbionts
+ ${row['observed_host_symbionts']}
-
+
- sample collection device
- ${row['sample collection device']}
+ sample_collection_device
+ ${row['sample_collection_device']}
-
+
- sample collection method
- ${row['sample collection method']}
+ sample_collection_method
+ ${row['sample_collection_method']}
-
+
- sample storage temperature
- ${row['sample storage temperature']}
+ sample_storage_temperature
+ ${row['sample_storage_temperature']}
°C
-
+
- sample storage location
- ${row['sample storage location']}
+ sample_storage_location
+ ${row['sample_storage_location']}
-
+
- sample disease stage
- ${row['sample disease stage']}
+ sample_disease_stage
+ ${row['sample_disease_stage']}
-
+
- oxygenation status of sample
- ${row['oxygenation status of sample']}
+ oxygenation_status_of_sample
+ ${row['oxygenation_status_of_sample']}
-
+
- sample disease status
- ${row['sample disease status']}
+ sample_disease_status
+ ${row['sample_disease_status']}
-
+
- sample derived from
- ${row['sample derived from']}
+ sample_derived_from
+ ${row['sample_derived_from']}
-
+
- project name
- ${row['project name']}
+ project_name
+ ${row['project_name']}
@@ -130,70 +130,70 @@ def mandatorytest(row, column, index):
${row['ploidy']}
-
+
- number of replicons
- ${row['number of replicons']}
+ number_of_replicons
+ ${row['number_of_replicons']}
-
+
- extrachromosomal elements
- ${row['extrachromosomal elements']}
+ extrachromosomal_elements
+ ${row['extrachromosomal_elements']}
-
+
- estimated size
- ${row['estimated size']}
+ estimated_size
+ ${row['estimated_size']}
-
+
- target gene
- ${row['target gene']}
+ target_gene
+ ${row['target_gene']}
-
+
- target subfragment
- ${row['target subfragment']}
+ target_subfragment
+ ${row['target_subfragment']}
-
+
- multiplex identifiers
- ${row['multiplex identifiers']}
+ multiplex_identifiers
+ ${row['multiplex_identifiers']}
-
+
- sequence quality check
- ${row['sequence quality check']}
+ sequence_quality_check
+ ${row['sequence_quality_check']}
-
+
- chimera check software
- ${row['chimera check software']}
+ chimera_check_software
+ ${row['chimera_check_software']}
-
+
- relevant electronic resources
- ${row['relevant electronic resources']}
+ relevant_electronic_resources
+ ${row['relevant_electronic_resources']}
-
+
- relevant standard operating procedures
- ${row['relevant standard operating procedures']}
+ relevant_standard_operating_procedures
+ ${row['relevant_standard_operating_procedures']}
-
+
- collection date
- ${row['collection date']}
+ collection_date
+ ${row['collection_date']}
@@ -203,42 +203,42 @@ def mandatorytest(row, column, index):
m
-
+
- geographic location (latitude)
- ${row['geographic location (latitude)']}
+ geographic_location_latitude
+ ${row['geographic_location_latitude']}
DD
-
+
- geographic location (longitude)
- ${row['geographic location (longitude)']}
+ geographic_location_longitude
+ ${row['geographic_location_longitude']}
DD
-
+
- geographic location (region and locality)
- ${row['geographic location (region and locality)']}
+ geographic_location_region_and_locality
+ ${row['geographic_location_region_and_locality']}
-
+
- broad-scale environmental context
- ${row['broad-scale environmental context']}
+ broadscale_environmental_context
+ ${row['broadscale_environmental_context']}
-
+
- local environmental context
- ${row['local environmental context']}
+ local_environmental_context
+ ${row['local_environmental_context']}
-
+
- environmental medium
- ${row['environmental medium']}
+ environmental_medium
+ ${row['environmental_medium']}
@@ -248,166 +248,166 @@ def mandatorytest(row, column, index):
m
-
+
- amount or size of sample collected
- ${row['amount or size of sample collected']}
- m3
+ amount_or_size_of_sample_collected
+ ${row['amount_or_size_of_sample_collected']}
+ kg
-
+
- organism count
- ${row['organism count']}
+ organism_count
+ ${row['organism_count']}
-
+
- sample capture status
- ${row['sample capture status']}
+ sample_capture_status
+ ${row['sample_capture_status']}
-
+
- biological status
- ${row['biological status']}
+ biological_status
+ ${row['biological_status']}
-
+
- sample storage duration
- ${row['sample storage duration']}
+ sample_storage_duration
+ ${row['sample_storage_duration']}
-
+
- geographic location (country and/or sea)
- ${row['geographic location (country and/or sea)']}
+ geographic_location_country_andor_sea
+ ${row['geographic_location_country_andor_sea']}
-
+
- host disease status
- ${row['host disease status']}
+ host_disease_status
+ ${row['host_disease_status']}
-
+
- host common name
- ${row['host common name']}
+ host_common_name
+ ${row['host_common_name']}
-
+
- host subject id
- ${row['host subject id']}
+ host_subject_id
+ ${row['host_subject_id']}
-
+
- host age
- ${row['host age']}
+ host_age
+ ${row['host_age']}
years
-
+
- host taxid
- ${row['host taxid']}
+ host_taxid
+ ${row['host_taxid']}
-
+
- host body habitat
- ${row['host body habitat']}
+ host_body_habitat
+ ${row['host_body_habitat']}
-
+
- host body site
- ${row['host body site']}
+ host_body_site
+ ${row['host_body_site']}
-
+
- host life stage
- ${row['host life stage']}
+ host_life_stage
+ ${row['host_life_stage']}
-
+
- host height
- ${row['host height']}
- mm
+ host_height
+ ${row['host_height']}
+ m
-
+
- host length
- ${row['host length']}
- mm
+ host_length
+ ${row['host_length']}
+ m
-
+
- host growth conditions
- ${row['host growth conditions']}
+ host_growth_conditions
+ ${row['host_growth_conditions']}
-
+
- host substrate
- ${row['host substrate']}
+ host_substrate
+ ${row['host_substrate']}
-
+
- host total mass
- ${row['host total mass']}
+ host_total_mass
+ ${row['host_total_mass']}
kg
-
+
- host phenotype
- ${row['host phenotype']}
+ host_phenotype
+ ${row['host_phenotype']}
-
+
- host body temperature
- ${row['host body temperature']}
+ host_body_temperature
+ ${row['host_body_temperature']}
ºC
-
+
- host color
- ${row['host color']}
+ host_color
+ ${row['host_color']}
-
+
- host shape
- ${row['host shape']}
+ host_shape
+ ${row['host_shape']}
-
+
- host sex
- ${row['host sex']}
+ host_sex
+ ${row['host_sex']}
-
+
- host scientific name
- ${row['host scientific name']}
+ host_scientific_name
+ ${row['host_scientific_name']}
-
+
- host subspecific genetic lineage
- ${row['host subspecific genetic lineage']}
+ host_subspecific_genetic_lineage
+ ${row['host_subspecific_genetic_lineage']}
@@ -424,48 +424,48 @@ def mandatorytest(row, column, index):
psu
-
+
- source material identifiers
- ${row['source material identifiers']}
+ source_material_identifiers
+ ${row['source_material_identifiers']}
-
+
- host blood pressure diastolic
- ${row['host blood pressure diastolic']}
+ host_blood_pressure_diastolic
+ ${row['host_blood_pressure_diastolic']}
mm Hg
-
+
- host blood pressure systolic
- ${row['host blood pressure systolic']}
+ host_blood_pressure_systolic
+ ${row['host_blood_pressure_systolic']}
mm Hg
-
+
- host diet
- ${row['host diet']}
+ host_diet
+ ${row['host_diet']}
-
+
- host last meal
- ${row['host last meal']}
+ host_last_meal
+ ${row['host_last_meal']}
-
+
- host family relationship
- ${row['host family relationship']}
+ host_family_relationship
+ ${row['host_family_relationship']}
-
+
- host genotype
- ${row['host genotype']}
+ host_genotype
+ ${row['host_genotype']}
@@ -474,17 +474,17 @@ def mandatorytest(row, column, index):
${row['gravidity']}
-
+
- host dry mass
- ${row['host dry mass']}
- mg
+ host_dry_mass
+ ${row['host_dry_mass']}
+ kg
-
+
- host body product
- ${row['host body product']}
+ host_body_product
+ ${row['host_body_product']}
@@ -493,137 +493,137 @@ def mandatorytest(row, column, index):
${row['perturbation']}
-
+
- negative control type
- ${row['negative control type']}
+ negative_control_type
+ ${row['negative_control_type']}
-
+
- positive control type
- ${row['positive control type']}
+ positive_control_type
+ ${row['positive_control_type']}
-
+
- experimental factor
- ${row['experimental factor']}
+ experimental_factor
+ ${row['experimental_factor']}
-
+
- encoded traits
- ${row['encoded traits']}
+ encoded_traits
+ ${row['encoded_traits']}
-
+
- genetic modification
- ${row['genetic modification']}
+ genetic_modification
+ ${row['genetic_modification']}
-
+
- subspecific genetic lineage
- ${row['subspecific genetic lineage']}
+ subspecific_genetic_lineage
+ ${row['subspecific_genetic_lineage']}
-
+
- ancestral data
- ${row['ancestral data']}
+ ancestral_data
+ ${row['ancestral_data']}
-
+
- taxonomic classification
- ${row['taxonomic classification']}
+ taxonomic_classification
+ ${row['taxonomic_classification']}
-
+
- isolation and growth condition
- ${row['isolation and growth condition']}
+ isolation_and_growth_condition
+ ${row['isolation_and_growth_condition']}
-
+
- annotation source
- ${row['annotation source']}
+ annotation_source
+ ${row['annotation_source']}
-
+
- reference for biomaterial
- ${row['reference for biomaterial']}
+ reference_for_biomaterial
+ ${row['reference_for_biomaterial']}
-
+
- sample material processing
- ${row['sample material processing']}
+ sample_material_processing
+ ${row['sample_material_processing']}
-
+
- sample volume or weight for DNA extraction
- ${row['sample volume or weight for DNA extraction']}
- ng
+ sample_volume_or_weight_for_dna_extraction
+ ${row['sample_volume_or_weight_for_dna_extraction']}
+ mL
-
+
- nucleic acid extraction
- ${row['nucleic acid extraction']}
+ nucleic_acid_extraction
+ ${row['nucleic_acid_extraction']}
-
+
- nucleic acid amplification
- ${row['nucleic acid amplification']}
+ nucleic_acid_amplification
+ ${row['nucleic_acid_amplification']}
-
+
- library size
- ${row['library size']}
+ library_size
+ ${row['library_size']}
-
+
- library reads sequenced
- ${row['library reads sequenced']}
+ library_reads_sequenced
+ ${row['library_reads_sequenced']}
-
+
- library construction method
- ${row['library construction method']}
+ library_construction_method
+ ${row['library_construction_method']}
-
+
- library vector
- ${row['library vector']}
+ library_vector
+ ${row['library_vector']}
-
+
- library screening strategy
- ${row['library screening strategy']}
+ library_screening_strategy
+ ${row['library_screening_strategy']}
-
+
- pcr conditions
- ${row['pcr conditions']}
+ pcr_conditions
+ ${row['pcr_conditions']}
-
+
- pcr primers
- ${row['pcr primers']}
+ pcr_primers
+ ${row['pcr_primers']}
@@ -636,13 +636,13 @@ def mandatorytest(row, column, index):
depth
${row['depth']}
- mm
+ m
-
+
- chemical administration
- ${row['chemical administration']}
+ chemical_administration
+ ${row['chemical_administration']}
diff --git a/ena_upload/templates/ENA_template_samples_ERC000014.xml b/ena_upload/templates/ENA_template_samples_ERC000014.xml
index 75668c8..4eb0bf7 100644
--- a/ena_upload/templates/ENA_template_samples_ERC000014.xml
+++ b/ena_upload/templates/ENA_template_samples_ERC000014.xml
@@ -33,28 +33,28 @@ def mandatorytest(row, column, index):
${row.sample_description}
-
+
- trophic level
- ${row['trophic level']}
+ trophic_level
+ ${row['trophic_level']}
-
+
- observed biotic relationship
- ${row['observed biotic relationship']}
+ observed_biotic_relationship
+ ${row['observed_biotic_relationship']}
-
+
- known pathogenicity
- ${row['known pathogenicity']}
+ known_pathogenicity
+ ${row['known_pathogenicity']}
-
+
- relationship to oxygen
- ${row['relationship to oxygen']}
+ relationship_to_oxygen
+ ${row['relationship_to_oxygen']}
@@ -63,65 +63,65 @@ def mandatorytest(row, column, index):
${row['propagation']}
-
+
- observed host symbionts
- ${row['observed host symbionts']}
+ observed_host_symbionts
+ ${row['observed_host_symbionts']}
-
+
- sample collection device
- ${row['sample collection device']}
+ sample_collection_device
+ ${row['sample_collection_device']}
-
+
- sample collection method
- ${row['sample collection method']}
+ sample_collection_method
+ ${row['sample_collection_method']}
-
+
- urine/collection method
- ${row['urine/collection method']}
+ urinecollection_method
+ ${row['urinecollection_method']}
-
+
- sample storage temperature
- ${row['sample storage temperature']}
+ sample_storage_temperature
+ ${row['sample_storage_temperature']}
°C
-
+
- sample storage location
- ${row['sample storage location']}
+ sample_storage_location
+ ${row['sample_storage_location']}
-
+
- oxygenation status of sample
- ${row['oxygenation status of sample']}
+ oxygenation_status_of_sample
+ ${row['oxygenation_status_of_sample']}
-
+
- medical history performed
- ${row['medical history performed']}
+ medical_history_performed
+ ${row['medical_history_performed']}
-
+
- study completion status
- ${row['study completion status']}
+ study_completion_status
+ ${row['study_completion_status']}
-
+
- project name
- ${row['project name']}
+ project_name
+ ${row['project_name']}
@@ -130,70 +130,70 @@ def mandatorytest(row, column, index):
${row['ploidy']}
-
+
- number of replicons
- ${row['number of replicons']}
+ number_of_replicons
+ ${row['number_of_replicons']}
-
+
- extrachromosomal elements
- ${row['extrachromosomal elements']}
+ extrachromosomal_elements
+ ${row['extrachromosomal_elements']}
-
+
- estimated size
- ${row['estimated size']}
+ estimated_size
+ ${row['estimated_size']}
-
+
- target gene
- ${row['target gene']}
+ target_gene
+ ${row['target_gene']}
-
+
- target subfragment
- ${row['target subfragment']}
+ target_subfragment
+ ${row['target_subfragment']}
-
+
- multiplex identifiers
- ${row['multiplex identifiers']}
+ multiplex_identifiers
+ ${row['multiplex_identifiers']}
-
+
- sequence quality check
- ${row['sequence quality check']}
+ sequence_quality_check
+ ${row['sequence_quality_check']}
-
+
- chimera check software
- ${row['chimera check software']}
+ chimera_check_software
+ ${row['chimera_check_software']}
-
+
- relevant electronic resources
- ${row['relevant electronic resources']}
+ relevant_electronic_resources
+ ${row['relevant_electronic_resources']}
-
+
- relevant standard operating procedures
- ${row['relevant standard operating procedures']}
+ relevant_standard_operating_procedures
+ ${row['relevant_standard_operating_procedures']}
-
+
- collection date
- ${row['collection date']}
+ collection_date
+ ${row['collection_date']}
@@ -203,42 +203,42 @@ def mandatorytest(row, column, index):
m
-
+
- geographic location (latitude)
- ${row['geographic location (latitude)']}
+ geographic_location_latitude
+ ${row['geographic_location_latitude']}
DD
-
+
- geographic location (longitude)
- ${row['geographic location (longitude)']}
+ geographic_location_longitude
+ ${row['geographic_location_longitude']}
DD
-
+
- geographic location (region and locality)
- ${row['geographic location (region and locality)']}
+ geographic_location_region_and_locality
+ ${row['geographic_location_region_and_locality']}
-
+
- broad-scale environmental context
- ${row['broad-scale environmental context']}
+ broadscale_environmental_context
+ ${row['broadscale_environmental_context']}
-
+
- local environmental context
- ${row['local environmental context']}
+ local_environmental_context
+ ${row['local_environmental_context']}
-
+
- environmental medium
- ${row['environmental medium']}
+ environmental_medium
+ ${row['environmental_medium']}
@@ -248,121 +248,121 @@ def mandatorytest(row, column, index):
m
-
+
- amount or size of sample collected
- ${row['amount or size of sample collected']}
- m3
+ amount_or_size_of_sample_collected
+ ${row['amount_or_size_of_sample_collected']}
+ kg
-
+
- organism count
- ${row['organism count']}
+ organism_count
+ ${row['organism_count']}
-
+
- sample storage duration
- ${row['sample storage duration']}
+ sample_storage_duration
+ ${row['sample_storage_duration']}
-
+
- geographic location (country and/or sea)
- ${row['geographic location (country and/or sea)']}
+ geographic_location_country_andor_sea
+ ${row['geographic_location_country_andor_sea']}
-
+
- nose/mouth/teeth/throat disorder
- ${row['nose/mouth/teeth/throat disorder']}
+ nosemouthteeththroat_disorder
+ ${row['nosemouthteeththroat_disorder']}
-
+
- host HIV status
- ${row['host HIV status']}
+ host_hiv_status
+ ${row['host_hiv_status']}
-
+
- host disease status
- ${row['host disease status']}
+ host_disease_status
+ ${row['host_disease_status']}
-
+
- lung/pulmonary disorder
- ${row['lung/pulmonary disorder']}
+ lungpulmonary_disorder
+ ${row['lungpulmonary_disorder']}
-
+
- lung/nose-throat disorder
- ${row['lung/nose-throat disorder']}
+ lungnosethroat_disorder
+ ${row['lungnosethroat_disorder']}
-
+
- blood/blood disorder
- ${row['blood/blood disorder']}
+ bloodblood_disorder
+ ${row['bloodblood_disorder']}
-
+
- urine/kidney disorder
- ${row['urine/kidney disorder']}
+ urinekidney_disorder
+ ${row['urinekidney_disorder']}
-
+
- urine/urogenital tract disorder
- ${row['urine/urogenital tract disorder']}
+ urineurogenital_tract_disorder
+ ${row['urineurogenital_tract_disorder']}
-
+
- host subject id
- ${row['host subject id']}
+ host_subject_id
+ ${row['host_subject_id']}
-
+
- IHMC medication code
- ${row['IHMC medication code']}
+ ihmc_medication_code
+ ${row['ihmc_medication_code']}
-
+
- host age
- ${row['host age']}
+ host_age
+ ${row['host_age']}
years
-
+
- host body site
- ${row['host body site']}
+ host_body_site
+ ${row['host_body_site']}
-
+
- drug usage
- ${row['drug usage']}
+ drug_usage
+ ${row['drug_usage']}
-
+
- host height
- ${row['host height']}
- mm
+ host_height
+ ${row['host_height']}
+ m
-
+
- host body-mass index
- ${row['host body-mass index']}
+ host_bodymass_index
+ ${row['host_bodymass_index']}
kg/m2
@@ -372,48 +372,48 @@ def mandatorytest(row, column, index):
${row['ethnicity']}
-
+
- host occupation
- ${row['host occupation']}
+ host_occupation
+ ${row['host_occupation']}
-
+
- host total mass
- ${row['host total mass']}
+ host_total_mass
+ ${row['host_total_mass']}
kg
-
+
- host phenotype
- ${row['host phenotype']}
+ host_phenotype
+ ${row['host_phenotype']}
-
+
- host body temperature
- ${row['host body temperature']}
+ host_body_temperature
+ ${row['host_body_temperature']}
ºC
-
+
- host sex
- ${row['host sex']}
+ host_sex
+ ${row['host_sex']}
-
+
- host scientific name
- ${row['host scientific name']}
+ host_scientific_name
+ ${row['host_scientific_name']}
-
+
- presence of pets, animals, or insects
- ${row['presence of pets, animals, or insects']}
+ presence_of_pets_animals_or_insects
+ ${row['presence_of_pets_animals_or_insects']}
@@ -430,10 +430,10 @@ def mandatorytest(row, column, index):
psu
-
+
- source material identifiers
- ${row['source material identifiers']}
+ source_material_identifiers
+ ${row['source_material_identifiers']}
@@ -442,90 +442,90 @@ def mandatorytest(row, column, index):
${row['smoker']}
-
+
- major diet change in last six months
- ${row['major diet change in last six months']}
+ major_diet_change_in_last_six_months
+ ${row['major_diet_change_in_last_six_months']}
-
+
- weight loss in last three months
- ${row['weight loss in last three months']}
+ weight_loss_in_last_three_months
+ ${row['weight_loss_in_last_three_months']}
kg
-
+
- travel outside the country in last six months
- ${row['travel outside the country in last six months']}
+ travel_outside_the_country_in_last_six_months
+ ${row['travel_outside_the_country_in_last_six_months']}
-
+
- host diet
- ${row['host diet']}
+ host_diet
+ ${row['host_diet']}
-
+
- twin sibling presence
- ${row['twin sibling presence']}
+ twin_sibling_presence
+ ${row['twin_sibling_presence']}
-
+
- host last meal
- ${row['host last meal']}
+ host_last_meal
+ ${row['host_last_meal']}
-
+
- amniotic fluid/gestation state
- ${row['amniotic fluid/gestation state']}
+ amniotic_fluidgestation_state
+ ${row['amniotic_fluidgestation_state']}
-
+
- host family relationship
- ${row['host family relationship']}
+ host_family_relationship
+ ${row['host_family_relationship']}
-
+
- amniotic fluid/maternal health status
- ${row['amniotic fluid/maternal health status']}
+ amniotic_fluidmaternal_health_status
+ ${row['amniotic_fluidmaternal_health_status']}
-
+
- host genotype
- ${row['host genotype']}
+ host_genotype
+ ${row['host_genotype']}
-
+
- amniotic fluid/foetal health status
- ${row['amniotic fluid/foetal health status']}
+ amniotic_fluidfoetal_health_status
+ ${row['amniotic_fluidfoetal_health_status']}
-
+
- host pulse
- ${row['host pulse']}
+ host_pulse
+ ${row['host_pulse']}
bpm
-
+
- amniotic fluid/color
- ${row['amniotic fluid/color']}
+ amniotic_fluidcolor
+ ${row['amniotic_fluidcolor']}
-
+
- host body product
- ${row['host body product']}
+ host_body_product
+ ${row['host_body_product']}
@@ -534,125 +534,125 @@ def mandatorytest(row, column, index):
${row['perturbation']}
-
+
- negative control type
- ${row['negative control type']}
+ negative_control_type
+ ${row['negative_control_type']}
-
+
- positive control type
- ${row['positive control type']}
+ positive_control_type
+ ${row['positive_control_type']}
-
+
- experimental factor
- ${row['experimental factor']}
+ experimental_factor
+ ${row['experimental_factor']}
-
+
- encoded traits
- ${row['encoded traits']}
+ encoded_traits
+ ${row['encoded_traits']}
-
+
- subspecific genetic lineage
- ${row['subspecific genetic lineage']}
+ subspecific_genetic_lineage
+ ${row['subspecific_genetic_lineage']}
-
+
- taxonomic classification
- ${row['taxonomic classification']}
+ taxonomic_classification
+ ${row['taxonomic_classification']}
-
+
- isolation and growth condition
- ${row['isolation and growth condition']}
+ isolation_and_growth_condition
+ ${row['isolation_and_growth_condition']}
-
+
- annotation source
- ${row['annotation source']}
+ annotation_source
+ ${row['annotation_source']}
-
+
- reference for biomaterial
- ${row['reference for biomaterial']}
+ reference_for_biomaterial
+ ${row['reference_for_biomaterial']}
-
+
- sample material processing
- ${row['sample material processing']}
+ sample_material_processing
+ ${row['sample_material_processing']}
-
+
- sample volume or weight for DNA extraction
- ${row['sample volume or weight for DNA extraction']}
- ng
+ sample_volume_or_weight_for_dna_extraction
+ ${row['sample_volume_or_weight_for_dna_extraction']}
+ mL
-
+
- nucleic acid extraction
- ${row['nucleic acid extraction']}
+ nucleic_acid_extraction
+ ${row['nucleic_acid_extraction']}
-
+
- nucleic acid amplification
- ${row['nucleic acid amplification']}
+ nucleic_acid_amplification
+ ${row['nucleic_acid_amplification']}
-
+
- library size
- ${row['library size']}
+ library_size
+ ${row['library_size']}
-
+
- library reads sequenced
- ${row['library reads sequenced']}
+ library_reads_sequenced
+ ${row['library_reads_sequenced']}
-
+
- library construction method
- ${row['library construction method']}
+ library_construction_method
+ ${row['library_construction_method']}
-
+
- library vector
- ${row['library vector']}
+ library_vector
+ ${row['library_vector']}
-
+
- library screening strategy
- ${row['library screening strategy']}
+ library_screening_strategy
+ ${row['library_screening_strategy']}
-
+
- pcr conditions
- ${row['pcr conditions']}
+ pcr_conditions
+ ${row['pcr_conditions']}
-
+
- pcr primers
- ${row['pcr primers']}
+ pcr_primers
+ ${row['pcr_primers']}
@@ -661,10 +661,10 @@ def mandatorytest(row, column, index):
${row['adapters']}
-
+
- chemical administration
- ${row['chemical administration']}
+ chemical_administration
+ ${row['chemical_administration']}
diff --git a/ena_upload/templates/ENA_template_samples_ERC000015.xml b/ena_upload/templates/ENA_template_samples_ERC000015.xml
index 83f5348..1b5fb7d 100644
--- a/ena_upload/templates/ENA_template_samples_ERC000015.xml
+++ b/ena_upload/templates/ENA_template_samples_ERC000015.xml
@@ -33,28 +33,28 @@ def mandatorytest(row, column, index):
${row.sample_description}
-
+
- trophic level
- ${row['trophic level']}
+ trophic_level
+ ${row['trophic_level']}
-
+
- observed biotic relationship
- ${row['observed biotic relationship']}
+ observed_biotic_relationship
+ ${row['observed_biotic_relationship']}
-
+
- known pathogenicity
- ${row['known pathogenicity']}
+ known_pathogenicity
+ ${row['known_pathogenicity']}
-
+
-