subread-align
Quick Start
- Command:
subread-align -i <index_name> -r <input> -t <type> -o <output> - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/subread-align - Version: 2.1.1
- Full reference: See references/help.md for complete options and flags
When To Use This Tool
- Align genomic DNA-seq reads with a fast Subread-based aligner.
- Align RNA-seq reads when full splice-junction discovery is not the main requirement.
- Produce BAM output directly for downstream QC or counting.
- Prefer
subjuncinstead when exon-exon junction detection is central.
Common Patterns
# 1) Genomic DNA-seq alignment
subread-align \
-i ref_index \
-r reads.fastq.gz \
-t 1 \
-o sample.bam \
-T 8
# 2) Paired-end RNA-seq alignment
subread-align \
-i ref_index \
-r sample_R1.fastq.gz \
-R sample_R2.fastq.gz \
-t 0 \
-o sample.bam \
-T 8
# 3) Coordinate-sorted BAM ready for genome-browser loading
subread-align \
-i ref_index \
-r sample_R1.fastq.gz \
-R sample_R2.fastq.gz \
-t 1 \
-o sample.bam \
-T 8 \
--sortReadsByCoordinates
Recommended Workflow
- Build the index first with
subread-buildindexand keep the basename stable. - Choose
-t 0for RNA-seq and-t 1for genomic DNA before tuning anything else. - Add paired-end orientation and fragment constraints only if the library design requires it.
- Validate mapping quality and BAM size before counting or variant calling.
Guardrails
-i,-r, and-tare mandatory, and-iexpects the index basename, not the FASTA file.- Gzipped FASTQ/FASTA are auto-detected; use
--SAMinputor--BAMinputonly for alignment-file input. - Default output is BAM; use
--SAMoutputonly if plain-text SAM is actually needed. --multiMappingchanges reporting behavior substantially; pair it with-Bintentionally.-m,-p,-M, and-Iaffect sensitivity and specificity, so keep those settings cohort-consistent.