public interface GeneOntologyService
extends ubic.basecode.ontology.providers.OntologyService
Modifier and Type | Field and Description |
---|---|
static String |
BASE_GO_URI |
Modifier and Type | Method and Description |
---|---|
Map<Long,Collection<ubic.basecode.ontology.model.OntologyTerm>> |
calculateGoTermOverlap(Gene queryGene,
Collection<Long> geneIds)
Given a query Gene, and a collection of gene ids calculates the go term overlap for each pair of queryGene and
gene in the given collection.
|
Collection<ubic.basecode.ontology.model.OntologyTerm> |
calculateGoTermOverlap(Gene queryGene1,
Gene queryGene2) |
Map<Long,Collection<ubic.basecode.ontology.model.OntologyTerm>> |
calculateGoTermOverlap(Long queryGene,
Collection<Long> geneIds) |
void |
clearCaches()
Primarily here for testing, to recover memory.
|
Collection<ubic.basecode.ontology.model.OntologyTerm> |
computeOverlap(Collection<ubic.basecode.ontology.model.OntologyTerm> masterOntos,
Collection<ubic.basecode.ontology.model.OntologyTerm> comparisonOntos) |
Collection<ubic.basecode.ontology.model.OntologyTerm> |
findTerm(String queryString)
Search by inexact string
|
Set<ubic.basecode.ontology.model.OntologyTerm> |
getAllParents(Collection<ubic.basecode.ontology.model.OntologyTerm> entries) |
Set<ubic.basecode.ontology.model.OntologyTerm> |
getAllParents(Collection<ubic.basecode.ontology.model.OntologyTerm> entries,
boolean includePartOf) |
Collection<Gene> |
getGenes(String goId,
Taxon taxon) |
Collection<ubic.basecode.ontology.model.OntologyTerm> |
getGOTerms(Gene gene) |
Collection<ubic.basecode.ontology.model.OntologyTerm> |
getGOTerms(Gene gene,
boolean includePartOf,
GeneOntologyServiceImpl.GOAspect goAspect)
Get all GO terms for a gene, including parents of terms via is-a relationships; and optionally also parents via
part-of relationships.
|
ubic.basecode.ontology.model.OntologyTerm |
getTerm(String uri) |
GeneOntologyServiceImpl.GOAspect |
getTermAspect(Characteristic goId) |
GeneOntologyServiceImpl.GOAspect |
getTermAspect(String goId) |
String |
getTermDefinition(String goId)
Return a definition for a GO Id.
|
ubic.basecode.ontology.model.OntologyTerm |
getTermForId(String value) |
String |
getTermName(String goId)
Return human-readable term ("protein kinase") for a GO Id.
|
GeneOntologyTermValueObject |
getValueObject(ubic.basecode.ontology.model.OntologyTerm term)
Converts the given Ontology Term to a Gene Ontology Value Object.
|
Collection<GeneOntologyTermValueObject> |
getValueObjects(Collection<ubic.basecode.ontology.model.OntologyTerm> terms)
Converts the given collection of Ontology Terms to Gene Ontology Value Objects.
|
List<GeneOntologyTermValueObject> |
getValueObjects(Gene gene)
Returns GO Terms VOs for the given Gene.
|
boolean |
isBiologicalProcess(ubic.basecode.ontology.model.OntologyTerm term) |
cancelInitializationThread, findIndividuals, findIndividuals, findResources, findResources, findTerm, findUsingAlternativeId, getAllURIs, getChildren, getChildren, getParents, getParents, getResource, getTermIndividuals, index, initialize, initialize, isEnabled, isInitializationThreadAlive, isInitializationThreadCancelled, isOntologyLoaded, loadTermsInNameSpace, startInitializationThread, waitForInitializationThread
static final String BASE_GO_URI
Map<Long,Collection<ubic.basecode.ontology.model.OntologyTerm>> calculateGoTermOverlap(Gene queryGene, Collection<Long> geneIds)
Given a query Gene, and a collection of gene ids calculates the go term overlap for each pair of queryGene and gene in the given collection. Returns a Map<Gene,Collection<OntologyEntries>>. The key is the gene (from the [queryGene,gene] pair) and the values are a collection of the overlapping ontology entries.
queryGene
- query genegeneIds
- gene idsCollection<ubic.basecode.ontology.model.OntologyTerm> calculateGoTermOverlap(Gene queryGene1, Gene queryGene2)
queryGene1
- query gene 1queryGene2
- query gene 2Map<Long,Collection<ubic.basecode.ontology.model.OntologyTerm>> calculateGoTermOverlap(Long queryGene, Collection<Long> geneIds)
Collection<ubic.basecode.ontology.model.OntologyTerm> computeOverlap(Collection<ubic.basecode.ontology.model.OntologyTerm> masterOntos, Collection<ubic.basecode.ontology.model.OntologyTerm> comparisonOntos)
Collection<ubic.basecode.ontology.model.OntologyTerm> findTerm(String queryString) throws ubic.basecode.ontology.search.OntologySearchException
findTerm
in interface ubic.basecode.ontology.providers.OntologyService
queryString
- query stringubic.basecode.ontology.search.OntologySearchException
Set<ubic.basecode.ontology.model.OntologyTerm> getAllParents(Collection<ubic.basecode.ontology.model.OntologyTerm> entries)
entries
- NOTE terms that are in this collection are NOT explicitly included; however, some of them may be
included incidentally if they are parents of other terms in the collection.Set<ubic.basecode.ontology.model.OntologyTerm> getAllParents(Collection<ubic.basecode.ontology.model.OntologyTerm> entries, boolean includePartOf)
@Nullable Collection<Gene> getGenes(String goId, Taxon taxon)
taxon
- taxongoId
- go idCollection<ubic.basecode.ontology.model.OntologyTerm> getGOTerms(Gene gene)
gene
- Take a gene and return a set of all GO terms including the parents of each GO termCollection<ubic.basecode.ontology.model.OntologyTerm> getGOTerms(Gene gene, boolean includePartOf, @Nullable GeneOntologyServiceImpl.GOAspect goAspect)
gene
- geneincludePartOf
- include part ofgoAspect
- limit only to the given aspect (pass null to use all)@Nullable ubic.basecode.ontology.model.OntologyTerm getTerm(String uri)
getTerm
in interface ubic.basecode.ontology.providers.OntologyService
uri
- of the term@Nullable GeneOntologyServiceImpl.GOAspect getTermAspect(Characteristic goId)
@Nullable GeneOntologyServiceImpl.GOAspect getTermAspect(String goId)
goId
- GO ID e.g. GO:0038128 (not URI)@Nullable String getTermDefinition(String goId)
goId
- e.g. GO:0094491@Nullable ubic.basecode.ontology.model.OntologyTerm getTermForId(String value)
value
- e.g. GO:0038128String getTermName(String goId)
goId
- go idGeneOntologyTermValueObject getValueObject(ubic.basecode.ontology.model.OntologyTerm term)
term
- the term to be converted.Collection<GeneOntologyTermValueObject> getValueObjects(Collection<ubic.basecode.ontology.model.OntologyTerm> terms)
terms
- the terms to be converted.List<GeneOntologyTermValueObject> getValueObjects(Gene gene)
gene
- the Gene to retrieve GO Terms for and convert them to VOs.boolean isBiologicalProcess(ubic.basecode.ontology.model.OntologyTerm term)
void clearCaches()
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.