Interface GeneService
- All Superinterfaces:
BaseImmutableService<Gene>,BaseReadOnlyService<Gene>,BaseService<Gene>,BaseVoEnabledService<Gene,,GeneValueObject> FilteringService<Gene>,FilteringVoEnabledService<Gene,GeneValueObject>
- All Known Implementing Classes:
GeneServiceImpl
@ParametersAreNonnullByDefault
public interface GeneService
extends BaseService<Gene>, FilteringVoEnabledService<Gene,GeneValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionCreates the given entity in the persistent storage.find(PhysicalLocation physicalLocation) Find all genes at a physical location.findByAccession(String accession, ExternalDatabase source) findByAlias(String search) findByEnsemblId(String exactString) Searches for a gene based on its ensembl ID.findByNCBIId(Integer accession) findByNcbiIds(Collection<Integer> ncbiIds) Quickly load exact matches.findByNCBIIdValueObject(Integer accession) findByOfficialName(String officialName) findByOfficialNameInexact(String officialName) findByOfficialSymbol(String officialSymbol) findByOfficialSymbol(String symbol, Taxon taxon) findByOfficialSymbolInexact(String officialSymbol) findByOfficialSymbols(Collection<String> query, Long taxonId) Quickly load exact matches.findGOTerms(Long geneId) longgetCompositeSequenceCount(Gene gene, boolean includeDummyProducts) longgetCompositeSequenceCountById(Long id, boolean includeDummyProducts) getCompositeSequences(Gene gene, boolean includeDummyProducts) getCompositeSequences(Gene gene, ArrayDesign arrayDesign, boolean includeDummyProducts) getCompositeSequencesById(Long geneId, boolean includeDummyProducts) getProducts(Long geneId) Returns a detailVO for a geneDd This method may be unnecessary now that we have put all the logic into the GeneServiceloadMicroRNAs(Taxon taxon) loadThawed(Collection<Long> ids) Load with objects already thawed.loadThawedLiter(Collection<Long> ids) voidRemoves the given entity from the persistent storage.intsearchGenes(String query, Long taxonId) thawAliases(Gene gene) thawLite(Collection<Gene> genes) Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, findOrCreate, remove, removeMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Method Details
-
create
Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<Gene>- Parameters:
gene- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<Gene>- Parameters:
gene- the entity to be removed.
-
find
Find all genes at a physical location. All overlapping genes are returned. The location can be a point or a region. If strand is non-null, only genes on the same strand are returned.- Parameters:
physicalLocation- physical location of gene- Returns:
- all genes at given location
-
findByAccession
-
findByAlias
-
findByEnsemblId
Searches for a gene based on its ensembl ID. There is a small amount of genes in our database that have duplicate ensembl IDs. These genes are believed to be somehow unusable anyway, so we ignore those cases at the moment - Aug. 11th 2017.- Parameters:
exactString- the ensembl ID that the gene will be looked up by.- Returns:
- a Gene with the given Ensembl ID.
-
findByNCBIId
-
findByNCBIIdValueObject
-
findByNcbiIds
Quickly load exact matches.- Parameters:
ncbiIds- ncbi IDs- Returns:
- map of NCBI Id to the gene.
-
findByOfficialName
-
findByOfficialNameInexact
-
findByOfficialSymbol
-
findByOfficialSymbol
-
findByOfficialSymbolInexact
-
findByOfficialSymbols
Quickly load exact matches.- Parameters:
query- querytaxonId- taxon id- Returns:
- map of lower-cased gene symbol to the gene. The actual query that led to the gene is not retained.
-
findGOTerms
-
getCompositeSequenceCount
- See Also:
-
getCompositeSequenceCountById
- See Also:
-
getCompositeSequences
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> getCompositeSequences(Gene gene, ArrayDesign arrayDesign, boolean includeDummyProducts) - See Also:
-
getCompositeSequences
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> getCompositeSequences(Gene gene, boolean includeDummyProducts) - See Also:
-
getCompositeSequencesById
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> getCompositeSequencesById(Long geneId, boolean includeDummyProducts) - See Also:
-
getPhysicalLocationsValueObjects
-
getProducts
- Parameters:
geneId- gene id- Returns:
- empty collection if no products
-
loadAll
- Parameters:
taxon- taxon- Returns:
- a collection of genes for the specified taxon
-
loadFullyPopulatedValueObject
Returns a detailVO for a geneDd This method may be unnecessary now that we have put all the logic into the GeneService- Parameters:
id- The gene id- Returns:
- GeneDetailsValueObject a representation of that gene
-
loadMicroRNAs
- Parameters:
taxon- taxon- Returns:
- all the microRNAs for a given taxon. Note query could be slow or inexact due to use of wild card searching of the genes description
-
loadThawed
Load with objects already thawed.- Parameters:
ids- ids- Returns:
- pre-thawed genes
-
loadThawedLiter
-
loadValueObjectsByIdsLiter
-
thaw
-
thawAliases
- Parameters:
gene- gene- Returns:
- thaw the Aliases, very light version
-
thawLite
-
thawLite
-
thawLiter
-
searchGenes
Collection<GeneValueObject> searchGenes(String query, @Nullable Long taxonId) throws SearchException - Throws:
SearchException
-
removeAll
@Secured("GROUP_ADMIN") int removeAll()
-