Lineage prediction from SARS-CoV-2 sequences
Project description
Armadillin
This is an experimental tool under development. The recommended method for calling lineages remains normal Pangolin: https://github.com/cov-lineages/pangolin
A Re-engineered Method Allowing DetermInation of viraL LINeages
Armadillin is an experimental alternative approach to training models on lineages designated by the PANGO team.
Armadillin uses dense neural networks for assignment, which means it doesn't have to assume that positions with an N are the reference sequence. Armadillin is still very fast, in part because it sparsifies the feature input to this neural net during training.
Installation (for inference)
conda create --name armadillin python=3.9
conda activate armadillin
pip3 install armadillin
Usage
You must already have aligned your files to the reference (doing this automatically is on the backlist).
We'll use the COG-UK aligned file for a demo:
wget https://cog-uk.s3.climb.ac.uk/phylogenetics/latest/cog_alignment.fasta.gz
armadillin https://cog-uk.s3.climb.ac.uk/phylogenetics/latest/cog_alignment.fasta.gz
or
armadillin https://cog-uk.s3.climb.ac.uk/phylogenetics/latest/cog_alignment.fasta.gz > output.tsv
Training your own models
Dataset generation
python -m armadillin.training_make_input --designations ~/gisaid/pango-designation-1.2.88/ --gisaid_meta_file ~/gisaid/metadata.tsv --gisaid_mmsa ~/gisaid/msa_2021-10-20.tar.xz --output ~/training_set_nov_02
python -m armadillin.train --shard_dir /home/theo/training_set_nov_02 --use_wandb --checkpoint_path ~/nov2check1
python -m armadillin.train --starting_model ~/nov2check1/checkpoint.h5 --use_wandb --checkpoint_path ~/nov2check1_sparse/ --do_pruning --shard_dir /home/theo/training_set_nov_02
python -m armadillin.training_create_small_model -i /tmp/model_zeros.h5 -d /home/theo/training_set_nov_02
Related tools
Pangolin is the OG for assigning lineages
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
Built Distribution
File details
Details for the file armadillin-0.23.tar.gz
.
File metadata
- Download URL: armadillin-0.23.tar.gz
- Upload date:
- Size: 21.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 610113ab7b528e165fcb47edfa93bcadcf4f29bb15f1c4914239dbeb66290271 |
|
MD5 | 6036692bba0151ba72ef6c5222bfd9ae |
|
BLAKE2b-256 | b29811872539a2459f981ca23bd4b1678129b0edbeac99392b34e2083cfd270f |
Provenance
File details
Details for the file armadillin-0.23-py3-none-any.whl
.
File metadata
- Download URL: armadillin-0.23-py3-none-any.whl
- Upload date:
- Size: 21.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a95a1ac0cfa8fff8b3e5502f43e2577fca5251c70e30af6abc5b6ba5de736fab |
|
MD5 | 6e325e5c7d5054ef38ce23c22b48efe2 |
|
BLAKE2b-256 | 0a17089c97ee3947e32376f50c94b385b26b17120d263571df75f8ff3c4e97bd |