This repository automates the conversion of virus metadata stored in VMR.xlsx into multiple machine-readable formats using GitHub Actions. When a new version of VMR.xlsx is committed, the repository automatically generates the following:
- TSV (Tab-Separated Values)
- JSON (JavaScript Object Notation)
- XML (Extensible Markup Language)
These files are output to a dedicated folder named converted_files/.
VMR.xlsx: Source Excel file containing virus metadata- The conversion targets the sheet named "VMR MSL40".
convert.py: Python script that performs the actual conversion of Excel data to.tsv,.json, and.xml.
converted_files/: Directory containing converted files:VMR MSL40.tsvVMR MSL40.jsonVMR MSL40.xml
This repository includes a GitHub Actions workflow defined in:
.github/workflows/convert-vmr.yml
The workflow runs automatically when VMR.xlsx is updated (pushed to the repository).
- Checks out the repository.
- Sets up Python 3.9 and installs dependencies.
- Converts
VMR.xlsxsheet"VMR MSL40"into TSV, JSON, and XML. - Commits and pushes the converted files back to the repository.
Ensure GitHub Actions has write access to the repository under:
Settings → Actions → General → Workflow permissions → Enable "Read and write permissions"
- merge ICTV files, based on the ICTV ID by combineing the informationo f Exampler and Addisionals (uf exists) into one record. [0_merge_ictv_files.py]
- convert GenBank Accession ID to Taxonomy ID using NCBI resources. [1_fetch_taxids.py]
- find the species taxon ID using the TaxID, species name or virus name. [2_species_taxid.py]
- insert the taxonomy information using the species taxid into the database. [3_ictv2db.py]