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

fix getpileupsummary should not run if no germline resource is provided #1171

Merged
merged 11 commits into from
Aug 17, 2023

Conversation

FriederikeHanssen
Copy link
Contributor

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/sarek branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile 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).

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit aaa1f63

+| ✅ 151 tests passed       |+
#| ❔   9 tests were ignored |#
!| ❗   2 tests had warnings |!

❗ Test warnings:

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.9
  • Run at 2023-08-16 08:48:25

@FriederikeHanssen
Copy link
Contributor Author

Don't merge yet, running manual test!

@FriederikeHanssen
Copy link
Contributor Author

FriederikeHanssen commented Aug 5, 2023

Results from manual run:

gitpod /workspace/sarek (germline_resource) $ PROFILE=docker pytest --tag mutect2_manual --symlink --keep-workflow-wd
================================================================================================================================ test session starts =================================================================================================================================
platform linux -- Python 3.10.12, pytest-7.4.0, pluggy-1.2.0
rootdir: /workspace/sarek
plugins: workflow-2.0.1
collecting ... 
collected 132 items                                                                                                                                                                                                                                                                  

Run variant calling on somatic sample with mutect2 without intervals:
        command:   nextflow run main.nf -profile test_cache,tools_somatic --tools mutect2 --no_intervals --outdir results
        directory: /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2_without_intervals
        stdout:    /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2_without_intervals/log.out
        stderr:    /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2_without_intervals/log.err
'Run variant calling on somatic sample with mutect2 without intervals' done.

Run variant calling on somatic sample with mutect2:
        command:   nextflow run main.nf -profile test_cache,tools_somatic --tools mutect2 --outdir results
        directory: /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2
        stdout:    /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2/log.out
        stderr:    /tmp/pytest_workflow_ltedllvb/Run_variant_calling_on_somatic_sample_with_mutect2/log.err
'Run variant calling on somatic sample with mutect2' done.

Run joint calling on tumor only samples with mutect2:
        command:   nextflow run main.nf -profile test_cache,tools_tumoronly --input tests/csv/3.0/recalibrated_tumoronly_joint.csv --tools mutect2 --joint_mutect2 --outdir results
        directory: /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_tumor_only_samples_with_mutect2
        stdout:    /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_tumor_only_samples_with_mutect2/log.out
        stderr:    /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_tumor_only_samples_with_mutect2/log.err
'Run joint calling on tumor only samples with mutect2' done.

Run joint calling on somatic samples with mutect2:
        command:   nextflow run main.nf -profile test_cache,tools_somatic --input tests/csv/3.0/recalibrated_somatic_joint.csv --tools mutect2 --joint_mutect2 --outdir results
        directory: /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_somatic_samples_with_mutect2
        stdout:    /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_somatic_samples_with_mutect2/log.out
        stderr:    /tmp/pytest_workflow_ltedllvb/Run_joint_calling_on_somatic_samples_with_mutect2/log.err
'Run joint calling on somatic samples with mutect2' done.

tests/test_tools_manually.yml ....................................................................................................................................                                                                                                             [100%] Keeping temporary directories and logs. Use '--kwd' or '--keep-workflow-wd' to disable this behaviour.


================================================================================================================================== warnings summary ==================================================================================================================================
../../opt/conda/lib/python3.10/site-packages/pytest_workflow/plugin.py:397
  /opt/conda/lib/python3.10/site-packages/pytest_workflow/plugin.py:397: UserWarning: .git dir detected: /workspace/sarek/.git. pytest-workflow will copy the entire .git directory and all files ignored by git. It is recommended to use the --git-aware option.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================================================================== 132 passed, 1 warning in 5738.45s (1:35:38) =====================================================================================================================

workflows/sarek.nf Outdated Show resolved Hide resolved
@FriederikeHanssen
Copy link
Contributor Author

Still waiting for an answer from Thomas. All my tests on real data with his parameters work as intended though

FriederikeHanssen and others added 2 commits August 16, 2023 10:39
Co-authored-by: Maxime U Garcia <maxime.garcia@scilifelab.se>
@FriederikeHanssen FriederikeHanssen merged commit 66af584 into nf-core:dev Aug 17, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants