ViralLC: A utility for defining and assigning viral lineages consistently
Getting the ViralLC source code
git clone https://github.com/ChrispinChaguza/virallc.git
Setup ViralLC software on a local machine
Installing ViralLC using Conda
conda install -c bioconda virallc
Installing ViralLC using Pip
pip install virallc
After installing virallc using Pip, remember to install these dependencies (mafft, blast, and nextclade) manually. To avoid errors, install mafft version >=7.526.
Basic usage
Setting up database
When running virallc for the first time, it will automatically download and setup the virallc database in the home directory (~/viraldb/). However, if new lineages or sublineages have been assigned, you can redownload and update your local database as follows:
Here is a command to setup the database after installing the tool
virallc database --setupdb
virallc database -s
Here is a command to update a database (if corrupt, not found in the local machine, etc.)
virallc database --updatedb
virallc database -u
Here is a command to check version of the databases installed locally
virallc database --version
virallc database -v
Assigning lineages
The simplest way to run virallc is to provide a single or separate multiple input FASTA file containing a single or multiple rotavirus A sequences.
virallc assign --in input.fasta --out report.tsv --db dbname
virallc assign -i input.fasta -o report.tsv -d dbname
To assign lineages to several sequences in a multi-FASTA file (each individual sequence represents a single strain):
virallc assign --in input1.fasta input2.fasta input3.fasta --out report.tsv --db dbname
virallc assign -i input1.fasta input2.fasta input3.fasta -o report.tsv -d dbname
To include the sequence in the output:
virallc assign --in input1.fasta input2.fasta input3.fasta --out report.tsv --db dbname --seq
virallc assign -i input1.fasta input2.fasta input3.fasta -o report.tsv -d dbname -s
To overwrite the output files:
virallc assign --in input1.fasta input2.fasta input3.fasta --out report.tsv --db dbname --seq --force
virallc assign -i input1.fasta input2.fasta input3.fasta -o report.tsv -d dbname -s -f
To assign lineages faster using more CPUs/threads:
virallc assign --in input1.fasta input2.fasta input3.fasta --out report.tsv --db dbname --seq --threads 10
virallc assign -i input1.fasta input2.fasta input3.fasta -o report.tsv -d dbname -s -t 10
To suppress the results on the terminal:
virallc assign --in input1.fasta input2.fasta input3.fasta --out report.tsv --db dbname --seq --threads 10 --quiet
virallc assign -i input1.fasta input2.fasta input3.fasta -o report.tsv -d dbname -s -t 10 -q
Example dataset (Rotavirus A)
Here is a command to assign rotavirus A lineages to samples in example directory
virallc assign -i example.fna -o report.tsv -d RotavirusA
Running ViralLC using Docker
Detailed information on installing ViralLC as a Docker container are available on Docker Hub.
Full usage
General software options.
Contact: Chrispin Chaguza (Chrispin.Chaguza@STJUDE.ORG)
Usage: virallc <command> [options]
Command: assign assigns lineages to viral sequences
database setup, show, and update implemented databases
version prints program version
citation prints program citation information
Written by Chrispin Chaguza, St Jude Children's Research Hospital, 2025
Setup or update database options.
virallc: A tool for rapid assignment of virus lineages for given nomenclature
positional arguments:
database
options:
-h, --help show this help message and exit
--showdb, -p Print list of implemented databases
--setupdb, -s Setup implemented databases
--updatedb, -u Update implemented databases
--cutoffs, -c Lineage cutoffs for the databases
--db, -d refdb Specify viral database for the lineage classification
--version, -v Show database version
Written by Chrispin Chaguza, St Jude Children's Research Hospital, 2025
Assigning lineages to viral sequences.
virallc: A tool for rapid assignment of virus lineages for given nomenclature
positional arguments:
assign
options:
-h, --help show this help message and exit
--in, -i [query ...] Input (multi-)fasta files to type (each contig is typed separately)
--db, -d refdb Specify viral database for the lineage classification
--out, -o outfile Output file containing a summary of the assigned lineages
--aln, -a aligner Sequence alignment tool (default=nextclade)
--seq, -s Show nucleotide sequence in the output
--force, -f Force overwrite output file
--threads, -t threads
Number of threads (default=5)
--quiet, -q Show viral lineage assignment progress
Written by Chrispin Chaguza, St Jude Children's Research Hospital, 2025
Show software version.
virallc version
Show software citation information.
virallc citation
Reference
Chrispin Chaguza, Chimwemwe Mhango, Celeste M. Donato, Francis E. Dennis, Martin M. Nyaga, and Khuzwayo C. Jere. ViralLC: A utility for defining and assigning viral lineages consistently. Under review. GitHub, https://github.com/ChrispinChaguza/virallc.git
Additional references
The following external software packages are run as part of the virallc software package.
gitdir, GitHub, https://github.com/sdushantha/gitdir
Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ. Basic local alignment search tool. J Mol Biol. 1990 Oct 5;215(3):403-10. doi: 10.1016/S0022-2836(05)80360-2. PMID: 2231712.
Katoh K, Misawa K, Kuma K, Miyata T. MAFFT: a novel method for rapid multiple sequence alignment based on fast Fourier transform. Nucleic Acids Res. 2002 Jul 15;30(14):3059-66. doi: 10.1093/nar/gkf436. PMID: 12136088; PMCID: PMC135756.
Aksamentov et al., (2021). Nextclade: clade assignment, mutation calling and quality control for viral genomes. Journal of Open Source Software, 6(67), 3773, https://doi.org/10.21105/joss.03773
Metadata
Release files for virallc 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| virallc-1.1.8.tar.gz | 17.4 kB | Without provenance | Details for virallc-1.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| virallc-1.1.8-py3-none-any.whl | Python 3 | none | any | Details for virallc-1.1.8-py3-none-any.whl |
Total release size: 35.0 kB
Security for virallc 1.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.