ResBlaster
____ ____ _ _
| _ \ ___ ___| __ )| | __ _ ___| |_ ___ _ __
| |_) / _ \/ __| _ \| |/ _` / __| __/ _ \ '__|
| _ < __/\__ \ |_) | | (_| \__ \ || __/ |
|_| \_\___||___/____/|_|\__,_|___/\__\___|_|
Installation
pip3 install ResBlaster
Dependency
-
BLAST+ >2.7.0
-
cvmblaster (v0.4.1)
you should add BLAST in your PATH
Blast installation
Windows
Following this tutorial: Add blast into your windows PATH
Linux/Mac
The easyest way to install blast is:
conda install -c bioconda blast
Usage
1. Initialize reference database
After finish installation, you should first initialize the reference database using following command
ResBlaster init
Usage: ResBlaster -i <genome assemble directory> -db <reference database> -o <output_directory>
Author: Qingpo Cui(SZQ Lab, China Agricultural University)
optional arguments:
-h, --help show this help message and exit
-i I <input_path>: the PATH to the directory of assembled genome files
-o O <output_directory>: output PATH
-db DB <database>: resfinder or others, You colud check database list using -list parameter
-minid MINID <minimum threshold of identity>, default=90
-mincov MINCOV <minimum threshold of coverage>, default=60
-t T <number of threads>: default=8
-store_arg_seq <save the nucleotide and amino acid sequence of find genes on genome>
-v, --version <display version>
-updatedb UPDATEDB <add input fasta to BLAST database>
ResBlaster subcommand:
{show_db,init,updatedb}
show_db <show the list of all available database>
init <initialize the reference database>
updatedb <add custome database, use ResBlaster updatedb -h for help>
2. Show available database
ResBlaster show_db
| DB_name | No. of seqs | Update_date |
|---|---|---|
| ESBL | 1101 | 2024-10-09 |
| bacmet1 | 578 | 2024-10-09 |
| bacmet2_exp | 753 | 2024-10-09 |
| bacmet2_pred | 155512 | 2024-10-09 |
| lmo | 20195 | 2024-10-09 |
| ncbi | 6146 | 2024-10-09 |
| resfinder | 3154 | 2024-10-09 |
| vfdb_core | 4329 | 2024-10-09 |
| vfdb_full | 32164 | 2024-10-09 |
2. Making your own database
Let's say you want to make your own database called owndb. All you need is a FASTA file of nucleotide sequences, say owndb.fsa(note: the fasta file must end with .fsa). Ideally the sequence IDs would have the format >GENE___ID___ACC___CATEGORY where GENE is the name of GENE, ID is the allele ID of GENE, ACC is an accession number of the sequence source, CATEGORY is the CATEGORY of this GENE belongs to.
Your final owndb.fsa should like this:
>blaOXA-62___1___AY423074___Beta-lactam
ATGAATACGATAATCTCTCGCCGGTGGCGTGCCGGCCTGTGGCGGCGGCTGGTCGGCGCG
GTCGTCTTGCCCGCAACGCTCGCCGCCACCCCTGCGGCCTATGCGGCCGACGTGCCGAAA
GCCGCGTTGGGGCGCATCACCGAGCGCGCCGACTGGGGCAAGCTGTTCGCCGCGGAGGGC
GTGAAGGGCACGATCGTGGTGCTCGACGCACGCACGCAAACCTATCAGGCCTACGACGCC
GCACGTGCCGAGAAGCGCATGTCGCCGGCGTCGACCTACAAGATATTCAACAGCCTGCTG
GCGCTCGACTCCGGGGCGCTGGACAACGAACGCGCGATCATTCCCTGGGATGGCAAGCCG
CGACGCATCAAGAACTGGAACGCGGCGATGGACCTGAGGACCGCGTTTCGCGTGTCATGC
CTGCCCTGCTATCAGGTCGTCTCGCACAAGATCGGGCGCCGGTACGCGCAGGCGAAGCTG
AACGAGGTCGGGTATGGCAACCGCACCATTGGCGGCGCGCCGGACGCCTATTGGGTCGAC
GACAGTCTGCAGATTTCGGCGCGTGAGCAGGTGGACTTCGTGCAGCGTCTCGCGCGTGGC
ACGTTGCCGTTCTCTGCGCGCTCGCAGGACATCGTGCGCCAGATGTCGATCGTCGAAGCC
ACGCCGGACTATGTGCTTCACGGCAAGACGGGTTGGTTCGTCGACAAGAAGCCCGATATC
GGCTGGTGGGTAGGGTGGATCGAGCGCGACGGCAACATCACCAGCGTCGCGATCAACATC
GACATGCTGTCGGAGGCGGACGCCCCGAAACGGGCACGCATCGTGAAGGCGGTGCTGAAG
GACCTGAAGCTGATCTGA
Run following command will add owndb.fsa to blast database
ResBlaster -updatedb owndb.fsa
Metadata
Release files for resblaster 1.0.0
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 |
|---|---|---|---|---|
| resblaster-1.0.0.tar.gz | 19.1 MB | Without provenance | Details for resblaster-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resblaster-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for resblaster-1.0.0-py3-none-any.whl |
Total release size: 39.2 MB
Release files / resblaster-1.0.0.tar.gz
| Download URL | resblaster-1.0.0.tar.gz |
|---|---|
| Size | 19.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
319d7fb255097fe369df297dbb0da2645d210378ab664b1f2fbf90e938453aac
|
|
BLAKE2b-256 checksum How to use checksums |
592fed01bf6f7982ca0e2a6076b4fdc6d6ebdcc9745a4d27a17ea9a3e0451275
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.10
|
Release files / resblaster-1.0.0-py3-none-any.whl
| Download URL | resblaster-1.0.0-py3-none-any.whl |
|---|---|
| Size | 20.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41973a39cbfd8497852dcb4415841a7701137447029b9e6e11e376acc2f2fb61
|
|
BLAKE2b-256 checksum How to use checksums |
3443859b80419d0b594ca7e2f78f36bbc0cb87980be1dcc23ac3bb3123920561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.10
|
Security for resblaster 1.0.0
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.