Skip to main content

Download ICTV Virus Classifications as Python Objects

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyctv_taxonomy-0.25.tar.gz (10.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page