bb_blast_summary - ampinzonv/BB3 GitHub Wiki
bb_blast_summary
Function: Generate summary statistics from a BLAST tabular file (outfmt 6 with 14 columns).
๐ Description
This function computes and prints summary statistics from a BLAST result file. It includes metrics such as average identity, query and subject coverage, number of queries with hits, and proportion of significant hits.
๐ฅ Input
- A BLAST file in tabular format (
outfmt 6
) with 14 columns includingqlen
andslen
. - Can read from a file or from STDIN with
--input -
.
๐ค Output
- A textual report with alignment and coverage statistics.
๐งช Examples
Basic summary:
bb_blast_summary --input blast_results.tsv
From a pipe:
cat blast_results.tsv | bb_blast_summary --input -
Redirect summary to a file:
bb_blast_summary --input blast_results.tsv --outfile summary.txt
โ๏ธ Usage
bb_blast_summary --input FILE [--outfile FILE] [--quiet] [--force]
๐งต Options
Option | Description |
---|---|
--input FILE |
BLAST outfmt 6 file with 14 columns or - for STDIN (required) |
--outfile FILE |
Output file (default: STDOUT) |
--quiet |
Suppress informational messages |
--force |
Overwrite output file if it exists |
๐ Notes
- Coverage is calculated using
qstart
,qend
,qlen
and similarly for subject. - A hit is considered significant if
evalue <= 1e-5
. - Includes a section with the top 5 queries that have the most hits.