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
to lazy-load this service.invalid reference
HomologeneServiceFactory
- 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 groupvoidrefresh()Refresh homologene data.
-
Constructor Details
-
HomologeneServiceImpl
public HomologeneServiceImpl(GeneService geneService, TaxonService taxonService, org.springframework.core.io.Resource homologeneFile)
-
-
Method Details
-
getHomologue
- Specified by:
getHomologuein 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:
getHomologuesin 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:
getHomologuesin 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:HomologeneServiceRefresh homologene data.- Specified by:
refreshin interfaceHomologeneService- Throws:
IOException
-
getHomologueValueObject
- Specified by:
getHomologueValueObjectin 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:
getNCBIGeneIdsInGroupin interfaceHomologeneService- Returns:
- Collection of NCBI Gene Ids, or null if not ready.
-