use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testRepeatedLineSelectionAndExludeFiltered.
@Test
public void testRepeatedLineSelectionAndExludeFiltered() throws IOException {
final String testFile = getToolTestDataDir() + "test.dup.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -sn A -sn B -sn C -ef ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_RepeatedLineSelection.vcf"));
spec.executeTest("testRepeatedLineSelection--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testSampleInclusionWithNonexistingSamples.
/**
* Test including samples that are not in the VCF
*/
@Test
public void testSampleInclusionWithNonexistingSamples() throws IOException {
final String testFile = getToolTestDataDir() + "vcfexample2.vcf";
final String samplesFile = getToolTestDataDir() + "samples.list";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -sn A -sn Z -sn Q -sn " + samplesFile, testFile), 1, UserException.BadInput.class);
spec.executeTest("testSampleInclusionWithNonexistingSamples--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testSACNonDiploid.
@Test
public void testSACNonDiploid() throws IOException {
final String testFile = getToolTestDataDir() + "tetraploid-multisample-sac.g.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -sn NA12891 -trimAlternates", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_SACNonDiploid.vcf"));
spec.executeTest("testSACNonDiploid" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testMinFilteredGenotypesSelection.
@Test
public void testMinFilteredGenotypesSelection() throws IOException {
final String testFile = getToolTestDataDir() + "filteredSamples.vcf";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" --minFilteredGenotypes 2 ", testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_MinFilteredGenotypesSelection.vcf"));
spec.executeTest("testMinFilteredGenotypesSelection--" + testFile, this);
}
use of org.broadinstitute.hellbender.utils.test.IntegrationTestSpec in project gatk by broadinstitute.
the class SelectVariantsIntegrationTest method testExcludeSelectionIDFromFile.
/**
* Test excluding variants with rsIDs from a file
*/
@Test
public void testExcludeSelectionIDFromFile() throws IOException {
final String testFile = getToolTestDataDir() + "complexExample1.vcf";
final String idFile = getToolTestDataDir() + "complexExample1.vcf.id.list";
final IntegrationTestSpec spec = new IntegrationTestSpec(baseTestString(" -xlIDs " + idFile, testFile), Collections.singletonList(getToolTestDataDir() + "expected/" + "testSelectVariants_ExcludeSelectionID.vcf"));
spec.executeTest("testExcludeSelectionIDFile--" + testFile, this);
}
Aggregations