Hi, I do not understand how the nf-core minimap2/a...
# modules
n
Hi, I do not understand how the nf-core minimap2/align module is supposed to be used with short reads. The documentation (https://nf-co.re/modules/minimap2_align) gives for the input reads: meta1:
[ id:'test', single_end:false ]
, but the module itself makes no use of
single_end
? The module takes ext.args[1-4], but documentation on what those do does not seem to exist?
a
I don't have experience of using minimap2 for short reads personally but the docs suggest minimap2 does some kind of interleaving with assumptions itself? Have you run it on short reads outside of nf-core? If so what command
n
the normal command is
-ax sr ref read1 read2
the main thing that is confusing me is why does the documentation list single_end if it is not needed?
a
So then I think you will just need to use channel manipulation to ensure you have
read1 read2
in the input channel
n
But i think, actually, besides that it just works when you give reads as a list of two files?
a
Yes. I just checked the nf-core web docs and they seem quite clear that reads should either be 1 or 2 files of input. 2 if paired
n
Ok, that is clear, but why the single_end in the meta map?
a
That's just boilerplate
n
Ok
Thanks
a
I think every module pretty much leaves it unchanged. I'm not sure if modules that assume specific meta values are present make more indication of that though
s
I think every module pretty much leaves it unchanged. I'm not sure if modules that assume specific meta values are present make more indication of that though
Yes, as Arthur notes it is boilerplate, maybe we should get rid of that. nf-core modules aren't really supposed to require other meta values.
👍 1
a
single_end
is I think the only exception?
s
In theory
n
It mainly seems confusing if it is indicated as part of meta, and then irrelevant for the module?
👍 3
s
Sure
I tend to remove it if it is not relevant to the module
f
I think it got into a lot of meta maps because people did not really review enough to catch the cases when its not applicable but its part of the module template. Maybe it needs to be removed from the module template to be less confusing?
💯 2