Merge pull request #387 from lbergelson/lb_add_ungenotyped_case_countvariants
adding a check for the UNAVAILABLE case of GenotypeType in CountVariants
This commit is contained in:
commit
5d79a6cbe0
|
|
@ -48,8 +48,8 @@ package org.broadinstitute.sting.gatk.walkers.varianteval;
|
||||||
|
|
||||||
import org.broadinstitute.sting.WalkerTest;
|
import org.broadinstitute.sting.WalkerTest;
|
||||||
import org.broadinstitute.sting.utils.exceptions.UserException;
|
import org.broadinstitute.sting.utils.exceptions.UserException;
|
||||||
import org.testng.annotations.Test;
|
|
||||||
import org.testng.annotations.DataProvider;
|
import org.testng.annotations.DataProvider;
|
||||||
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
@ -376,6 +376,21 @@ public class VariantEvalIntegrationTest extends WalkerTest {
|
||||||
executeTestParallel("testEvalTrackWithoutGenotypes",spec);
|
executeTestParallel("testEvalTrackWithoutGenotypes",spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEvalTrackWithoutGenotypesWithSampleFields() {
|
||||||
|
WalkerTestSpec spec = new WalkerTestSpec(
|
||||||
|
buildCommandLine(
|
||||||
|
"-T VariantEval",
|
||||||
|
"-R " + b37KGReference,
|
||||||
|
"-eval " + variantEvalTestDataRoot + "noGenotypes.vcf",
|
||||||
|
"-o %s"
|
||||||
|
),
|
||||||
|
1,
|
||||||
|
Arrays.asList("")); //There is no md5 because we only care that this completes without an exception.
|
||||||
|
executeTest("testEvalTrackWithoutGenotypesWithSampleFields", spec);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMultipleEvalTracksWithoutGenotypes() {
|
public void testMultipleEvalTracksWithoutGenotypes() {
|
||||||
String extraArgs = "-T VariantEval -R " + b37KGReference +
|
String extraArgs = "-T VariantEval -R " + b37KGReference +
|
||||||
|
|
|
||||||
|
|
@ -197,6 +197,8 @@ public class CountVariants extends VariantEvaluator implements StandardEval {
|
||||||
break;
|
break;
|
||||||
case MIXED:
|
case MIXED:
|
||||||
break;
|
break;
|
||||||
|
case UNAVAILABLE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ReviewedStingException("BUG: Unexpected genotype type: " + g);
|
throw new ReviewedStingException("BUG: Unexpected genotype type: " + g);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue