int end = 26848;
List<Feature> features = getGeneFeatures(filepath, chr, start, end);
assertEquals(2, features.size());
BasicFeature gene = null, tRNA = null;
for (Feature feat : features) {
if (((BasicFeature) feat).getType().equals("gene")) {
gene = (BasicFeature) feat;
} else if (((BasicFeature) feat).getType().equals("tRNA")) {
tRNA = (BasicFeature) feat;
}
}
assertEquals(gene.getIdentifier(), tRNA.getAttributes().get("Parent"));
assertEquals(1, tRNA.getExonCount());
Exon exon = tRNA.getExons().get(0);
assertEquals(tRNA.getIdentifier(), exon.getAttributes().get("Parent"));
assertWholeExonNonCoding(exon);