There's no reason to special case no-calls if they already have PLs associated with them. Just use the PLs!
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5136 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
f8609afd4e
commit
d406d9b3fc
|
|
@ -206,7 +206,7 @@ public class ProduceBeagleInputWalker extends RodWalker<Integer, Integer> {
|
||||||
/**
|
/**
|
||||||
* Use likelihoods if: is validation, prior is negative; or: is not validation, has genotype key
|
* Use likelihoods if: is validation, prior is negative; or: is not validation, has genotype key
|
||||||
*/
|
*/
|
||||||
if ( (isValidation && prior < 0.0) || genotype.isCalled() && genotype.hasLikelihoods()) {
|
if ( (isValidation && prior < 0.0) || genotype.hasLikelihoods() ) {
|
||||||
double[] likeArray = genotype.getLikelihoods().getAsVector();
|
double[] likeArray = genotype.getLikelihoods().getAsVector();
|
||||||
if( isMaleOnChrX ) {
|
if( isMaleOnChrX ) {
|
||||||
likeArray[1] = -255;
|
likeArray[1] = -255;
|
||||||
|
|
@ -228,7 +228,7 @@ public class ProduceBeagleInputWalker extends RodWalker<Integer, Integer> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (beagleGenotypesWriter != null) {
|
if ( beagleGenotypesWriter != null && genotype.isCalled() ) {
|
||||||
char a = genotype.getAllele(0).toString().charAt(0);
|
char a = genotype.getAllele(0).toString().charAt(0);
|
||||||
char b = genotype.getAllele(0).toString().charAt(0);
|
char b = genotype.getAllele(0).toString().charAt(0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ public class BeagleIntegrationTest extends WalkerTest {
|
||||||
WalkerTestSpec spec = new WalkerTestSpec(
|
WalkerTestSpec spec = new WalkerTestSpec(
|
||||||
"-T ProduceBeagleInput -R " + hg19Reference + " " +
|
"-T ProduceBeagleInput -R " + hg19Reference + " " +
|
||||||
"-B:variant,VCF " + beagleValidationDataLocation + "inttestbgl.input.vcf " +
|
"-B:variant,VCF " + beagleValidationDataLocation + "inttestbgl.input.vcf " +
|
||||||
"-o %s", 1, Arrays.asList("c0d30e5dbe903874f8422a0e63a5118e"));
|
"-o %s", 1, Arrays.asList("a01c704246f3dd1b9c65774007e51e69"));
|
||||||
executeTest("test BeagleInput", spec);
|
executeTest("test BeagleInput", spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue