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

Sfitz fix plot venn bug #232

Merged
merged 5 commits into from
Sep 28, 2023
Merged

Sfitz fix plot venn bug #232

merged 5 commits into from
Sep 28, 2023

Conversation

sorelfitzgibbon
Copy link
Contributor

Description

plot-venn.R was assuming 4 input algorithms. It's now fixed so it works with any number of algorithms greater than 2.

Testing Results

  • Tumor/Normal Paired Sample:
    • sample: A-mini
    • input YAML: /hot/code/sfitzgibbon/gitHub/uclahs-cds/pipeline-call-sSNV/test/yaml/a_mini_n2-std-input.yaml
    • config: /hot/code/sfitzgibbon/gitHub/uclahs-cds/pipeline-call-sSNV/test/config/a_mini-all-tools-except-muse.config
    • output: /hot/software/pipeline/pipeline-call-sSNV/Nextflow/development/unreleased/sfitz-fix-plotVenn-bug

Checklist

  • I have read the code review guidelines and the code review best practice on GitHub check-list.

  • I have reviewed the Nextflow pipeline standards.

  • The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].

  • I have set up or verified the branch protection rule following the github standards before opening this pull request.

  • I have added my name to the contributors listings in the manifest block in the nextflow.config as part of this pull request; I am listed already, or do not wish to be listed. (This acknowledgement is optional.)

  • I have added the changes included in this pull request to the CHANGELOG.md under the next release version or unreleased, and updated the date.

  • I have updated the version number in the metadata.yaml and manifest block of the nextflow.config file following semver, or the version number has already been updated. (Leave it unchecked if you are unsure about new version number and discuss it with the infrastructure team in this PR.)

  • I have tested the pipeline on at least one A-mini sample.

r-scripts/plot-venn.R Outdated Show resolved Hide resolved
r-scripts/plot-venn.R Show resolved Hide resolved
Copy link
Contributor

@maotian06 maotian06 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 to me! I added my adapted script for the plotting, some arguments might be useful?

MuSE = 'green',
Strelka2 = 'blue'
)

## Function: plot venn diagram #####################################################################
plot.venn <- function(tool.variants, outfile) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@sorelfitzgibbon
I have adapted your script for plotting and changed some settings of venn.diagram here: https://github.com/uclahs-cds/project-disease-HeadNeckTumor-ATHC-000072-WholeGenomeLandscape/blob/b1c5fe1d7244aeea37ca40bcb4b2b8bd948b3057/analysis_WGS/pipeline/recSNV/consensusVCF/plot.venn.diagram.R#L41

You can check if some of the arguments might be useful to you?

Copy link
Contributor

Choose a reason for hiding this comment

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

Worth looking into if any arguments can be used/added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maotian06 and I decided nothing needs to be added at this time

@sorelfitzgibbon
Copy link
Contributor Author

@yashpatel6 Testing was rerun after merging in main (including merged generic resources branch). Ready to go methinks.

Copy link
Contributor

@yashpatel6 yashpatel6 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!

MuSE = 'green',
Strelka2 = 'blue'
)

## Function: plot venn diagram #####################################################################
plot.venn <- function(tool.variants, outfile) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth looking into if any arguments can be used/added

@sorelfitzgibbon sorelfitzgibbon merged commit 28d15a7 into main Sep 28, 2023
1 check passed
@yashpatel6 yashpatel6 deleted the sfitz-fix-plotVenn-bug branch September 28, 2023 02:19
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