Skip to main content

PyCTV

The ICTV Virus Metadata Resource contains an upto date taxonomy of viruses in Excel sheets. We parse that information, and make it available through a Python API

VMR

The ICTV maintains the Virus Metadata Resource, VMR, which is a list of all the viral taxonomies, connections to GenBank and RefSeq, and the associated metadata. This is, as far as I can tell, the most up-to-date list of all viral taxonomies.

PyCTV is designed to allow you to easily use the ICTVs VMR data in your own viral taxonomies!

When you first run it, you can download the viral taxonomy. But don't worry if you don't download it, because the first time you ask for it, we'll download it for you. The next time you run it, we'll let you know if there is a newer version that you should download. We parse that file, and create VMR objects which contain all the viral metadata resource information. You can query in a few different ways, and we provide dicts that map between GenBank IDs, RefSeq IDs, and the viral taxonomy.

Viral taxonomy is generated using the now familiar notion of k__, p__, c__ etc. abbreviations, and you can access the taxonomy as either a single string or tab separated text.

The most up-to-date version of the VMR can be found at https://ictv.global/vmr/current/

Example uses

  1. Download a new VMR dataset.

This places the VMR file in the VMR folder in the distribution directory.

pyctv.py download

or you can force a new download (if you have an existing file you wish to replace):

pyctv.py download --force

[Note for Windows users: if you have the Excel file open you may get an error trying to delete it]

  1. List all the viral species

List all the viruses separated by semi-colons:

pyctv.py list --semi

  1. List all the GenBank accession numbers and the viral species

pyctv.py list --genbank

  1. List all the RefSeq accession numbers and the viral species

pyctv.py list --refseq

Install

You can pip install PyCTV

Metadata

Release files for pyctv-taxonomy 0.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyctv-taxonomy 0.25
File Size Uploaded
pyctv_taxonomy-0.25.tar.gz 10.1 kB Details

Release files / pyctv_taxonomy-0.25.tar.gz

Download URL pyctv_taxonomy-0.25.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
332e54fed6640f61e5c4722c62b9df633921358ba0eb8daf6230711970da2ad9
BLAKE2b-256 checksum
How to use checksums
cdb3f0f8647f97d9d95a2dee807725c6fa06352f066fa51d64153d445c74faca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.25 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page