Skip to content

使用指南

本指南只覆盖已交付的单端流程:FASTA 参考序列、FASTQ reads、.fm 索引和 SAM 输出。

标准路径

bash
bwa-rust index reference.fa -o ref
bwa-rust align -i ref.fm reads.fq -o output.sam

也可以用 mem 在内存中构建索引并立即比对:

bash
bwa-rust mem reference.fa reads.fq -t 4 -o output.sam

参数真值

CLI 默认值与 src/align/mod.rsAlignOpt::default() 保持一致。常用参数:

参数默认值CLI
match score2--match / -A
mismatch penalty1--mismatch / -B
gap open2--gap-open / -O
gap extend1--gap-ext / -E
band width16--band-width / -w
score threshold20--score-threshold / -T
min seed length19--min-seed-len / -k
z-drop100--z-drop / -d

下一步

MIT License. Inspired by BWA.