razmia.sabahat
07/13/2026, 3:47 PMnf-test.
CIRI2 strictly requires a SAM file generated by BWA-MEM using the -T 19 flag. Since the nf-core/test-datasets repo doesn't host raw, uncompressed SAM files for Homo sapiens, I'm weighing my options according to nf-core guidelines:
1. Chain modules in `setup`: If I run BWA_MEM in the setup block, I will also need to chain BWA_INDEX before it since pre-computed BWA index directories aren't available for the human test genome. This feels quite heavy for a single module unit test.
2. Local asset: Should I just include a tiny, heavily-truncated mock SAM file directly inside the module's tests/assets/ directory?
Has anyone encountered a similar tool dependency issue during testing? What is the recommended or preferred approach by maintainers in this scenario?
Any guidance would be highly appreciated. Thanks in advance!Matthieu Muffato
07/13/2026, 5:21 PMsetup phase. Here’s an example: https://github.com/nf-core/modules/blob/master/modules/nf-core/angsd/contamination/tests/main.nf.testMatthieu Muffato
07/13/2026, 5:28 PMAlexander Nater
07/14/2026, 2:08 PMrazmia.sabahat
07/14/2026, 2:21 PM