The anasfv project focuses on analyzing nanopore-sequenced data of PCR-amplified African Swine Fever Virus (ASFV).
Project description
ANASFV
The ANASFV project focuses on analyzing nanopore-sequenced data of PCR-amplified African Swine Fever Virus (ASFV). It consists of 4 tasks:
Task 1: Using ONT reads of PCR-amplified ASFV to assemble a genome.
Task 2: Analyzing the completeness of the assembled ASFV genome.
Task 3: Checking for any evidence of recombination between genotypes I and II.
Task 4: Constructing a phylogenetic tree.
Full documentation is available at read the docs.
Docker:
We provide a docker image. In case you find the installation too troublesome:
docker pull osvolo/anasfv:latest
docker container run -it osvolo/anasfv /bin/bash
Installation:
Requirements:
- python: 3.11 (tested). Most Python 3 versions should work.
- Software versions tested: - Samtools: 1.17 - BEDTools: 2.26.0 - Minimap2: 2.17-r941 - Prodigal: 2.6.3 - Exonerate: 2.4.0 - blast: 2.12.0 - MUSCLE: 5.1 - Medaka: 1.11.3 - Homopolish: 0.4.1 - uDance: 1.6.5
Install requirements in conda environment and install ANASFV via PyPI:
conda create -n anasfv -c conda-forge python=3.11 -y
conda activate anasfv
conda install -c bioconda samtools bedtools minimap2 prodigal exonerate blast muscle -y
pip install anasfv
If you need to use medaka and homopolish for polish, you need to create their corresponding conda environments and install them, because there will be some conflicts if you install them directly in the ANASFV runtime environment.
conda create -n medaka -c bioconda -c conda-forge medaka -y
conda config --set channel_priority flexible
conda create -n homopolish -c conda-forge -c bioconda -c defaults more-itertools=8.4.0 homopolish=0.4.1 -y
The tree building process uses uDance. For uDance installation refer to uDance
A Quick Example:
Prepare data:
- Test data: Downloads test_data.fasta to the working directory
wget https://github.com/lrslab/anasfv/releases/download/test_data.fasta/test_data.fasta
- Other ASFV genomes. These genomes are used for mapping assembly and tree building. You can directly use the single_fasta, which contains 312 downloaded ASFV genomes, or you can run download_asfv_genome.py, which will create a directory name "single_fasta" and download all the latest ASFV genomes on NCBI to the directory.
download_asfv_genome.py
Task 1 (Assembling a genome):
Finding nearest genome from "./single_fasta" as ref to perform mapping assebly. Then two rounds of polish.
mapping_assembly.py -p 4 -r single_fasta -i test_data.fasta -o genome.fasta --medaka r941_min_high_g303 --homopolish R9.4.pkl
Task 2 (Genome completeness evaluation):
We only established consensus gene sets for genotype I and genotype II. Using -c to assign consensus gene sets. Using OQ504956.1.fasta as example:
completeness.py single_fasta/OQ504956.1.fasta -c II > OQ504956.1_completeness.tsv
Task 3 (Recombination test):
Using OQ504956.1 as example:
recombination_test.py single_fasta/OQ504956.1.fasta > OQ504956.1_recombination_test.tsv
Task 4 (Constructing a tree):
Building the tree with the following command. It will use all genome files from "./single_fasta" and get a tree in Newick format.
make_tree.py -f single_fasta -o tree
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ANASFV-0.0.4.tar.gz.
File metadata
- Download URL: ANASFV-0.0.4.tar.gz
- Upload date:
- Size: 448.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7071a589da99555efa8c0881f82317d5441ae55f867abe7761d6a5f6e98ab06a
|
|
| MD5 |
fe66f230b1d14222c336b628b719d92a
|
|
| BLAKE2b-256 |
09c0bdc81277e69c20cd3abe0b4afb66f32190f12267498ebbd5ab410e568216
|
File details
Details for the file ANASFV-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: ANASFV-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 457.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bfa3f073a56d00ec1b7b06525c3319efeeaf0afb78bd828a1d651bc94b8d4d9
|
|
| MD5 |
cc35f76508d342468331968ac6df33c1
|
|
| BLAKE2b-256 |
c0c9530c10ac3bc7b2dbb55ac16effb8bd4a18e8b00921a94baff010a3f84d5a
|