Skip to content

Provide .fna support for pbmm2/align - #12602

Open
stvdsomp wants to merge 3 commits into
nf-core:masterfrom
stvdsomp:pbmm2_fna_support
Open

Provide .fna support for pbmm2/align#12602
stvdsomp wants to merge 3 commits into
nf-core:masterfrom
stvdsomp:pbmm2_fna_support

Conversation

@stvdsomp

@stvdsomp stvdsomp commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Add support for reference files with the .fna extension when providing reference genomes to pbmm2.

Motivation

Many reference genomes distributed by NCBI and other bioinformatics resources use the .fna extension for FASTA-formatted nucleotide sequence files. While these files are standard FASTA files, pbmm2 currently does not recognize them as valid reference inputs. Therefore, users have to rename .fna files to .fa or .fasta before they can be used with pbmm2, even though the underlying file format is identical.

A corresponding issue has also been reported on the PacBio GitHub page: PacificBiosciences/pbbioconda#821

PR checklist

  • 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 necessary, include test data in your PR.
  • 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

@stvdsomp
stvdsomp requested a review from nvnieuwk August 6, 2026 09:50

@nvnieuwk nvnieuwk left a comment

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.

Some comments about the test, all other code looks good!

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.

Please add all tests to main.nf.test. This way all tests are in the same place which makes it easier to update them if necessary

}

test("sarscov2 - transcriptome fasta - stub") {
test("pbmm2 - bam - fna - stub") {

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 need for a stub test here since there is already one in the main.nf.test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants