use of org.molgenis.data.Entity in project molgenis by molgenis.
the class CaddAnnotatorTest method testFourOccurences.
@Test
public void testFourOccurences() {
Iterator<Entity> results = annotator.annotate(input3);
Entity resultEntity = results.next();
assertEquals(resultEntity.get(CaddAnnotator.CADD_ABS), "0.5");
assertEquals(resultEntity.get(CaddAnnotator.CADD_SCALED), "14.5");
}
use of org.molgenis.data.Entity in project molgenis by molgenis.
the class CaddAnnotatorTest method testEightSingleAllelicIns.
@Test
public void testEightSingleAllelicIns() {
Iterator<Entity> results = annotator.annotate(input7);
Entity resultEntity = results.next();
assertEquals(resultEntity.get(CaddAnnotator.CADD_ABS), "1.5");
assertEquals(resultEntity.get(CaddAnnotator.CADD_SCALED), "15.5");
}
use of org.molgenis.data.Entity in project molgenis by molgenis.
the class CaddAnnotatorTest method testSixMultiAllelicDel.
@Test
public void testSixMultiAllelicDel() {
Iterator<Entity> results = annotator.annotate(input5);
Entity resultEntity = results.next();
assertEquals(resultEntity.get(CaddAnnotator.CADD_ABS), "-3.4,1.2");
assertEquals(resultEntity.get(CaddAnnotator.CADD_SCALED), "1.123,24.1");
}
use of org.molgenis.data.Entity in project molgenis by molgenis.
the class CaddAnnotatorTest method testTwoOccurencesNoMatch.
@Test
public void testTwoOccurencesNoMatch() {
Iterator<Entity> results = annotator.annotate(input2);
Entity resultEntity = results.next();
assertEquals(resultEntity.get(CaddAnnotator.CADD_ABS), null);
assertEquals(resultEntity.get(CaddAnnotator.CADD_SCALED), null);
}
use of org.molgenis.data.Entity in project molgenis by molgenis.
the class CaddAnnotatorTest method testFiveMultiAllelic.
@Test
public void testFiveMultiAllelic() {
Iterator<Entity> results = annotator.annotate(input4);
Entity resultEntity = results.next();
assertEquals(resultEntity.get(CaddAnnotator.CADD_ABS), "-2.4,0.2,0.5");
assertEquals(resultEntity.get(CaddAnnotator.CADD_SCALED), "0.123,23.1,14.5");
}
Aggregations