PANTHERTree { public Set<String> associatedIdentifierSet(){ return annotationSet; } PANTHERTree(File pFile); void addAssociatedGeneProduct(String bid, String blabel); List<String> getAssociatedGeneProductIDs(); List<String> getAssociatedGeneProductLabels(); String getAssociatedGeneProductJSONMap(); String getNHXString(); String getTreeLabel(); String getTreeID(); String getPANTHERID(); OWLShuntGraph getOWLShuntGraph(); Set<String> getAncestors(String nodeID); Set<String> getDescendants(String nodeID); Set<String> getAncestorAnnotations(String baseGpID); Set<String> getDescendantAnnotations(String baseGpID); Set<String> associatedIdentifierSet();  }
@Test public void testTreeloading() throws IOException{ File pFile = getResource("PTHR10000.arbre"); PANTHERTree ptree = new PANTHERTree(pFile); Set<String> aSet = ptree.associatedIdentifierSet(); assertTrue("Contains A", aSet.contains("TAIR:At1g18640")); assertTrue("Contains B", aSet.contains("ENTREZ:3405244")); assertTrue("Contains C", aSet.contains("UniProtKB:Q4Q8D0")); assertTrue("Contains D", aSet.contains("NCBI:XP_001671160")); assertTrue("Contains E", aSet.contains("ZFIN:ZDB-GENE-050809-127")); assertTrue("Contains F", aSet.contains("ENSEMBL:AGAP012247")); assertFalse("Does not contain A", aSet.contains("TAIR:locus:2033535")); assertFalse("Does not contain B", aSet.contains("TAIR=locus=2043535")); assertFalse("Does not contain C", aSet.contains("ZFIN=ZDB-GENE-050809-127")); assertFalse("Does not contain D", aSet.contains("")); assertFalse("Does not contain E", aSet.contains("AN7")); assertFalse("Does not contain F", aSet.contains(":")); assertFalse("Does not contain G", aSet.contains("GO:0022008")); }