Add PyPOLCA polishing and use polished assemblies for long-read binning#1048
Add PyPOLCA polishing and use polished assemblies for long-read binning#1048Harshita-sriv wants to merge 12 commits into
Conversation
|
Hi @Harshita-sriv, thanks for this! |
|
Thanks for the review. I investigated the CI failures and found that the current implementation does not define ch_polished_assemblies when run_pypolca is not enabled, which causes the test workflows to fail. I'll address this together with the requested migration to the official nf-core PyPOLCA module, removal of debug statements, and formatting fixes |
Merge remote-tracking branch 'upstream/dev' into add-polishing-module
|
Hi @Harshita-sriv! I think this looks fine, but it would be ideal to wire it up in some test. I'll think what would be the best option here and I'll come back to you. |
d4straub
left a comment
There was a problem hiding this comment.
Thanks for the addition, I think thats absolutely desired!
Looks good but I have some concerns with multiple samples.
|
I noticed that the remaining lint failure is due to modifications in The changes were introduced because PyPOLCA was failing during testing, and with the modifications the pipeline completes successfully on the test dataset. Would it be acceptable to keep these modifications to the PyPOLCA module, or would you prefer that the implementation uses the upstream module unchanged and handles the required logic elsewhere? |
Some of the changes are not acceptable: the output block and the versioning must be kept as it was originally. Additionally the line Generally, small changes on nf-core modules can be done and accepted by the linting via https://nf-co.re/docs/nf-core-tools/cli/modules/patch |
|
@d4straub I restored the PyPOLCA module to the upstream nf-core implementation and moved the coassembly-specific logic into the workflow layer ( The remaining CI issue appears to be the Could you advise whether there is an additional module sync/patch step expected for this module? |
|
Looks good. |
Summary
This PR adds a PyPOLCA polishing module and integrates polished assemblies into the long-read MAG workflow.
Changes
run_pypolcaparameter.ch_polished_assembliesinstead of rawch_longread_assemblies.Validation
Tested on one Nanopore metagenomic sample.
Verified that:
sample_polished.fasta.LONGREAD_BINNING_PREPARATION:MINIMAP2_ASSEMBLY_INDEXusedsample_polished.fasta.This ensures MAG generation is performed using polished assemblies rather than raw Flye assemblies.