8000 nf-test for local execute_clustering subworkflow by vagkaratzas · Pull Request #53 · nf-core/proteinfamilies · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nf-test for local execute_clustering subworkflow #53

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

Merged
merged 6 commits into from
Mar 25, 2025

Conversation

vagkaratzas
Copy link
Collaborator
@vagkaratzas vagkaratzas commented Mar 25, 2025

Closes #47

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/proteinfamilies 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).

@@ -18,7 +19,7 @@ workflow EXECUTE_CLUSTERING {
MMSEQS_CREATEDB( sequences )
ch_versions = ch_versions.mix( MMSEQS_CREATEDB.out.versions )

if (params.clustering_tool == 'cluster') {
if (clustering_tool == 'cluster') {
cluster_res = MMSEQS_CLUSTER( MMSEQS_CREATEDB.out.db )
ch_versions = ch_versions.mix( MMSEQS_CLUSTER.out.versions )
} else { // fallback: linclust
Copy link
Member

Choose a reason for hiding this comment

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

In the test you test if clustering_tool is cluster or linclust, but here only if it's different from cluster.
Is there a reason for that ?
Could you harmonize it ?
Otherwise, LGTM :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since there are currently only two choices ['linclust', 'cluster'], the else condition captures the linclust option ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, I just saw the keyword 'hamronize'. Explicitly stated linclust as the alternate option. Anything else is caught and thrown as error at the json schema level.

@vagkaratzas vagkaratzas requested a review from maxibor March 25, 2025 14:49
@vagkaratzas vagkaratzas merged commit 4b383ba into dev Mar 25, 2025
7 checks passed
@vagkaratzas vagkaratzas deleted the nf-test-execute_clustering branch March 25, 2025 15:38
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.

2 participants
0