Skip to content

feat: add minibwa modules (index and map)#12175

Open
nh13 wants to merge 2 commits into
nf-core:masterfrom
nh13:nh/minibwa
Open

feat: add minibwa modules (index and map)#12175
nh13 wants to merge 2 commits into
nf-core:masterfrom
nh13:nh/minibwa

Conversation

@nh13

@nh13 nh13 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Description

Adds two new modules for minibwa, a reimplementation of bwa-mem for aligning short and accurate long reads:

  • minibwa/index — builds the .l2b/.mbw FM-index for a reference genome.
  • minibwa/map — aligns FastQ reads to a minibwa index, piping through samtools sort/view (via the sort_bam input) to emit SAM/BAM/CRAM plus optional indices.

Both are tested against the sarscov2 genome/fastq fixtures with stub runs.

PR checklist

  • This comment contains a description of changes (with reason).
  • Followed the module conventions in the contribution docs.
  • Added a resource label.
  • Used BioConda and BioContainers (bioconda::minibwa=0.2; Seqera Wave community containers).
  • nf-core modules test minibwa/index --profile docker and minibwa/map pass.
  • Broadcast software version numbers to topic: versions.

nh13 added 2 commits June 26, 2026 10:36
Add an nf-core module wrapping `minibwa index`, which builds an
FM-index for a reference genome. minibwa is a reimplementation of
bwa-mem for aligning short and accurate long reads. The module emits
the index directory of .l2b/.mbw files and a versions topic, and is
tested against the sarscov2 genome fasta plus a stub run.
Add an nf-core module wrapping `minibwa map`, which aligns FastQ reads
to a minibwa index. The module mirrors bwamem3/mem: it pipes
alignments through samtools sort/view (selected by the `sort_bam`
input) to emit SAM/BAM/CRAM plus optional indices, and broadcasts the
minibwa and samtools versions to the versions topic.

Tests cover single- and paired-end sarscov2 reads with sort on/off and
a stub run, chaining minibwa/index in setup.
@nh13 nh13 enabled auto-merge June 26, 2026 20:25
@nh13 nh13 added Ready for Review new module Adding a new module labels Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant