bb_plot_quality_distribution - ampinzonv/BB3 GitHub Wiki
bb_plot_quality_distribution
Function: Plot ASCII histogram of average quality per read from a FASTQ file.
๐ Description
This function computes the average quality score per read and groups them into bins (e.g. 0โ9, 10โ19, etc.). The distribution is displayed as an ASCII histogram.
๐ฅ Input
- A FASTQ file or
--input -
to use STDIN. - Gzip-compressed
.fastq.gz
files are supported.
๐ค Output
- Histogram showing how many reads fall into each average quality range.
๐งช Examples
Use default sampling:
bb_plot_quality_distribution --input reads.fastq
Sample 30% and save plot:
bb_plot_quality_distribution --input reads.fastq --sample_size 30 --outfile plot.txt
Specify Phred offset:
bb_plot_quality_distribution --input reads.fastq --phred_offset 64
โ๏ธ Usage
bb_plot_quality_distribution --input FILE [--sample_size PCT] [--phred_offset N] [--outfile FILE] [--quiet] [--force]
๐งต Options
Option | Description |
---|---|
--input FILE |
FASTQ file or - for STDIN (required) |
--sample_size PCT |
Percentage of reads to sample randomly (optional) |
--phred_offset N |
ASCII offset for quality encoding (default: 33) |
--outfile FILE |
Output file (default: STDOUT) |
--quiet |
Suppress informational messages |
--force |
Overwrite output file if it exists |
๐ Notes
- Output bins include ranges: 0โ9, 10โ19, 20โ29, ... up to 60โ69.
- A quick way to inspect general sequencing quality across reads.