Rapid discovery of reciprocal best blast pairs from BLAST output files.
Project description
Blast-Besties
Rapid discovery of reciprocal best blast pairs from BLAST output files.
Table of contents
Install Blast-Besties
There are 3 options available for installing Blast-Besties locally:
- Clone from this repository and install as a local Python package.
git clone https://github.com/Adamtaranto/blast-besties.git && cd blast-besties && pip install -e .
- Pip install directly from this git repository.
pip install git+https://github.com/Adamtaranto/blast-besties.git
- Install from PyPi.
pip install blastbesties
Example usage
Run BLASTp for each protein set AvsB and BvsA. Require vaild alignments to cover 90% of the query sequence and with an e-value of < 0.001.
blastp -qcov_hsp_perc 90 -query A_prot.fa -subject B_prot.fa -out AvB.tab -evalue 0.001 -outfmt 6 -use_sw_tback
blastp -qcov_hsp_perc 90 -query B_prot.fa -subject A_prot.fa -out BvA.tab -evalue 0.001 -outfmt 6 -use_sw_tback
Report reciprocal best match pairs where each hit meets criteria e-value <= 0.001, hit-length >= 40, bitscore >= 100.
blastbesties -e 0.001 -l 40 -s 100 -a AvB.tab -b BvA.tab -o pairs.tab
Input requirements
- Takes two BLAST output files as input. SetA vs SetB, and SetB vs SetA.
- BLAST output format 6 (tabular)
- Hits must be sorted by query name then descending match quality - this is default BLAST behaviour.
Standard options
Usage: blastbesties [-h] [-v] -a BLASTAVB -b BLASTBVA [-l MINLEN] [-e EVAL]
[-s BITSCORE] [-o OUTFILE] [-d OUTDIR]
Options:
# Info
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
# Input
-a, --blastAvB Blast tab result file for fastaA query against fastaB
subject.
-b, --blastBvA Blast tab result file for fastaB query against fastaA
subject.
# Settings
-l, --minLen Minimum length of hit to consider valid.
-e, --eVal Maximum e-value to consider valid pair.
-s, --bitScore Minimum bitscore to consider valid pair.
# Output
-o, --outFile Write reciprocal blast pairs to this file.
-d, --outDir Directory for new sequence files to be written to.
License
Software provided under MIT license.
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 blastbesties-1.1.2.tar.gz.
File metadata
- Download URL: blastbesties-1.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dce21a9f92d8e47875a020c279e420ed5077d00ced3534844993a26e779e57d
|
|
| MD5 |
e2550c39e30d7504f70aa6d0bdd1d20b
|
|
| BLAKE2b-256 |
1dd8968c4f61e5ade8413c4d68971b9e005e24595f70cafb7d5c69136f8f7e00
|
File details
Details for the file blastbesties-1.1.2-py3-none-any.whl.
File metadata
- Download URL: blastbesties-1.1.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a73ba30069898eeef774b39d5ea5a36be5d1ec32a46e9a5c8cf2483acc3a3fe4
|
|
| MD5 |
5e1fff7d17c4c4c376ff8891f8bbb5fb
|
|
| BLAKE2b-256 |
3c75aa8623793aacfb55980a4087b1f2a1e221ef94585758874f0b91dec6d9e3
|