Skip to content

Conversation

@dialvarezs
Copy link
Member

@dialvarezs dialvarezs commented May 9, 2025

Main changes:

  • Migrate from local CAT modules to nf-core ones, updating version to 6.0.1.
  • Add new option to trigger taxonomic classification of unbinned data using CAT contig mode.

Closes #611, #735.

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/mag branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@jfy133
Copy link
Member

jfy133 commented May 16, 2025

@nf-core-bot fix linting

@dialvarezs dialvarezs marked this pull request as ready for review May 23, 2025 14:13
Copy link
Contributor

@prototaxites prototaxites left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dialvarezs, I don’t have time to run any tests at the moment but wanted to say this looks really good - just one little comment so far. I’ll try and take a more in depth look later next week!

Copy link
Collaborator

@d4straub d4straub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a look and found it looks great I think! However, I had no time to run the pipeline, so I hesitate to give it an approval (and I am just getting used to mag again).

Copy link
Member

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good again @dialvarezs !

  • Can you double check there is no change to the output structure, and thus no changes needed there (given you've added CATPACK_BINS`, I wonder if we should describe that there

Otherwise I don't think there is any major blockers from me here, other than maybe the missing SUMMARISE for CATPACK_BINS

Once the changes here are made I would like to do my own quick test and then I think we are good o go

Very clean PR, thank you again!

@jfy133
Copy link
Member

jfy133 commented May 28, 2025

@nf-core-bot fix linting

Copy link
Member

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now @dialvarezs ! Thank you very much, I think this will be really helpful!

If he has time maybe @prototaxites can have another look through (as he's given quite a few comments before), and then merge.

Co-authored-by: James A. Fellows Yates <[email protected]>
Copy link
Contributor

@prototaxites prototaxites left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dialvarezs, this looks great! Couple of small comments - the one about params passing is definitely optional and it might make sense to do as a single PR refactoring all pipeline inputs down the line.

========================================
*/

if (params.cat_db) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future-proof thinking: Is it better to pass the DB into this subwf as a channel, rather than reading it direct from the params? In future, it looks like params will only be available in the entry workflow and need to be passed through as arguments.

Copy link
Member Author

@dialvarezs dialvarezs Jun 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess it makes more sense to update this across the entire pipeline in a single PR.
Could you open an issue to keep track of this change?

=========================================
*/

if (params.cat_classify_unbinned) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above!

@dialvarezs
Copy link
Member Author

Thanks for the reviews, @jfy133, @prototaxites, @d4straub!
Once the tests pass, I’ll merge this baby!

@dialvarezs dialvarezs merged commit fc3b1e6 into nf-core:dev Jun 2, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants