Interface GeneDao
- All Superinterfaces:
BaseDao<Gene>
,BaseVoEnabledDao<Gene,
,GeneValueObject> FilteringDao<Gene>
,FilteringVoEnabledDao<Gene,
GeneValueObject>
- All Known Implementing Classes:
GeneDaoImpl
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfind
(PhysicalLocation physicalLocation) Find all genes at a physical location.findByAccession
(String accession, ExternalDatabase source) findByAlias
(String search) Locate genes that match the given alias stringfindByEnsemblId
(String exactString) findByNcbiId
(Integer accession) findByNcbiIds
(Collection<Integer> ncbiIds) Quickly load exact matches.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.findByPhysicalLocation
(PhysicalLocation location) Deprecated.long
getCompositeSequenceCount
(Gene gene, boolean includeDummyProducts) Obtain the number of platform elements (e.g. probes) associated to this gene, totalled up over all platforms.long
getCompositeSequenceCountById
(long id, boolean includeDummyProducts) getCompositeSequences
(Gene gene, boolean includeDummyProducts) Get the composite sequences (e.g. probes) associated with this gene, for any platform.getCompositeSequences
(Gene gene, ArrayDesign arrayDesign, boolean includeDummyProducts) Get the composite sequences (e.g. probes) associated with this gene via a particular platform.getCompositeSequencesById
(long id, boolean includeDummyProducts) getMicroRnaByTaxon
(Taxon taxon) long
getPlatformCountById
(Long id, boolean includeDummyProducts) loadKnownGenes
(Taxon taxon) loadThawed
(Collection<Long> ids) loadThawedLiter
(Collection<Long> ids) int
thawAliases
(Gene gene) thawLite
(Collection<Gene> genes) Methods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, create, find, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringDao
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledDao
loadValueObjects, loadValueObjects
-
Field Details
-
OBJECT_ALIAS
- See Also:
-
-
Method Details
-
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- Returns:
- found genes
-
findByAccession
-
findByAlias
Locate genes that match the given alias string- Parameters:
search
- search string- Returns:
- found genes
-
findByEnsemblId
-
findByNcbiId
-
findByOfficialSymbol
-
findByOfficialName
-
findByOfficialNameInexact
-
findByOfficialSymbol
-
findByOfficialSymbolInexact
-
findByOfficialSymbols
Quickly load exact matches.- Parameters:
query
- querytaxonId
- taxon id- Returns:
- map of gene symbol (toLowerCase()) to the gene. The actual query that led to the gene is not retained.
-
findByNcbiIds
Quickly load exact matches.- Parameters:
ncbiIds
- ncbi ids- Returns:
- map of NCBI Id to the gene.
-
findByPhysicalLocation
Deprecated. -
getCompositeSequenceCount
Obtain the number of platform elements (e.g. probes) associated to this gene, totalled up over all platforms.Note that ACLs are applied to the platforms.
- Parameters:
includeDummyProducts
- if true, include platform elements related via dummyGeneProduct
s
-
getCompositeSequenceCountById
long getCompositeSequenceCountById(long id, boolean includeDummyProducts) - See Also:
-
getCompositeSequences
Collection<CompositeSequence> getCompositeSequences(Gene gene, ArrayDesign arrayDesign, boolean includeDummyProducts) Get the composite sequences (e.g. probes) associated with this gene via a particular platform.- Parameters:
arrayDesign
- platform to restrict composite sequences toincludeDummyProducts
- if true, include platform elements related via dummyGeneProduct
s
-
getCompositeSequences
Get the composite sequences (e.g. probes) associated with this gene, for any platform.- Parameters:
includeDummyProducts
- if true, include platform elements related via dummyGeneProduct
s
-
getCompositeSequencesById
- See Also:
-
getMicroRnaByTaxon
- Parameters:
taxon
- taxon- Returns:
- a collection of genes that are actually MicroRNA for a given taxon
-
getPlatformCountById
- Parameters:
id
- idincludeDummyProducts
- include platforms related via dummyGeneProduct
s in the count- Returns:
- how many platforms have a representation of this gene
-
loadKnownGenes
- Parameters:
taxon
- taxon- Returns:
- a collection of genes for the specified taxon (not all genes, ie not probe aligned regions and predicted genes)
-
loadThawed
-
loadThawedLiter
-
thaw
-
thawAliases
-
thawLite
-
thawLite
-
thawLiter
-
removeAll
int removeAll()
-