Skip to content
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

[DRAFT] Add NGSCheckMate in as part of a cram sampleQC subworkflow #1252

Merged
merged 29 commits into from
Nov 8, 2023

Conversation

SPPearce
Copy link
Contributor

@SPPearce SPPearce commented Sep 24, 2023

This PR is to add NGSCheckMate, a tool to check if samples come from the same individual.
I have put it into a subworkflow (currently called cram_sampleqc), on the thought that we will include sexdeterrmine and somalier at the same point.

@SPPearce SPPearce changed the base branch from master to dev September 24, 2023 20:25
@nf-core nf-core deleted a comment from github-actions bot Sep 24, 2023
@github-actions
Copy link

github-actions bot commented Sep 24, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 4e55d5d

+| ✅ 144 tests passed       |+
#| ❔   9 tests were ignored |#
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in WorkflowSarek.groovy: Optionally add in-text citation tools to this list.
  • schema_description - No description provided in schema for parameter: bcftools_annotations
  • schema_description - No description provided in schema for parameter: bcftools_annotations_index
  • schema_description - No description provided in schema for parameter: bcftools_header_lines

❔ Tests ignored:

  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • files_exist - File is ignored: conf/modules.config
  • files_unchanged - File ignored due to lint config: assets/nf-core-sarek_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-sarek_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-sarek_logo_dark.png
  • files_unchanged - File ignored due to lint config: lib/NfcoreTemplate.groovy
  • files_unchanged - File ignored due to lint config: .gitignore or .prettierignore or pyproject.toml
  • actions_ci - actions_ci
  • template_strings - template_strings

✅ Tests passed:

Run details

  • nf-core/tools version 2.10
  • Run at 2023-11-07 22:52:29

conf/igenomes.config Outdated Show resolved Hide resolved
@@ -0,0 +1,12 @@
process {
withName: ".*BAM_NGSCHECKMATE:BCFTOOLS_MPILEUP" {
ext.when = { params.tools && params.tools.split(',').contains('sampleqc') }
Copy link
Member

Choose a reason for hiding this comment

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

why sampleqc and not ngscheckmate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that the other tools that have been discussed (sexdeterrmine, somalier) would go into the same subworkflow. So I thought they might be all controlled together, but if they should be more granular that is fine too.

Copy link
Member

Choose a reason for hiding this comment

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

I'd rather be granular, as we already have some qc tools

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed. maybe someone wants to run checkmate but not somalier etc.

Copy link
Member

Choose a reason for hiding this comment

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

To be fair, for most our QC tools, they enabled by default and disabled à la demande with --skip_tools, should we do that there?

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@maxulysse maxulysse left a comment

Choose a reason for hiding this comment

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

Looking amazing, can you add some tests maybe?

@SPPearce
Copy link
Contributor Author

Looking amazing, can you add some tests maybe?

Yes, I do want to add a test, just wasn't sure where/how to add that so need to discuss please.

conf/igenomes.config Outdated Show resolved Hide resolved
conf/igenomes.config Outdated Show resolved Hide resolved
conf/igenomes.config Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
SPPearce and others added 11 commits September 29, 2023 20:40
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Copy link
Contributor

@FriederikeHanssen FriederikeHanssen left a comment

Choose a reason for hiding this comment

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

Looks good, just some smaller additional things with doc ordering from me. I am blaming @maxulysse for training me for 3 years 😆

CHANGELOG.md Outdated Show resolved Hide resolved
docs/output.md Outdated Show resolved Hide resolved
nextflow.config Outdated Show resolved Hide resolved
@github-actions
Copy link

Python linting (black) is failing

To keep the code consistent with lots of contributors, we run automated code consistency checks.
To fix this CI test, please run:

  • Install black: pip install black
  • Fix formatting errors in your pipeline: black .

Once you push these changes the test should pass, and you can hide this comment 👍

We highly recommend setting up Black in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!

Thanks again for your contribution!

@SPPearce
Copy link
Contributor Author

SPPearce commented Nov 7, 2023

@maxulysse , I can't seem to manage to specify ngscheckmate_bed using the test_data, can you help me please.
Swapping
ngscheckmate_bed = params.test_data['homo_sapiens']['genome']['ngscheckmate_bed']
instead of hardcoding the path (in conf/test/cache.config and conf/test/test.config) gives me an error:

ERROR ~ Unknown config attribute params.ngscheckmate_bed -- check config file: /workspace/sarek/nextflow.config

@SPPearce
Copy link
Contributor Author

SPPearce commented Nov 7, 2023

@maxulysse , I can't seem to manage to specify ngscheckmate_bed using the test_data, can you help me please. Swapping ngscheckmate_bed = params.test_data['homo_sapiens']['genome']['ngscheckmate_bed'] instead of hardcoding the path (in conf/test/cache.config and conf/test/test.config) gives me an error:

ERROR ~ Unknown config attribute params.ngscheckmate_bed -- check config file: /workspace/sarek/nextflow.config

Ah, I think I need this: nf-core/modules#4308

nextflow.config Outdated Show resolved Hide resolved
@maxulysse
Copy link
Member

need something there: https://github.com/nf-core/sarek/blob/master/main.nf#L54

Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
conf/test.config Outdated Show resolved Hide resolved
Copy link
Contributor

@FriederikeHanssen FriederikeHanssen left a comment

Choose a reason for hiding this comment

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

looks really great, the only thing it is missing from is the full size tests, and the workflow overview images

SPPearce and others added 3 commits November 7, 2023 16:24
Co-authored-by: Friederike Hanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
@SPPearce
Copy link
Contributor Author

SPPearce commented Nov 7, 2023

looks really great, the only thing it is missing from is the full size tests, and the workflow overview images

Yes, what full size test should I put it into?

@maxulysse
Copy link
Member

looks really great, the only thing it is missing from is the full size tests, and the workflow overview images

Yes, what full size test should I put it into?

both

@SPPearce
Copy link
Contributor Author

SPPearce commented Nov 7, 2023

looks really great, the only thing it is missing from is the full size tests, and the workflow overview images

Yes, what full size test should I put it into?

both

Ok, to be more specific, where are the full size tests specified?

@FriederikeHanssen
Copy link
Contributor

the failing tests are due to changes in the sentieon structure. mergeing dev in should fix it

@FriederikeHanssen FriederikeHanssen merged commit 966919b into dev Nov 8, 2023
25 checks passed
@maxulysse maxulysse deleted the ngscheckmate branch January 17, 2024 09:12
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.

3 participants