-
Notifications
You must be signed in to change notification settings - Fork 116
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
Longread only functionality #718
base: dev
Are you sure you want to change the base?
Conversation
… 97 to 90 when dealing with longreads
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.1.0. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation 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 only had a short look, sorry, but I just wanted to express my gratitude that you tackle long read assembly!
My pleasure hehe. Still WIP. I have to tidy up the code and run some validation on real data, but we're getting there! |
…rtread assemblers, when assembly input is given
…empty if no files are given
…d also return remainder in case the ch_short_reads channel is empty. Change config for FILTLONG to only use '--trim' option if shortreads are passed
So far in this PR I have
Downstream from the assembly, except for the binning preparation, the long read and short read assemblies are treated the same. |
Me and some colleagues are running some tests on ont data, and I think this works as expected. We will continue testing and play around with the parameters, but if anyone wants to have a look through the code and suggest improvements, that would be awesome! |
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 I'm not seeing anything obvious! But I would still like to run a test (can't do that today).
Once commetns (mostly questions) addressed, I will start the manual tests :)
BOWTIE2_ASSEMBLY_BUILD ( assemblies ) | ||
ch_versions = Channel.empty() | ||
ch_multiqc_files = Channel.empty() | ||
// multiple symlinks to the same assembly -> use first of sorted list |
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.
// multiple symlinks to the same assembly -> use first of sorted list | |
// multiple symlinks to the same assembly -> use first of sorted list |
What is this comment referring to, it sounds a bit scary?
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.
Did a lot of copy-pasting here from original binning_preparation.nf, forgot to remove this comment :) the comment is referring to line 47 in shortread_binning_preparation.nf if you are interest. I did not write this line of code though.
ch_minimap2_input_idx = ch_minimap2_input | ||
.map { meta_idx, index, meta, reads -> [ meta_idx, index ] } | ||
|
||
MINIMAP2_ASSEMBLY_ALIGN ( ch_minimap2_input_reads, ch_minimap2_input_idx, true, 'bai', false, false ) |
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.
What are the true/false/falses? something should be parameterasable by the user?
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.
first true: if the output should be in bam-format. I think this can be fixed
first false: If the output is set to paf, then a cigar string is generated. This only happens if output format is not bam, so does not make sense for it to be changed by user
second false: to make the cigar string backward compatible with older tools, but no need for that here.
thank you @jfy133. I'm away this week, but I'll try to find time to go through your comments asap. |
Co-authored-by: James A. Fellows Yates <[email protected]>
Thanks for the review @jfy133. Sorry I have been away this week, but now I think I addressed all of your comments. |
This PR adds long-read only functionality to mag.
closes #662, #659, #275
PR checklist
nf-core pipelines lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,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).