Skip to content

Commit

Permalink
Merge pull request #105 from usegalaxy-eu/checklist_update
Browse files Browse the repository at this point in the history
Automatic update of ENA Sample Checklists
  • Loading branch information
bedroesb authored Jan 27, 2025
2 parents 4ffbd0d + b38a418 commit 5db67a8
Show file tree
Hide file tree
Showing 46 changed files with 283 additions and 269 deletions.
2 changes: 2 additions & 0 deletions ena_upload/templates/ENA_template_PLATFORM.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'illumina miseq'">Illumina MiSeq</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'illumina miniseq'">Illumina MiniSeq</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'illumina novaseq x'">Illumina NovaSeq X</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'illumina novaseq x plus'">Illumina NovaSeq X Plus</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'illumina novaseq 6000'">Illumina NovaSeq 6000</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'nextseq 500'">NextSeq 500</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'nextseq 550'">NextSeq 550</INSTRUMENT_MODEL>
Expand Down Expand Up @@ -101,6 +102,7 @@
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'dnbseq-g400'">DNBSEQ-G400</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'dnbseq-g50'">DNBSEQ-G50</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'dnbseq-g400 fast'">DNBSEQ-G400 FAST</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'dnbseq-t10x4rs'">DNBSEQ-T10x4RS</INSTRUMENT_MODEL>
<INSTRUMENT_MODEL py:when="row.instrument_model.lower().strip() == 'unspecified'">unspecified</INSTRUMENT_MODEL>
</DNBSEQ>
<ELEMENT py:when="row.platform.lower().strip() == 'element'" py:choose="">
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000011.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ def mandatorytest(row, column, index):
<VALUE>${row['collection date']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'geographic location (region and locality)')">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (region and locality)</TAG>
Expand Down Expand Up @@ -123,6 +117,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sex']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'lab_host')">
<SAMPLE_ATTRIBUTE>
<TAG>lab_host</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000012.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -262,6 +256,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000013.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -285,6 +279,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000014.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -273,6 +267,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'nose/mouth/teeth/throat disorder')">
<SAMPLE_ATTRIBUTE>
<TAG>nose/mouth/teeth/throat disorder</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000015.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -261,6 +255,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'gastrointestinal tract disorder')">
<SAMPLE_ATTRIBUTE>
<TAG>gastrointestinal tract disorder</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000016.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -267,6 +261,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'nose/mouth/teeth/throat disorder')">
<SAMPLE_ATTRIBUTE>
<TAG>nose/mouth/teeth/throat disorder</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000017.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -261,6 +255,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'dermatology disorder')">
<SAMPLE_ATTRIBUTE>
<TAG>dermatology disorder</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000018.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -261,6 +255,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'gynecological disorder')">
<SAMPLE_ATTRIBUTE>
<TAG>gynecological disorder</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000019.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -256,6 +250,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000020.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -297,6 +291,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000021.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -275,6 +269,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000022.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -317,6 +311,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['extreme_unusual_properties/Al saturation method']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000023.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -249,6 +243,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'biochemical oxygen demand')">
<SAMPLE_ATTRIBUTE>
<TAG>biochemical oxygen demand</TAG>
Expand Down
12 changes: 6 additions & 6 deletions ena_upload/templates/ENA_template_samples_ERC000024.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ def mandatorytest(row, column, index):
<UNITS>m</UNITS>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (latitude)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (latitude)</TAG>
Expand Down Expand Up @@ -277,6 +271,12 @@ def mandatorytest(row, column, index):
<VALUE>${row['sample storage duration']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="mandatorytest(row, 'geographic location (country and/or sea)', index)">
<SAMPLE_ATTRIBUTE>
<TAG>geographic location (country and/or sea)</TAG>
<VALUE>${row['geographic location (country and/or sea)']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'host disease status')">
<SAMPLE_ATTRIBUTE>
<TAG>host disease status</TAG>
Expand Down
Loading

0 comments on commit 5db67a8

Please sign in to comment.