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

Change default blocking and NON-REF LOD params for M2 GVCF mode #5615

Merged
merged 2 commits into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ public double getInitialLod() {
"(must be specified in increasing order)", optional = true)
public List<Double> GVCFGQBands = new ArrayList<>(70);
{
for (double i = -4.0; i <= 1; i = i + 0.5) {
for (double i = -2.5; i <= 1; i = i + 0.5) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you use GVCFGQBands = Arrays.asList(MathUtils.createEvenlySpacedPoints(-2.5, 1, 8))?

GVCFGQBands.add(i);
}
}

@Advanced
@Argument(fullName = "minimum-allele-fraction", shortName = "min-AF", doc = "Lower bound of variant allele fractions to consider when calculating variant LOD", optional = true)
public double minAF = 0.01;
public double minAF = 0.00;
}
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ public void testMitochondrialRefConf() throws Exception {
"-O", standardVcf.getAbsolutePath(),
"-ERC", "GVCF",
"-LODB", "-2.0",
"-LODB", "0.0");
"-LODB", "0.0",
"-min-AF", "0.01");
runCommandLine(args);

//check ref conf-specific headers are output
Expand Down Expand Up @@ -718,7 +719,7 @@ public void testMitochondrialRefConf() throws Exception {
"-ERC", "GVCF",
"-LODB", "-2.0",
"-LODB", "0.0",
"-min-AF", "0.0");
"-min-AF", "0.00");
runCommandLine(args3);
final Pair<VCFHeader, List<VariantContext>> result_noThreshold = VariantContextTestUtils.readEntireVCFIntoMemory(unthresholded.getAbsolutePath());

Expand Down