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
- 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]
- List all the viral species
List all the viruses separated by semi-colons:
pyctv.py list --semi
- List all the GenBank accession numbers and the viral species
pyctv.py list --genbank
- List all the RefSeq accession numbers and the viral species
pyctv.py list --refseq
Install
You can pip
install PyCTV
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyctv_taxonomy-0.25.tar.gz
.
File metadata
- Download URL: pyctv_taxonomy-0.25.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 332e54fed6640f61e5c4722c62b9df633921358ba0eb8daf6230711970da2ad9 |
|
MD5 | c5ec7ca4876327bad7d2b9b5ad123771 |
|
BLAKE2b-256 | cdb3f0f8647f97d9d95a2dee807725c6fa06352f066fa51d64153d445c74faca |