quality-scores
Quick Start
- Command:
qualityScores -i input.fastq -o output.txt - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/qualityScores - Version observed locally:
2.1.1 - Output shape: one comma-separated quality vector per sampled read
When To Use This Tool
- Extract raw per-base Phred values from sequencing files for lightweight QC or downstream summaries.
- Sample qualities from plain FASTQ, gzipped FASTQ, BAM, or SAM input.
- Restrict quality extraction to first-end or second-end reads from paired BAM / SAM files.
- Keep using Subread's small helper instead of writing a one-off parser.
Common Patterns
# 1) Plain FASTQ input
qualityScores -i reads.fastq -o qualities.txt
# 2) Gzipped FASTQ input
qualityScores --gzFASTQinput -i reads.fastq.gz -o qualities.txt
# 3) BAM input, first mates only, with a smaller sample
qualityScores \
--BAMinput \
--first-end \
--counted-reads 2000 \
-i alignments.bam \
-o qualities.txt
Recommended Workflow
- Pick the correct input-mode flag: none for plain FASTQ,
--gzFASTQinput,--BAMinput, or--SAMinputas needed. - Set
--counted-readsdeliberately if the default sample of10000reads is too large or too small. - Run the command and inspect the output text file to confirm the expected per-read comma-separated quality values.
- If using BAM or SAM, apply
--first-endor--second-endonly when you really want one mate subset.
Guardrails
- The skill folder is
quality-scores, but the real executable isqualityScores. - Both
-iand-oare required. - The tool does not implement clean help switches:
--helpand-hprint an unrecognized-option message and then fall through to usage text. - Default input interpretation is plain FASTQ; BAM and SAM require explicit mode flags.
--first-endand--second-endare only meaningful for paired BAM / SAM input.- FASTQ Phred encoding can be adjusted with
--phred-offset 33|64; for SAM / BAM data, scores are usually already Phred+33.