Merged bug fix from Stable into Unstable
This commit is contained in:
commit
94dc447a70
|
|
@ -556,9 +556,9 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
|
||||||
if (vc == null)
|
if (vc == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// if we're not looking at specific samples then the absense of a compVC means discordance
|
// if we're not looking at specific samples then the absence of a compVC means discordance
|
||||||
if (NO_SAMPLES_SPECIFIED && (compVCs == null || compVCs.isEmpty()))
|
if (NO_SAMPLES_SPECIFIED)
|
||||||
return true;
|
return (compVCs == null || compVCs.isEmpty());
|
||||||
|
|
||||||
// check if we find it in the variant rod
|
// check if we find it in the variant rod
|
||||||
Map<String, Genotype> genotypes = vc.getGenotypes(samples);
|
Map<String, Genotype> genotypes = vc.getGenotypes(samples);
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,19 @@ public class SelectVariantsIntegrationTest extends WalkerTest {
|
||||||
executeTest("testDiscordance--" + testFile, spec);
|
executeTest("testDiscordance--" + testFile, spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testDiscordanceNoSampleSpecified() {
|
||||||
|
String testFile = validationDataLocation + "NA12878.hg19.example1.vcf";
|
||||||
|
|
||||||
|
WalkerTestSpec spec = new WalkerTestSpec(
|
||||||
|
"-T SelectVariants -R " + hg19Reference + " -L 20:1012700-1020000 --variant " + b37hapmapGenotypes + " -disc " + testFile + " -o %s -NO_HEADER",
|
||||||
|
1,
|
||||||
|
Arrays.asList("5d7d899c0c4954ec59104aebfe4addd5")
|
||||||
|
);
|
||||||
|
|
||||||
|
executeTest("testDiscordanceNoSampleSpecified--" + testFile, spec);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testConcordance() {
|
public void testConcordance() {
|
||||||
String testFile = validationDataLocation + "NA12878.hg19.example1.vcf";
|
String testFile = validationDataLocation + "NA12878.hg19.example1.vcf";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue