Class HomologeneServiceImpl
java.lang.Object
ubic.gemma.core.loader.genome.gene.ncbi.homology.HomologeneServiceImpl
- All Implemented Interfaces:
HomologeneService
Reads in the homologene list as specified in the Gemmea.properties file. Loads the list at startup and keeps a
mapping off.
You almost certainly want to call refresh()
before using this service. This is done automatically if you use
the HomologeneServiceFactory
to lazy-load this service.
- Author:
- kelsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHomologeneServiceImpl
(GeneService geneService, TaxonService taxonService, org.springframework.core.io.Resource homologeneFile) -
Method Summary
Modifier and TypeMethodDescriptiongetHomologue
(Gene gene, Taxon taxon) getHomologues
(Long ncbiId) getHomologues
(Gene gene) getHomologueValueObject
(Long geneId, String taxonCommonName) getNCBIGeneIdsInGroup
(long homologeneGroupId) Given an NCBI Homologene Group ID returns a list of all the NCBI Gene Ids in the given groupvoid
refresh()
Refresh homologene data.
-
Constructor Details
-
HomologeneServiceImpl
public HomologeneServiceImpl(GeneService geneService, TaxonService taxonService, org.springframework.core.io.Resource homologeneFile)
-
-
Method Details
-
getHomologue
- Specified by:
getHomologue
in interfaceHomologeneService
- Parameters:
gene
- genetaxon
- desired taxon to find homologue in- Returns:
- Finds the homologue of the given gene for the taxon specified, or null if there is no homologue
-
getHomologues
- Specified by:
getHomologues
in interfaceHomologeneService
- Parameters:
gene
- gene- Returns:
- Collection of genes found in Gemma that are homologous with the given gene. Empty if no homologues or gene lacks homologue information, or null if not ready.
-
getHomologues
- Specified by:
getHomologues
in interfaceHomologeneService
- Parameters:
ncbiId
- gene ncbi id- Returns:
- A collection of NCBI gene ids that are homologous with the given NCBI Gene Id
-
refresh
Description copied from interface:HomologeneService
Refresh homologene data.- Specified by:
refresh
in interfaceHomologeneService
- Throws:
IOException
-
getHomologueValueObject
- Specified by:
getHomologueValueObject
in interfaceHomologeneService
- Parameters:
geneId
- gene idtaxonCommonName
- desired taxon to find homologue in- Returns:
- Finds the homologue of the given gene for the taxon specified, or null if there is no homologue
-
getNCBIGeneIdsInGroup
Given an NCBI Homologene Group ID returns a list of all the NCBI Gene Ids in the given group- Specified by:
getNCBIGeneIdsInGroup
in interfaceHomologeneService
- Returns:
- Collection of NCBI Gene Ids, or null if not ready.
-