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

Exposed maximum copy ratio and point size for CNV plotting tools. #6482

Merged
merged 1 commit into from Apr 23, 2020

Conversation

samuelklee
Copy link
Contributor

@samuelklee samuelklee commented Mar 3, 2020

Closes #6391.
Closes #5748.

Note that the *.denoisedLimit4.png output has been removed from the PlotDenoisedCopyRatios tool and the corresponding WDL task. The default behavior has changed slightly, in that the remaining *.denoised.png output is now delimited to maximum copy ratio = 4.0 (instead of covering the entire range in the data). @fleharty @droazen we may want to mention this in the release notes.

@samuelklee samuelklee force-pushed the sl_cnv_plotting_ylim branch 2 times, most recently from fd64811 to 387e0a7 Compare March 3, 2020 20:00
@samuelklee
Copy link
Contributor Author

@bhanugandham Comms may be interested in increasing the point-size-allele-fraction parameter in PlotModeledSegments for the somatic CNV tutorial, since the allele-fraction data used there is rather sparse and hard to see with the default value.

@samuelklee samuelklee requested a review from fleharty March 3, 2020 20:04
@samuelklee
Copy link
Contributor Author

@fleharty mind reviewing? This is pretty boilerplate, but it's possible that I've erred in my copy-paste-editing somewhere...

@samuelklee
Copy link
Contributor Author

Rebased to incorporate WDL 1.0 changes from #6502. @fleharty let's get this in for the 4.1.6.1 release?

Copy link
Contributor

@fleharty fleharty 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, my only question is whether or not you should use "--" or "-" in the StandardArgumentDefinitions.

@Test(expectedExceptions = IllegalArgumentException.class)
public void testMinimumContigLength() {
final File outputDir = createTempDir("testDir");
final String[] arguments = {
"--" + CopyNumberStandardArgument.STANDARDIZED_COPY_RATIOS_FILE_LONG_NAME, STANDARDIZED_COPY_RATIOS_FILE.getAbsolutePath(),
"--" + CopyNumberStandardArgument.DENOISED_COPY_RATIOS_FILE_LONG_NAME, DENOISED_COPY_RATIOS_FILE.getAbsolutePath(),
"-" + StandardArgumentDefinitions.SEQUENCE_DICTIONARY_NAME, SEQUENCE_DICTIONARY_WITH_NO_CONTIGS_ABOVE_MINIMUM_LENGTH_FILE.getAbsolutePath(),
"--" + StandardArgumentDefinitions.SEQUENCE_DICTIONARY_NAME, SEQUENCE_DICTIONARY_WITH_NO_CONTIGS_ABOVE_MINIMUM_LENGTH_FILE.getAbsolutePath(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this StandardArgumentDefinitions us "--" but the next one for OUTPUT_SHORT_NAME uses only "-".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Short names use -, long names use --. It just happens that the short and long names for sequence dictionary are the same for the CNV plotting tools, but this line of code would've broken if that was ever changed.

@@ -81,7 +99,7 @@ public void testNonExistentStandardizedFile() {
final String[] arguments = {
"--" + CopyNumberStandardArgument.STANDARDIZED_COPY_RATIOS_FILE_LONG_NAME, "Non-existent-file",
"--" + CopyNumberStandardArgument.DENOISED_COPY_RATIOS_FILE_LONG_NAME, DENOISED_COPY_RATIOS_FILE.getAbsolutePath(),
"-" + StandardArgumentDefinitions.SEQUENCE_DICTIONARY_NAME, SEQUENCE_DICTIONARY_FILE.getAbsolutePath(),
"--" + StandardArgumentDefinitions.SEQUENCE_DICTIONARY_NAME, SEQUENCE_DICTIONARY_FILE.getAbsolutePath(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do StandardArgumentDefinitions use "-" or "--"?

@samuelklee samuelklee merged commit 78a9ecd into master Apr 23, 2020
@samuelklee samuelklee deleted the sl_cnv_plotting_ylim branch April 23, 2020 14: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.

Add denoised copy ratio ylim option to PlotModeledSegments Expose point size in somatic CNV plotting tools.
2 participants