use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testSampleExclusionFromFileAndSeparateSample.
/**
* Test excluding samples from file and sample name
*/
@Test
public void testSampleExclusionFromFileAndSeparateSample() throws IOException {
final String testFile = getToolTestDataDir() + "vcfexample2.vcf";
final String samplesFile = getToolTestDataDir() + "samples.list";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -xl_sn NA11894 -xl_sn " + samplesFile, testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_SampleExclusionFromFileAndSeparateSample.vcf"));
spec.executeTest("testSampleExclusionFromFileAndSeparateSample--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testKeepOriginalACAndENV.
@Test
public void testKeepOriginalACAndENV() throws IOException {
final String testFile = getToolTestDataDir() + "vcfexample.loseAlleleInSelection.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" --keepOriginalAC -sn NA12892 -env -trimAlternates ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_KeepOriginalACAndENV.vcf"));
spec.executeTest("testKeepOriginalACAndENV--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testHaploid.
@Test
public void testHaploid() throws IOException {
final String testFile = getToolTestDataDir() + "haploid-multisample.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -sn HG00610 -select 'DP > 7' -trimAlternates ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_Haploid.vcf"));
spec.executeTest("testHaploid--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testRemoveMLE.
@Test
public void testRemoveMLE() throws IOException {
final String testFile = getToolTestDataDir() + "vcfexample.withMLE.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -sn NA12892 ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_RemoveMLE.vcf"));
spec.executeTest("testRemoveMLE--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testMinIndelLengthSelection.
/**
* Test excluding indels that are smaller than the specified size
*/
@Test
public void testMinIndelLengthSelection() throws IOException {
final String testFile = getToolTestDataDir() + "complexExample1.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -selectType INDEL --minIndelSize 2 ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_MinIndelLengthSelection.vcf"));
spec.executeTest("testMinIndelLengthSelection--" + testFile, this);
}
Aggregations