Class GeneSearchServiceImpl
- java.lang.Object
-
- ubic.gemma.core.genome.gene.service.GeneSearchServiceImpl
-
- All Implemented Interfaces:
GeneSearchService
@Service public class GeneSearchServiceImpl extends Object implements GeneSearchService
Service for searching genes (and gene sets)- Author:
- tvrossum
-
-
Constructor Summary
Constructors Constructor Description GeneSearchServiceImpl()GeneSearchServiceImpl(SearchService searchService, gemma.gsec.SecurityService securityService, TaxonService taxonService, GeneSetSearch geneSetSearch, GeneSetService geneSetService, GeneService geneService, GeneOntologyService geneOntologyService, GeneSetValueObjectHelper geneSetValueObjectHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<GeneValueObject>getGenesByGOId(String goId, Long taxonId)get all genes in the given taxon that are annotated with the given go id, including its child terms in the hierarchyCollection<Gene>getGOGroupGenes(String goQuery, Taxon taxon)Collection<SearchResultDisplayObject>searchGenesAndGeneGroups(String query, Long taxonId)Collection<GeneValueObject>searchMultipleGenes(String query, Long taxonId)Search for multiple genes at once.Map<String,GeneValueObject>searchMultipleGenesGetMap(Collection<String> query, Long taxonId)Search for multiple genes at once.
-
-
-
Constructor Detail
-
GeneSearchServiceImpl
public GeneSearchServiceImpl()
-
GeneSearchServiceImpl
@Autowired public GeneSearchServiceImpl(SearchService searchService, gemma.gsec.SecurityService securityService, TaxonService taxonService, GeneSetSearch geneSetSearch, GeneSetService geneSetService, GeneService geneService, GeneOntologyService geneOntologyService, GeneSetValueObjectHelper geneSetValueObjectHelper)
-
-
Method Detail
-
getGenesByGOId
public Collection<GeneValueObject> getGenesByGOId(String goId, Long taxonId)
Description copied from interface:GeneSearchServiceget all genes in the given taxon that are annotated with the given go id, including its child terms in the hierarchy- Specified by:
getGenesByGOIdin interfaceGeneSearchService- Parameters:
goId- GO id that must be in the format "GO_#######"taxonId- must not be null and must correspond to a taxon- Returns:
- empty if goId was blank or taxonId didn't correspond to a taxon
-
getGOGroupGenes
public Collection<Gene> getGOGroupGenes(String goQuery, Taxon taxon) throws SearchException
- Specified by:
getGOGroupGenesin interfaceGeneSearchService- Throws:
SearchException
-
searchGenesAndGeneGroups
public Collection<SearchResultDisplayObject> searchGenesAndGeneGroups(String query, Long taxonId) throws SearchException
- Specified by:
searchGenesAndGeneGroupsin interfaceGeneSearchService- Throws:
SearchException
-
searchMultipleGenes
public Collection<GeneValueObject> searchMultipleGenes(String query, Long taxonId) throws IOException, SearchException
Description copied from interface:GeneSearchServiceSearch for multiple genes at once. This attempts to limit the number of genes per query to only one.- Specified by:
searchMultipleGenesin interfaceGeneSearchService- Parameters:
query- A list of gene names (symbols), one per line.taxonId- taxon id- Returns:
- collection of gene value objects
- Throws:
IOException- when there are IO problemsSearchException
-
searchMultipleGenesGetMap
public Map<String,GeneValueObject> searchMultipleGenesGetMap(Collection<String> query, Long taxonId) throws SearchException
Description copied from interface:GeneSearchServiceSearch for multiple genes at once. This attempts to limit the number of genes per query to only one.- Specified by:
searchMultipleGenesGetMapin interfaceGeneSearchService- Parameters:
query- gene names (symbols)taxonId- taxon id- Returns:
- query with match. Null values means nothing was found for that key (query)
- Throws:
SearchException
-
-