why is this `nf-core modules test samtools/sort --...
# nf-test
l
why is this
nf-core modules test samtools/sort --profile singularity
resulting in it trying to test all (?) the modules? From
.nf-test.log
Copy code
Aug-12 16:53:53.595 [main] INFO  com.askimed.nf.test.App - nf-test 0.9.2
Aug-12 16:53:53.610 [main] INFO  com.askimed.nf.test.App - Arguments: [test, --tag, samtools/sort, --profile, singularity]
Aug-12 16:53:54.508 [main] INFO  com.askimed.nf.test.App - Nextflow Version: 25.04.6
Aug-12 16:53:54.509 [main] INFO  com.askimed.nf.test.commands.RunTestsCommand - Load config from file /lustre1/project/stg_00104/lharbers/repositories/modules/nf-test.config...
Aug-12 16:53:56.343 [main] INFO  com.askimed.nf.test.lang.dependencies.DependencyResolver - Loaded 5023 files from directory /lustre1/project/stg_00104/lharbers/repositories/modules in 1.373 sec
Aug-12 16:53:56.351 [main] INFO  com.askimed.nf.test.lang.dependencies.DependencyResolver - Found 1679 files containing tests.
Simply running
nf-core modules test
and then selecting
samtools/sort
in the drop down doesn't change anything. Am I overlooking something?
n
This means it checked all those files for test dependencies. Did it actually start anything else than
samtools/sort
?
l
Yep its running everything
🤔 1
or well, 56 of them:
Copy code
Aug-12 17:00:19.446 [main] INFO  com.askimed.nf.test.commands.RunTestsCommand - Found 56 tests to execute.
Aug-12 17:00:19.447 [main] INFO  com.askimed.nf.test.core.TestExecutionEngine - Started test plan
Aug-12 17:00:19.447 [main] INFO  com.askimed.nf.test.core.TestExecutionEngine - Running testsuite 'Test Process MUDSKIPPER_BULK' from file '/lustre1/project/stg_00104/lharbers/repositories/modules/modules/nf-core/mudskipper/bulk/tests/main.nf.test'.
Aug-12 17:00:19.447 [main] INFO  com.askimed.nf.test.core.TestExecutionEngine - Run test 'bf9421fa: homo_sapiens - gtf - bam'. type: com.askimed.nf.test.lang.process.ProcessTest
n
Strange, is
samtools/sort
a dependency of the tests that are running?
l
Ahh hmm, perhaps (?)
that could be the case I guess
Not sure why the sorted bam is being sorted again in this case though
confused dog 1
l
No idea. But yea ok that makes more sense. Makes testing a little slow though but thats fine
Thanks for help (once again today 😛 ) Would this mean that all those tests need to be adjusted as well in the case of changing samtools sort to also include automatically writing index.
n
No worries, it means that those tests should also be updated 😅
Samtools sort does already support indexing though
l
Yep, but we figured it would be nice to have it in the same way as
samtools/view
is now. Where you have one additional input with the type of index. https://github.com/nf-core/modules/commit/e9bca09da225e5132d45a32bf830a434843bb5be
now if you add
ext.args = '--write-index'
it defaults to
.csi
without the flexibility to have it output
.bai
n
aaah okay I get it now, sounds fair then!