use of org.broadinstitute.hellbender.engine.FeatureManager in project gatk by broadinstitute.
the class VariantOverlapAnnotatorUnitTest method testRsIDFeatureContextWithNoDBSnP.
@Test(dataProvider = "AnnotateRsIDData")
public void testRsIDFeatureContextWithNoDBSnP(final VariantContext toAnnotate, final List<VariantContext> dbSNPRecords, final String expectedID, final boolean expectOverlap) throws Exception {
final File file = new File(publicTestDir + "Homo_sapiens_assembly19.dbsnp135.chr1_1M.exome_intervals.vcf");
final FeatureContext ctx = new FeatureContext(new FeatureManager(new ArtificialFeatureContainingCommandLineProgram_ForVariantOverlap(file)), new SimpleInterval(toAnnotate));
final VariantOverlapAnnotator annotator = makeAnnotator(file, null, "binding");
final VariantContext annotated = annotator.annotateRsID(ctx, toAnnotate);
Assert.assertNotNull(annotated);
//nothing at given position
Assert.assertEquals(annotated, toAnnotate);
}
use of org.broadinstitute.hellbender.engine.FeatureManager in project gatk by broadinstitute.
the class VariantOverlapAnnotatorUnitTest method testRsIDFeatureContext.
@Test(dataProvider = "AnnotateRsIDData")
public void testRsIDFeatureContext(final VariantContext toAnnotate, final List<VariantContext> dbSNPRecords, final String expectedID, final boolean expectOverlap) throws Exception {
final File file = new File(publicTestDir + "Homo_sapiens_assembly19.dbsnp135.chr1_1M.exome_intervals.vcf");
final FeatureContext ctx = new FeatureContext(new FeatureManager(new ArtificialFeatureContainingCommandLineProgram_ForVariantOverlap(file)), new SimpleInterval(toAnnotate));
final VariantOverlapAnnotator annotator = makeAnnotator(file, "dbsnp");
final VariantContext annotated = annotator.annotateRsID(ctx, toAnnotate);
Assert.assertNotNull(annotated);
//nothing at given position
Assert.assertEquals(annotated, toAnnotate);
}
use of org.broadinstitute.hellbender.engine.FeatureManager in project gatk by broadinstitute.
the class VariantOverlapAnnotatorUnitTest method testAnnotateOverlapsFeatureContext.
@Test(dataProvider = "AnnotateRsIDData")
public void testAnnotateOverlapsFeatureContext(final VariantContext toAnnotate, final List<VariantContext> records, final String expectedID, final boolean expectOverlap) throws Exception {
final File file = new File(publicTestDir + "Homo_sapiens_assembly19.dbsnp135.chr1_1M.exome_intervals.vcf");
final FeatureContext ctx = new FeatureContext(new FeatureManager(new ArtificialFeatureContainingCommandLineProgram_ForVariantOverlap(file)), new SimpleInterval(toAnnotate));
final VariantOverlapAnnotator annotator = makeAnnotator(file, "dbsnp");
final VariantContext annotated = annotator.annotateOverlaps(ctx, toAnnotate);
//nothing at given position
Assert.assertEquals(annotated, toAnnotate);
}
use of org.broadinstitute.hellbender.engine.FeatureManager in project gatk by broadinstitute.
the class VariantOverlapAnnotatorUnitTest method testRsIDFeatureContextWith2Sets.
@Test(dataProvider = "AnnotateRsIDData")
public void testRsIDFeatureContextWith2Sets(final VariantContext toAnnotate, final List<VariantContext> dbSNPRecords, final String expectedID, final boolean expectOverlap) throws Exception {
final File file = new File(publicTestDir + "Homo_sapiens_assembly19.dbsnp135.chr1_1M.exome_intervals.vcf");
final FeatureContext ctx = new FeatureContext(new FeatureManager(new ArtificialFeatureContainingCommandLineProgram_ForVariantOverlap(file)), new SimpleInterval(toAnnotate));
final VariantOverlapAnnotator annotator = makeAnnotator(file, "dbsnp", "binding");
final VariantContext annotated = annotator.annotateRsID(ctx, toAnnotate);
Assert.assertNotNull(annotated);
//nothing at given position
Assert.assertEquals(annotated, toAnnotate);
}
use of org.broadinstitute.hellbender.engine.FeatureManager in project gatk by broadinstitute.
the class VariantOverlapAnnotatorUnitTest method testAnnotateOverlapsFeatureContextWith2Sets.
@Test(dataProvider = "AnnotateRsIDData")
public void testAnnotateOverlapsFeatureContextWith2Sets(final VariantContext toAnnotate, final List<VariantContext> records, final String expectedID, final boolean expectOverlap) throws Exception {
final File file = new File(publicTestDir + "Homo_sapiens_assembly19.dbsnp135.chr1_1M.exome_intervals.vcf");
final FeatureContext ctx = new FeatureContext(new FeatureManager(new ArtificialFeatureContainingCommandLineProgram_ForVariantOverlap(file)), new SimpleInterval(toAnnotate));
final VariantOverlapAnnotator annotator = makeAnnotator(file, "dbsnp", "binding");
final VariantContext annotated = annotator.annotateOverlaps(ctx, toAnnotate);
//nothing at given position
Assert.assertEquals(annotated, toAnnotate);
}
Aggregations