Package ubic.basecode.ontology.ncbo
Class AnnotatorClient
java.lang.Object
ubic.basecode.ontology.ncbo.AnnotatorClient
Use the NCBO annotator to find ontology terms matching strings.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
findLabelForIdentifier
(String ontologyId, String identifier) return the label associated with an conceptid.static Collection
<AnnotatorResponse> static String
-
Field Details
-
HP_ONTOLOGY
- See Also:
-
DOID_ONTOLOGY
- See Also:
-
-
Constructor Details
-
AnnotatorClient
public AnnotatorClient()
-
-
Method Details
-
findTerm
public static Collection<AnnotatorResponse> findTerm(String term) throws IOException, ParserConfigurationException, IllegalStateException, SAXException - Parameters:
term
-- Returns:
- Throws:
ParserConfigurationException
SAXException
IllegalStateException
Exception
IOException
-
findLabelForIdentifier
return the label associated with an conceptid. FIXME why are we doing things this way, it must be terribly slow- Parameters:
ontologyId
- what virtual ontology to useidentifier
- the identifier, knows about: OMIM, DOID, MESH- Returns:
- the label for that term, example : ABCD syndrome
-
removeSpecialCharacters
-