Merge pull request #1557 from broadinstitute/rhl_ggvcfs_input_prior_1532
Total ploidy does not have to equal to the number of priors
This commit is contained in:
commit
b9a43cc35e
|
|
@ -86,8 +86,6 @@ public class CustomAFPriorProvider extends AFPriorProvider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected double[] buildPriors(final int totalPloidy) {
|
protected double[] buildPriors(final int totalPloidy) {
|
||||||
if (totalPloidy != priors.length - 1)
|
|
||||||
throw new IllegalStateException("requesting an invalid prior total ploidy " + totalPloidy + " != " + (priors.length - 1));
|
|
||||||
return priors;
|
return priors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -700,4 +700,14 @@ public class GenotypeGVCFsIntegrationTest extends WalkerTest {
|
||||||
spec.disableShadowBCF();
|
spec.disableShadowBCF();
|
||||||
executeTest("testHomRefHighMQ", spec);
|
executeTest("testHomRefHighMQ", spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testInputPrior() {
|
||||||
|
final WalkerTestSpec spec = new WalkerTestSpec(
|
||||||
|
baseTestString(" -V " + privateTestDir + "gvcfExample1.vcf -V " + privateTestDir + "gvcfExample2.vcf " +
|
||||||
|
"-L 1:69485-69791 -inputPrior 0.2 -inputPrior 0.2 -inputPrior 0.2 -inputPrior 0.2", b37KGReference),
|
||||||
|
Collections.singletonList("860d133262160bbc75ce5849e5fa491f"));
|
||||||
|
spec.disableShadowBCF();
|
||||||
|
executeTest("testInputPrior", spec);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue