subread-buildindex
Quick Start
- Command:
subread-buildindex -o <basename> <reference.fa[.gz]> - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/subread-buildindex - Version: 2.1.1
- Full reference: See
references/help.mdfor detailed options and usage
When To Use This Tool
- Build the reference index required by
subread-alignandsubjunc. - Tune index layout for memory or speed with
-F,-B, and-M. - Create the index once per reference build, then reuse it across samples.
Common Patterns
# 1) Default index build
subread-buildindex -o ref_index genome.fa
# 2) Build from gzipped FASTA
subread-buildindex -o ref_index genome.fa.gz
# 3) Favor speed at the cost of larger memory/index size
subread-buildindex -o ref_index -F -B -M 16000 genome.fa
Recommended Workflow
- Choose a stable basename for the index; downstream aligners refer to that basename with
-i. - Build from the exact FASTA used for the project assembly and annotation.
- Decide whether you want the default compact index or a larger full index with
-F. - Verify the expected index files exist before aligning any sample.
Guardrails
- The required argument is
-o <basename>; the reference FASTA comes after options as positional input. -Fbuilds a full index that is larger on disk but can improve alignment behavior for some workloads.-Bdisables index splitting and can increase alignment memory use substantially.-Mis the requested RAM budget in MB during index building; raise it explicitly for large genomes.