Skip to content

feat: mako module#12155

Open
emmcauley wants to merge 2 commits into
nf-core:masterfrom
fulcrumgenomics:em_fg_mako
Open

feat: mako module#12155
emmcauley wants to merge 2 commits into
nf-core:masterfrom
fulcrumgenomics:em_fg_mako

Conversation

@emmcauley

Copy link
Copy Markdown
Contributor

PR checklist

Closes #12154.

This PR adds mako from Fulcrum Genomics, a faster replacements for samtools sort.

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@emmcauley emmcauley force-pushed the em_fg_mako branch 3 times, most recently from aa14824 to 9b36fd6 Compare June 23, 2026 20:39
tuple val(meta), path(bam)

output:
tuple val(meta), path("${prefix}.bam"), emit: bam

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have maybe have this in one tuple?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about combining the BAM and BAI, because the .bai is optional: true but the .bam is always produced.

tuple val(meta), path("${prefix}.bam"), emit: bam
tuple val(meta), path("${prefix}.bam.bai"), emit: bai, optional: true
tuple val("${task.process}"), val('mako'), eval("mako --version | sed '1!d; s/^[^ ]* //; s/ .*//'"), topic: versions, emit: versions_mako
tuple val("${task.process}"), val('fgumi'), eval("mako --version | sed '2!d; s/.* //'"), topic: versions, emit: versions_fgumi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no fgumi here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fgumi version is built into this command:

$ mako --version
mako 0.1.3 (rev unknown)
powered by fgumi 0.3.1

$ mako --version | sed '1!d; s/^[^ ]* //; s/ .*//'
0.1.3
$ mako --version | sed '2!d; s/.* //'
0.3.1

@emmcauley emmcauley requested a review from matthdsm June 26, 2026 15:55
@nh13 nh13 added new module Adding a new module Ready for Review 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.

new module: mako

3 participants