The Xml-generator tool creates study and sample (and submission) xmls for programmatic submission of SARS-CoV-2 data to the ENA, validating against the ERC000033 checklist.
This script has three functions:
- trims the user metadata spreadsheet to exclude everything other than study and sample metadata
- injects the 'submission_tool' field (With value: 'drag and drop uploader tool') into study and sample sections of the trimmed spreadsheet
- injects the 'sample capture status' field (with value: 'active surveillance in response to outbreak') into the sample section
The trimmed spreadsheet then feeds into part 2 of the script which generates the study and sample xmls
This script has the following functions:
- Creates study, sample and submission xmls using the output of Part 1
- Validates and submits the xmls using curl