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- 
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableServicecreate, findOrCreate, remove, remove
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyServicecountAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseServicesave, save, update, update
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledServiceloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
 - 
Methods inherited from interface ubic.gemma.persistence.service.FilteringServicecount, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
 - 
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledServiceloadValueObjects, loadValueObjects
 
- 
 
- 
- 
- 
Method Detail- 
create@Secured("GROUP_ADMIN") Gene create(Gene gene)Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
- createin interface- BaseImmutableService<Gene>
- Parameters:
- gene- the entity to be created.
- Returns:
- object referencing the persistent instance of the given entity.
 
 - 
remove@Secured("GROUP_ADMIN") void remove(Gene gene)Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
- removein interface- BaseImmutableService<Gene>
- Parameters:
- gene- the entity to be removed.
 
 - 
findCollection<Gene> find(PhysicalLocation physicalLocation) 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
 
 - 
findByAccessionGene findByAccession(String accession, @Nullable ExternalDatabase source) 
 - 
findByAliasCollection<Gene> findByAlias(String search) 
 - 
findByEnsemblIdGene findByEnsemblId(String exactString) 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.
 
 - 
findByNCBIIdValueObjectGeneValueObject findByNCBIIdValueObject(Integer accession) 
 - 
findByNcbiIdsMap<Integer,GeneValueObject> findByNcbiIds(Collection<Integer> ncbiIds) Quickly load exact matches.- Parameters:
- ncbiIds- ncbi IDs
- Returns:
- map of NCBI Id to the gene.
 
 - 
findByOfficialNameCollection<Gene> findByOfficialName(String officialName) 
 - 
findByOfficialNameInexactCollection<Gene> findByOfficialNameInexact(String officialName) 
 - 
findByOfficialSymbolCollection<Gene> findByOfficialSymbol(String officialSymbol) 
 - 
findByOfficialSymbolInexactCollection<Gene> findByOfficialSymbolInexact(String officialSymbol) 
 - 
findByOfficialSymbolsMap<String,GeneValueObject> findByOfficialSymbols(Collection<String> query, Long taxonId) Quickly load exact matches.- Parameters:
- query- query
- taxonId- taxon id
- Returns:
- map of lower-cased gene symbol to the gene. The actual query that led to the gene is not retained.
 
 - 
findGOTermsCollection<AnnotationValueObject> findGOTerms(Long geneId) 
 - 
getCompositeSequenceCountByIdlong getCompositeSequenceCountById(Long id) 
 - 
getCompositeSequences@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_ARRAYDESIGN_COLLECTION_READ"}) Collection<CompositeSequence> getCompositeSequences(Gene gene, ArrayDesign arrayDesign)Returns a list of compositeSequences associated with the given gene and array design- Parameters:
- gene- gene
- arrayDesign- platform
- Returns:
- composite sequences
 
 - 
getCompositeSequencesById@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_ARRAYDESIGN_COLLECTION_READ"}) Collection<CompositeSequence> getCompositeSequencesById(Long id)- Parameters:
- id- Gemma gene id
- Returns:
- Return probes for a given gene id.
 
 - 
getPhysicalLocationsValueObjectsList<PhysicalLocationValueObject> getPhysicalLocationsValueObjects(Gene gene) 
 - 
getProductsCollection<GeneProductValueObject> getProducts(Long geneId) - Parameters:
- geneId- gene id
- Returns:
- empty collection if no products
 
 - 
loadAllCollection<Gene> loadAll(Taxon taxon) - Parameters:
- taxon- taxon
- Returns:
- a collection of genes for the specified taxon
 
 - 
loadFullyPopulatedValueObjectGeneValueObject loadFullyPopulatedValueObject(Long id) 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
 
 - 
loadGenePhenotypesGeneValueObject loadGenePhenotypes(Long geneId) 
 - 
loadMicroRNAsCollection<Gene> loadMicroRNAs(Taxon taxon) - 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
 
 - 
loadThawedCollection<Gene> loadThawed(Collection<Long> ids) Load with objects already thawed.- Parameters:
- ids- ids
- Returns:
- pre-thawed genes
 
 - 
loadThawedLiterCollection<Gene> loadThawedLiter(Collection<Long> ids) 
 - 
loadValueObjectsByIdsLiterCollection<GeneValueObject> loadValueObjectsByIdsLiter(Collection<Long> ids) 
 - 
thawAliasesGene thawAliases(Gene gene) - Parameters:
- gene- gene
- Returns:
- thaw the Aliases, very light version
 
 - 
thawLiteCollection<Gene> thawLite(Collection<Gene> genes) 
 - 
searchGenesCollection<GeneValueObject> searchGenes(String query, Long taxonId) throws SearchException - Throws:
- SearchException
 
 - 
removeAll@Secured("GROUP_ADMIN") int removeAll()
 
- 
 
-