Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ena_upload/templates/ENA_template_samples_ERC000036.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def attributetest(row, column):
<TAG>investigation type</TAG>
<VALUE>${row['investigation type']}</VALUE>
</SAMPLE_ATTRIBUTE>
<py:if test="attributetest(row, 'surveillance target')">
<SAMPLE_ATTRIBUTE>
<TAG>surveillance target</TAG>
<VALUE>${row['surveillance target']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<SAMPLE_ATTRIBUTE>
<TAG>collection date</TAG>
<VALUE>${row['collection date']}</VALUE>
Expand Down
12 changes: 12 additions & 0 deletions ena_upload/templates/ENA_template_samples_ERC000053.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ def attributetest(row, column):
<VALUE>${row['sample symbiont of']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'sample coordinator')">
<SAMPLE_ATTRIBUTE>
<TAG>sample coordinator</TAG>
<VALUE>${row['sample coordinator']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<py:if test="attributetest(row, 'sample coordinator affiliation')">
<SAMPLE_ATTRIBUTE>
<TAG>sample coordinator affiliation</TAG>
<VALUE>${row['sample coordinator affiliation']}</VALUE>
</SAMPLE_ATTRIBUTE>
</py:if>
<SAMPLE_ATTRIBUTE>
<TAG>sex</TAG>
<VALUE>${row['sex']}</VALUE>
Expand Down