-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subworkflow for organelles #18
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test this after merging the other two PRs and then good to move forward. You might want to add associated documentation to this PR.
modules/local/mitohifi.nf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the module you are trying to add to nf-core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is the one
code) | ||
} | ||
|
||
emit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can some of the channel engineering be moved above for a cleaner emit
section? It is very hard to follow right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems it looks better now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to make the changes and merge this PR? And do the changes for CI testing in a separate PR?
Removed all redundant files from the emit section. I think it can be merged in now. Thanks @priyanka-surana |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple minor changes requested.
nextflow.config
Outdated
@@ -19,6 +19,7 @@ params { | |||
|
|||
// Assembly options | |||
hifiasm_hic_on = false | |||
organelles_on = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are recommended to keep the default as false
and then turn on via command line flags or the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
||
emit: | ||
|
||
versions = ch_versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now there are no output files. Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we need this files in the final output, we don't need them down the workflow. Initially I thought the emit section has to do something with the files being published, but actually it works fine the way it is now.
I'm not that familiar with MitoHifi :) ! I can see you cleaned up the entire
|
Thank you @muffato for suggestions. I've updated the code, could you have a look if it's what you mean please? I had to put -r/-c into ext.args2 because the input file should follow the corresponding option immediately:
The purpose of the original implementation of the organelles workflow was to separate the whole organelles logic into the separate workflow to lighten up the main workflow. My concern though is that the main workflow getting rather long. Is it a standard practice to keep it that way? It will become more readable when I add documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. I find it much more straightforward !
Can you propose your updated mitohifi/mitohifi module to nf-core (can do that after this PR) and suggest mahesh-panchal and scorreard for review ? They both work on genome-assembly pipelines.
@muffato |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you said, the module is now in sync with nf-core, meaning no local .diff
file.
All good !
Implements assembling mito from raw reads and from assembly
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).