Hi! I've been working in fitting viralrecon into t...
# viralrecon
s
Hi! I've been working in fitting viralrecon into the template (with 1 workflow instead of two...). Can someone have a look to this PR? Thanks! https://github.com/nf-core/viralrecon/pull/506
👀 1
m
interesting approach
I can see the fact that we have 2 workflows here being a bit out of the regular usage of the template
and I can definitively understand why you would have done that
s
Actually it was H. Patel during the change from DSL1 to DSL2
and it has been like that since
😅
m
yeah, I know
I meant I can see why you want to revert such changes
to be honest, I do like the 2 workflows, but I feel like have 2 different versions of MultiQC is less than optimal
s
That's another issue I'll work in after this fix. @Joon Klaps already made some progress.
🙏 1
m
that was the thing I wanted to sort out
s
But it thought that this fix was most important
m
for MultiQC, I'd recommend putting it at the root: https://github.com/nf-core/rnavar/blob/master/main.nf#L236-L268
👀 1
and in your case, for 1 or 2 workflows, it's really what makes it easier for you to maintain
And as much as I would love to keep these 2 workflows, as I haven't helped much, I agree with your decision
s
So everytime TEMPLATE is updated, it creates the viralrecon.nf file with the changes, and then I have to put everything in the other ones manually, so I think having everything homogeneous is better
m
I know the problem
s
Do you think there's another way to fix this 2 workflows thing?
m
have an empty
workflows/viralrecon.nf
that gets sync with each template until we figure out a better way
but that's a hack
s
Maybe we can have a
workflows/viralrecon.nf
that includes the other two, and MULTIQC and the TEMPLATE things are still in
workflows/viralrecon.nf
I don't know in that case if illumina and nanopore should be workflows or sub-workflows maybe?
m
I'd say they should be pipelines and we should be able to chain them together nicely, but we don't have that yet
for me they might be slightly too big to be sub-workflows, but maybe that's the way
s
I think that while the TEMPLATE's
workflows/viralrecon.nf
things are kept in
workflows/viralrecon.nf
to make update faster, having 3 workflows (viralrecon, illumina and nanopore) or leave them as sub-workflows is fine for me, whatever that you think is better or easier to mantain
m
You're the actual maintainer
it's your decision in the end really
I just don't think that putting all illumina and nanopore scripts in the one makes sense
s
I want it to be easy for the future mantainer in case I can't do it anymore... I don't know if it is a good practice for nf-core to have the three of them as workflows...
m
I don't think such a case is quite common
@Nicolas Vannieuwkerke any idea?
n
I also don't really know of another case like this, IMO you can do whatever you want here, maybe adding a README file in the `workflows`folder for future maintainers can help?
s
for me what's @Sarai has made is the easier way to mantain, as is how the nf tools expect it. it can be changed in the future if this case comes up on another pipeline and something is decided nf-core wide? Like it is is true that it's a long workflow, but if we get multiqc to be run just once, it does what we need. @Sarai see if converting the subworkflows works for you and you feel is doable in a short time, if so i think i'll go for subworkflows, but it's fine by me to have everything in the same script. Sorry for the thinking and writing at the same time xD