What am I doing wrong ?
# nostupidquestions
a
What am I doing wrong ?
m
Normally new modules are created on a new branch locally with:
Copy code
nf-core modules create tool/subtool
which writes out a template for you to update and fill in. You would then run
Copy code
nf-core modules test tool/subtool
to test, and then
Copy code
nf-core modules lint tool/subtool
Did you create your module using the first step?
j
I asked seqera ai and it said
nf-core modules test
is for testing the moduel following the nf-core module structure (
modules/nf-core/TOOL/SUBTOOL/
) only. Local modules (in
modules/local/
) should be tested with
nf-test
command directly. try this just for the case:
Copy code
cd modules/local/meteor/download

nf-test test --profile conda
m
If a module is intended to be submitted to nf-core, it should not be a local module ( good catch ). One should make a fork of the https://github.com/nf-core/modules repo, and then clone that locally and make a new branch. Using the commands above, it'll write out a module skeleton in the correct place. And Seqera AI can be used to help find test data and write the nf-tests too.
a
Thank you @Je Hee Lee much clearer now !
😁 1
@Mahesh Binzer-Panchal totally agree, but first I still have the learning curve to provide good code to nf-core. I did use
nf-core modules create
m
That's what the review process is for. The reviewers can help you improve your code. But then do use Seqera's AI then to assist you with coding.
👍 1