How do I use the mosdepth module without the secon...
# nostupidquestions
a
How do I use the mosdepth module without the second input which is optional?
Copy code
MOSDEPTH(ch_bam_bai_bed, [])
should work right?
e
Not sure about this module, but in general, yes,
[]
is the way
👍 1
f
[[],[]]
for this module, since input is
tuple val(meta2), path(fasta)
🙏 1
this 1
a
That did the trick thanks Felix. Finally getting a useful error!
e
Yep, that one. Sorry, I'm from phone and didnt open the module :p
👍 1
a
No problem!
m
I would do [[:],[] actually
but that's just in case the meta2 is used which is never
f
Never thought about that distinction, thanks!
m
you actually need it when it's optional and the meta map is accessed
having [] is just an empty file, but having [:] is an empty map
so if the meta map is accessed when using [], let's say in a tag, that will fail
👀 1
💡 1