Interface Gene2GOAssociationService
- All Superinterfaces:
BaseImmutableService<Gene2GOAssociation>
,BaseReadOnlyService<Gene2GOAssociation>
- All Known Implementing Classes:
Gene2GOAssociationServiceImpl
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Gene2GOAssociation gene2GOAssociation) Creates the given entity in the persistent storage.findAssociationByGene
(Gene gene) findAssociationByGenes
(Collection<Gene> genes) findByGene
(Gene gene) findByGenes
(Collection<Gene> genes) findByGOTermUris
(Collection<String> uris, Taxon taxon) Find all the genes that match any of the terms.Find all genes associated with a given set of GO terms, grouped by taxon.findOrCreate
(Gene2GOAssociation gene2GOAssociation) Does a search for the entity in the persistent storage, and if not found, creates it.int
Remove all Gene2GO associations in batch.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
-
Method Details
-
findOrCreate
Description copied from interface:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in interfaceBaseImmutableService<Gene2GOAssociation>
- Parameters:
gene2GOAssociation
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in interfaceBaseImmutableService<Gene2GOAssociation>
- Parameters:
gene2GOAssociation
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
findAssociationByGene
-
findAssociationByGenes
-
findByGene
-
findByGenes
-
findByGOTermUris
Find all the genes that match any of the terms.Used to fetch genes associated with a term + children.
-
findByGOTermUrisPerTaxon
Find all genes associated with a given set of GO terms, grouped by taxon. -
removeAll
@Secured("GROUP_ADMIN") int removeAll()Remove all Gene2GO associations in batch.
-