Build index¶
Use bsbit index to build the complete alignment index from a reference genome
FASTA:
Common options¶
Reference requirements¶
Uncompressed FASTA is
recommended for end-to-end workflows, although bsbit index can also read
gzip- and BGZF-compressed FASTA. A .fai is not required for the command but is
recommended to enable random access in bsbit call. Run the following command
for your reference format:
Uncompressed FASTA:
BGZF-compressed FASTA (creates both .fai and .gzi):
Ordinary gzip versus BGZF
If samtools faidx reports [E::fai_build3_core] Cannot index files
compressed with gzip, please use bgzip, the FASTA is compressed with
standard gzip, which does not support indexed random access. Although
bsbit index can read the file sequentially, we recommend converting it to
BGZF and generating its .fai and .gzi indexes before running
bsbit index, so the same reference is ready for bsbit call:
Index output¶
bsbit index writes the complete reference index at -o. Pass the same path
to bsbit align -x. This index is used only for alignment; bsbit call reads
the original FASTA directly.
Treat the bundle as one artifact; downstream commands do not modify it after
generation. If the reference FASTA changes, rerun bsbit index to generate a
new matching index before alignment.