ASVmaker: A new tool to improve taxonomic identifications for amplicon sequencing data
Project description
Table of content
Description
This package allow to create ASV specific reference databases from unfiltered FASTA files. FASTA file supported:
It is mainly intended to be used by command line. However, some modules can be used inside python scripts. Most of the database creation is automatically done, only a few commands are left to the user.
CAUTION: this tool is not a pipeline but a set of modules.
Package installation
The package is available on pypi. It can be installed by the following command:
pip install asvmaker
Usage
ASVmaker is designed to be used by modules :
1.1. Retrieve fasta files from a general database
The first step involves downloading a FASTA file for a specific genus of interest from a general database : Silva, Unite, RNAcentral, ENA, NCBI or DDBJ. This file contains the genomic data necessary for subsequent analysis.
GENUS=$1
DB=$2
SEQ=$3
1.2. Create the initial database
Next, ASVmaker enables the creation of a genus-specific database by using the downloaded FASTA file. Each sequence lineage is verified by accession number through the European Nucleotide Archive API if possible and through the NCBI Entrez API if the ENA one doesn't match. Users must specify primers to be used during the simulation of the amplification process, allowing for precise targeting of the desired genomic regions and ASV creation.
# INIT DATABASE
python3 -m asvmaker \
-inf database/${DB}/${GENUS}_${DB}_info_create.txt \
create \
-i ${SEQ} \
-db ${DB} \
-fp fw_primer.fasta \
-rp rv_primer.fasta \
-fmt 5 \
-rmt 5 \
-o database/${DB}/${GENUS}_${DB}_create.json
1.3. Filter the sequences
To enhance the quality and specificity of the analysis, ASVmaker provides the functionality to filter out redundant amplicons and exclude unwanted taxonomy. Redundant amplicons are ASVs sharing the same taxonomy. Unwanted taxonomy or species that are not of interest (e.g. : “sp.” or “aff.”) can also be filtered out, ensuring a more focused analysis on the target genus.
# FILTER DATABASE
python3 -m asvmaker \
-inf database/${DB}/${GENUS}_${DB}_info_filter.txt \
filter \
-i database/${DB}/${GENUS}_${DB}_create.json \
-g1 ${GENUS} \
-o database/${DB}/${GENUS}_${DB}_filter.json
# EXPORT RESULTS
python3 -m asvmaker \
-inf database/${DB}/${GENUS}_${DB}_info_exp1.txt \
export \
-i database/${DB}/${GENUS}_${DB}_filter.json \
-sao database/${DB}/${GENUS}_${DB}_sa.txt 1
1.4. Create SA taxons
ASVmaker creates Shared Amplicon (SA) groups, which involve clustering identical ASVs which have different taxonomies. This grouping allows for a comprehensive understanding of the taxonomic diversity within the selected ASV, providing valuable precisions into the composition and dynamics of microbial communities.
# EDIT DATABASE
python3 -m asvmaker \
-inf database/${DB}/${GENUS}_${DB}_info_edit.txt \
edit \
-i database/${DB}/${GENUS}_${DB}_filter.json \
-grp database/${DB}/${GENUS}_${DB}_sa_ext.txt \
-o database/${DB}/${GENUS}_${DB}_edit.json
# EXPORT RESULTS
python3 -m asvmaker \
-inf database/${DB}/${GENUS}_${DB}_info_exp2.txt \
export \
-i database/${DB}/${GENUS}_${DB}_edit.json \
-aop database/${DB}/${GENUS}_${DB}_asv.fasta
2. Merge databases
Moreover, ASVmaker offers the option to merge ASV specific databases from different general databases, providing flexibility to combine data from various sources. This merging process allows for a more comprehensive dataset, enabling comparative analysis and broader insights into the studied genus.
# MERGE DATABASES
python3 -m asvmaker \
-inf database/all/${GENUS}_info_merge.txt \
merge \
-i database/rnaCentral/${GENUS}_rnaCentral_edit.json \
-sa1 database/rnaCentral/${GENUS}_rnaCentral_sa_ext.txt \
-i2 database/unite/${GENUS}_unite_edit.json \
-sa2 database/unite/${GENUS}_unite_sa_ext.txt \
-o database/all/${GENUS}_merge.json
# EXPORT RESULTS
python3 -m asvmaker \
-inf database/all/${GENUS}_info_exp3.txt \
export \
-i database/all/${GENUS}_merge.json \
-aop database/all/${GENUS}_asv.fasta
References
Article in revision.
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 ASVmaker-0.0.2.tar.gz
.
File metadata
- Download URL: ASVmaker-0.0.2.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a823f15cda46c91ac9566194f237e50093053290cffbfcab3bcdd66ca6216489 |
|
MD5 | 956c6478b19363f66f9d2eb1c33188b9 |
|
BLAKE2b-256 | 7355c19dcaba61590cf23df108a5f66e8ef064b6a3db0168121e82ebebdfc412 |
File details
Details for the file ASVmaker-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ASVmaker-0.0.2-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 929c0d18ff320f9bb7cc6a80d28f1620143945b17c3bf4bcfed9caf3d9b3f237 |
|
MD5 | 073a944b6390327f80219a057826e8df |
|
BLAKE2b-256 | 75a27a990a430bcfd140e3d3d2d043ca74ef32b2c43fd66422cda1800ee5057c |