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:
- Install from PyPi.
pip install blastbesties
- Pip install latest development version directly from this git repository.
pip install git+https://github.com/Adamtaranto/blast-besties.git
- Clone from this repository and install as a local Python package if you want to edit the code.
git clone https://github.com/Adamtaranto/blast-besties.git && cd blast-besties && pip install -e ".[tests]"
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
To run in interactive mode use --tui to open the terminal user interface.
blastbesties --tui
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] [--version] -a BLASTAVB -b BLASTBVA [-l MINLEN] [-e EVAL] [-s BITSCORE] [-o OUTFILE] [-d OUTDIR] [--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--tui]
Finds reciprocal best BLAST pairs from BLAST output format 6 (tabular). Where hits are sorted by query name then descending match quality.
options:
-h, --help show this help message and exit
--version Show program's version number and exit.
-a BLASTAVB, --blastAvB BLASTAVB
BLAST tab result file for fastaA query against fastaB subject.
-b BLASTBVA, --blastBvA BLASTBVA
BLAST tab result file for fastaB query against fastaA subject.
-l MINLEN, --minLen MINLEN
Minimum length of hit to consider valid. Defaults to 1.
-e EVAL, --eVal EVAL Maximum e-value to consider valid pair. Defaults to 0.001.
-s BITSCORE, --bitScore BITSCORE
Minimum bitscore to consider valid pair. Defaults to 1.0.
-o OUTFILE, --outFile OUTFILE
Write reciprocal BLAST pairs to this file.
-d OUTDIR, --outDir OUTDIR
Directory for new sequence files to be written to.
--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set logging level. Defaults to INFO.
--tui Open Textual UI.
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.2.0.tar.gz.
File metadata
- Download URL: blastbesties-1.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d66264863667a505309e87e33bc186d40b98ff68c96c93c0273a68a8197757c
|
|
| MD5 |
531f96ec683c97ca2b70fed6fade4e63
|
|
| BLAKE2b-256 |
8fedab1021d721e42727a4058f05cf6e250d173d450311d16f3095ea972c1050
|
Provenance
The following attestation bundles were made for blastbesties-1.2.0.tar.gz:
Publisher:
publish.yml on Adamtaranto/blast-besties
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blastbesties-1.2.0.tar.gz -
Subject digest:
5d66264863667a505309e87e33bc186d40b98ff68c96c93c0273a68a8197757c - Sigstore transparency entry: 147753809
- Sigstore integration time:
-
Permalink:
Adamtaranto/blast-besties@b47006f9bb26a7a760618e5caf9bd287d08bb8f0 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/Adamtaranto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b47006f9bb26a7a760618e5caf9bd287d08bb8f0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file blastbesties-1.2.0-py3-none-any.whl.
File metadata
- Download URL: blastbesties-1.2.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe4297b22f5c2e39f2eefe57ad891931bc91f7927e6b6fec391ed18377dd85d6
|
|
| MD5 |
242375192b1e6f84075729ee176cbf76
|
|
| BLAKE2b-256 |
a2632855b9d27fd66e137efe57bd73431edf9facb8d734a7995b27bc0ad1186b
|
Provenance
The following attestation bundles were made for blastbesties-1.2.0-py3-none-any.whl:
Publisher:
publish.yml on Adamtaranto/blast-besties
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blastbesties-1.2.0-py3-none-any.whl -
Subject digest:
fe4297b22f5c2e39f2eefe57ad891931bc91f7927e6b6fec391ed18377dd85d6 - Sigstore transparency entry: 147753811
- Sigstore integration time:
-
Permalink:
Adamtaranto/blast-besties@b47006f9bb26a7a760618e5caf9bd287d08bb8f0 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/Adamtaranto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b47006f9bb26a7a760618e5caf9bd287d08bb8f0 -
Trigger Event:
release
-
Statement type: