Class ExpressionExperimentDaoImpl
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, BaseDao<ExpressionExperiment>, BaseVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>, BrowsingDao<ExpressionExperiment>, CachedFilteringDao<ExpressionExperiment>, CachedFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>, CuratableDao<ExpressionExperiment>, ExpressionExperimentDao, FilteringDao<ExpressionExperiment>, FilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Author:
- pavlidis
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractFilteringVoEnabledDaoAbstractFilteringVoEnabledDao.FilterablePropertiesConfigurer, AbstractFilteringVoEnabledDao.FilterablePropertyMetaNested classes/interfaces inherited from interface ExpressionExperimentDaoExpressionExperimentDao.Identifiers
- 
Field SummaryFields inherited from class AbstractCuratableDaoCURATION_DETAILS_ALIASFields inherited from class AbstractVoEnabledDaoREPORT_SLOW_QUERY_AFTER_MSFields inherited from class AbstractDaologFields inherited from interface ExpressionExperimentDaoFREE_TEXT, OBJECT_ALIAS, UNCATEGORIZED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintaddRawDataVectors(ExpressionExperiment ee, QuantitationType newQt, Collection<RawExpressionDataVector> newVectors) Add raw data vectors with the given quantitation type.browse(int start, int limit) protected voidconfigureFilterableProperties(AbstractFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>.FilterablePropertiesConfigurer configurer) Register filterable properties.longcountBioMaterials(Filters filters) Count the number of biomaterials of datasets satisfying the given filters.intcreateProcessedDataVectors(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> vectors) Add processed data vectorsvoidcreateSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Create a single-cell dimension for a given experiment.voiddeleteSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Delete the given single cell dimension.protected ExpressionExperimentValueObjectLoad a value object for a given entity.filterByTaxon(Collection<Long> ids, Taxon taxon) find(ExpressionExperiment entity) Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).findByAccession(String accession) findByAccession(DatabaseEntry accession) findByExpressedGene(Gene gene, Double rank) findByFactorValue(Long factorValueId) findByGene(Gene gene) findByName(String name) findByQuantitationType(QuantitationType quantitationType) findByShortName(String shortName) findByTaxon(Taxon taxon) findByUpdatedLimit(int limit) findByUpdatedLimit(Collection<Long> ids, int limit) findOneByAccession(String accession) findOneByName(String name) findUpdatedAfter(Date date) Find experiments updated on or after a given date.Map<Class<? extends Identifiable>, List<Characteristic>> getAllAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Obtain all annotations, grouped by applicable level.getAnnotationsUsageFrequency(Collection<Long> eeIds, Class<? extends Identifiable> level, int maxResults, int minFrequency, String category, Collection<String> excludedCategoryUris, Collection<String> excludedTermUris, Collection<String> retainedTermUris) We're making two assumptions: a dataset cannot have a characteristic more than once and a dataset cannot have the same characteristic at multiple levels to make counting more efficient.getArrayDesignsUsageFrequency(int maxResults) Obtain dataset usage frequency by platform currently used.getArrayDesignsUsageFrequency(Collection<Long> eeIds, int maxResults) Obtain dataset usage frequency by platform currently for the given dataset IDs.getArrayDesignsUsed(Collection<? extends BioAssaySet> ees) getArrayDesignsUsed(ExpressionExperiment ee, QuantitationType qt, Class<? extends DataVector> dataVectorType) getAuditEvents(Collection<Long> ids) Retrieve a dimension for a given experiment and quantitation type.getBioAssayDimension(ExpressionExperiment ee, QuantitationType qt, Class<? extends BulkExpressionDataVector> dataVectorType) Retrieve a dimension for a given experiment and quantitation type.getBioAssayDimensionById(ExpressionExperiment ee, Long dimensionId, Class<? extends BulkExpressionDataVector> dataVectorType) Obtain a bioassay dimension by ID.getBioAssayDimensions(ExpressionExperiment expressionExperiment) getBioAssayDimensionsFromSubSets(ExpressionExperiment expressionExperiment) RetrieveBioAssayDimensionthat are used by subsets of a givenExpressionExperiment.getBioMaterialAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Obtain sample-level annotations.longgetBioMaterialCount(ExpressionExperiment expressionExperiment) getCategoriesUsageFrequency(Collection<Long> eeIds, Collection<String> excludedCategoryUris, Collection<String> excludedTermUris, Collection<String> retainedTermUris, int maxResults) getCellLevelCharacteristicAt(CellLevelCharacteristics clc, int cellIndex) Obtain the characteristic at a given cell index.getCellLevelCharacteristicAt(CellLevelCharacteristics clc, int startIndex, int endIndexExclusive) Obtain all cell-level characteristics from all single cell dimensions.getCellLevelCharacteristics(ExpressionExperiment ee, Category category) Obtain all cell-level characteristics from all single cell dimensions matching the given category.getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt) getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, Long clcId) Obtain a specific cell-level characteristic by ID.getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, String clcName) getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Category category) Obtain the category of a cell-level characteristic.getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Obtain a cell type assignment by ID.getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Obtain a cell type assignment by name.getCellTypeAssignmentByProtocol(ExpressionExperiment ee, QuantitationType qt, String protocolName) Obtain all cell type assignment protocols currently used.getCellTypeAssignments(ExpressionExperiment expressionExperiment, QuantitationType qt) getCellTypeAssignmentWithoutIndices(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Obtain a cell type assignment by ID without loading the indices.getCellTypeAssignmentWithoutIndices(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Obtain a cell type assignment by name without loading the indices.getCellTypeAt(CellTypeAssignment cta, int cellIndex) Obtain the cell type at a given cell index.getCellTypeAt(CellTypeAssignment cta, int startIndex, int endIndexExclusive) getExperimentalDesignAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Obtain experimental design-level annotations.getExperimentAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Obtain experiment-level annotations.Obtain the subset annotations.Obtain factor value-level annotations.Obtain factor value-level annotations for a given subset.getFilterablePropertyMeta(String propertyName) Checks for special properties that are allowed to be referenced on certain objects.protected QuerygetFilteringCountQuery(Filters filters) Produce a query that will be used to retrieve the size ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).protected QuerygetFilteringIdQuery(Filters filters, Sort sort) Produce a query that will be used to retrieve IDs ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).protected QuerygetFilteringQuery(Filters filters, Sort sort) Produce a query for retrieving value objects after applying a set of filters and a given ordering.getGenesUsedByPreferredVectors(ExpressionExperiment experimentConstraint) Obtain genes used by the processed vectors of this dataset.getLastArrayDesignUpdate(Collection<ExpressionExperiment> expressionExperiments) getNumberOfDesignElementsPerSample(ExpressionExperiment expressionExperiment) longObtain the number of non-zeroes.getNumberOfNonZeroesBySample(ExpressionExperiment ee, QuantitationType qt, int fetchSize, boolean useCursorFetchIfSupported) Obtain the number of non-zeroes by sample.longObtain the number of single-cell vectors for a given QT.getOriginalPlatformsUsageFrequency(int maxResults) Obtain dataset usage frequency by original platforms.getOriginalPlatformsUsageFrequency(Collection<Long> eeIds, int maxResults) Obtain dataset usage frequency by platform currently for the given dataset IDs.Obtain the count of distinct experiments per taxon.getPerTaxonCount(Collection<Long> ids) Obtain the count of distinct experiments per taxon for experiments with the given IDs.Obtain the preferred assignment of the preferred single-cell vectors.Obtain the preferred quantitation type for the raw vectors, if available.Obtain the preferred single cell dimension, that is the dimension associated to the preferred set of single-cell vectors.Load a single-cell dimension without its cell IDs.getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) Obtain the preferred quantitation type for single cell data, if available.Retrieve the processed vector for an experiment.getProcessedDataVectors(ExpressionExperiment ee, List<BioAssay> assays) Retrieve a slice of processed vectors for an experiment.Obtain the quantitation type for the processed vectors, if available.longgetRawDataVectors(ExpressionExperiment ee, List<BioAssay> assays, QuantitationType qt) Obtain a slice of the raw vectors for a given experiment and QT.Obtain raw vectors for a given experiment and QT.getSampleRemovalEvents(Collection<ExpressionExperiment> expressionExperiments) getSingleCellDataVectors(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) Obtain a set of single-cell data vectors for the given quantitation type.getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, boolean includeCellIds, boolean includeData, boolean includeDataIndices) Obtain a set of single-cell data vectors for the given quantitation type.getSingleCellDataVectorWithoutCellIds(ExpressionExperiment ee, QuantitationType quantitationType, CompositeSequence designElement) Obtain the single-cell dimension used by a specific QT.Obtain all the single cell dimensions used by the single-cell vectors of a given experiment.Obtain all the single cell dimensions used by the single-cell vectors of a given experiment.getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) Load a single-cell dimension used by a specific QT without its cell IDs.getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) Obtain a list of single-cell QTs.getSubSetById(ExpressionExperiment ee, Long subSetId) getSubSets(ExpressionExperiment expressionExperiment) getSubSets(ExpressionExperiment expressionExperiment, BioAssayDimension bad) getSubSetsByDimension(ExpressionExperiment expressionExperiment) <T extends BioAssaySet>
 Map<T, Taxon> getTaxa(Collection<T> bioAssaySets) getTaxon(BioAssaySet ee) Determine the taxon for a given experiment or subset.Obtain the dataset usage frequency by technology type.Obtain the dataset usage frequency by technology type for the given dataset IDs.Obtain a value object transformer for the results ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).booleanTest if the dataset has preferred expression data vectors.booleanIndicate if the given experiment has single-cell quantitation types.protected voidInitialize a result fromAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort)retrieved from the HibernateStandardQueryCache.Load an experiment by ID with a specific cache mode.Load all possible identifiers for all experiments.loadBioAssaySet(Long id) loadBlacklistedValueObjects(Filters filters, Sort sort, int offset, int limit) loadDetailsValueObjects(Collection<Long> ids, Taxon taxon, Sort sort, int offset, int limit) Special method for front-end access.LikeExpressionExperimentDao.loadDetailsValueObjects(Collection, Taxon, Sort, int, int), but returning a list.Flavour ofExpressionExperimentDao.loadDetailsValueObjectsByIds(Collection), but using the query cache.loadDetailsValueObjectsByIdsWithCache(Collection<Long> ids, Taxon taxon, Sort sort, int offset, int limit) Flavour ofExpressionExperimentDao.loadDetailsValueObjectsByIds(Collection), but using the query cache.loadValueObjects(Filters filters, Sort sort) Load VOs with minimal ordering and filtering.loadValueObjects(Filters filters, Sort sort, int offset, int limit) Load VOs with ordering, filtering and offset/limit.Load datasets by IDs with the same relation asCachedFilteringDao.loadWithCache(Filters, Sort).protected voidPost-process VOs in bulk.voidRemove a persistent instanceintRemove all raw data vectors.intRemove all single-cell data vectors and their quantitation types.intRemove processed data vectors.intremoveRawDataVectors(ExpressionExperiment ee, QuantitationType qt, boolean keepDimension) Remove raw data vectors for a given quantitation type.intremoveSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, boolean deleteQt) Remove the given single-cell data vectors.intreplaceProcessedDataVectors(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> vectors) Replace processed data vectors.intreplaceRawDataVectors(ExpressionExperiment ee, QuantitationType qt, Collection<RawExpressionDataVector> vectors) Replace raw data vectors for a given quantitation type.streamCellIds(SingleCellDimension dimension, boolean createNewSession) Stream the cell IDs of a dimension.streamCellLevelCharacteristics(CellLevelCharacteristics clc, boolean createNewSession) streamCellTypes(CellTypeAssignment cta, boolean createNewSession) streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) Obtain a stream over the vectors for a given QT.streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, boolean includeCellIds, boolean includeData, boolean includeDataIndices) voidthaw(ExpressionExperiment expressionExperiment) Thaw everything.voidThaw experiment metadata and bioassays.voidthawLiter(ExpressionExperiment expressionExperiment) Thaw experiment metadata.voidupdateSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Update a single-cell dimensino for a given experiment.Methods inherited from class AbstractCuratableDaoaddEventsToMap, addNonTroubledFilter, distinctIfNecessary, formNativeNonTroubledClause, formNonTroubledClause, groupByIfNecessary, loadTroubledIds, updateCurationDetailsFromAuditEventMethods inherited from class AbstractQueryFilteringVoEnabledDaocount, countWithCache, getEntityTransformer, load, load, loadIds, loadIdsWithCache, loadValueObjectsWithCache, loadValueObjectsWithCache, loadWithCache, loadWithCacheMethods inherited from class AbstractFilteringVoEnabledDaoafterPropertiesSet, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyMeta, getFilterablePropertyType, getSortMethods inherited from class AbstractVoEnabledDaodoLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from class AbstractDaocountAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, save, streamAll, streamAll, streamQuery, update, updateMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseDaocountAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from interface BaseVoEnabledDaoloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface CachedFilteringDaocountWithCache, loadIdsWithCache, loadWithCache, loadWithCacheMethods inherited from interface CachedFilteringVoEnabledDaoloadValueObjectsWithCache, loadValueObjectsWithCacheMethods inherited from interface CuratableDaoloadTroubledIds, updateCurationDetailsFromAuditEventMethods inherited from interface FilteringDaocount, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds
- 
Constructor Details- 
ExpressionExperimentDaoImpl
 
- 
- 
Method Details- 
loadDescription copied from interface:ExpressionExperimentDaoLoad an experiment by ID with a specific cache mode.The cache mode will be effective for the remainder of the Hibernate session. - Specified by:
- loadin interface- ExpressionExperimentDao
 
- 
loadAllIdentifiersDescription copied from interface:ExpressionExperimentDaoLoad all possible identifiers for all experiments.- Specified by:
- loadAllIdentifiersin interface- ExpressionExperimentDao
 
- 
browse- Specified by:
- browsein interface- BrowsingDao<ExpressionExperiment>
 
- 
browsepublic List<ExpressionExperiment> browse(int start, int limit, String orderField, boolean descending) - Specified by:
- browsein interface- BrowsingDao<ExpressionExperiment>
 
- 
loadBioAssaySet- Specified by:
- loadBioAssaySetin interface- ExpressionExperimentDao
 
- 
filterByTaxon- Specified by:
- filterByTaxonin interface- ExpressionExperimentDao
 
- 
findByShortName- Specified by:
- findByShortNamein interface- ExpressionExperimentDao
 
- 
findByName- Specified by:
- findByNamein interface- ExpressionExperimentDao
 
- 
findOneByName- Specified by:
- findOneByNamein interface- ExpressionExperimentDao
 
- 
findDescription copied from interface:BaseDaoDoes a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).- Specified by:
- findin interface- BaseDao<ExpressionExperiment>
- Overrides:
- findin class- AbstractDao<ExpressionExperiment>
- Parameters:
- entity- the entity to look for.
- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
 
- 
findByAccession- Specified by:
- findByAccessionin interface- ExpressionExperimentDao
 
- 
findByAccession- Specified by:
- findByAccessionin interface- ExpressionExperimentDao
 
- 
findOneByAccession- Specified by:
- findOneByAccessionin interface- ExpressionExperimentDao
 
- 
findByBibliographicReference- Specified by:
- findByBibliographicReferencein interface- ExpressionExperimentDao
 
- 
findByBioAssay- Specified by:
- findByBioAssayin interface- ExpressionExperimentDao
 
- 
findByBioMaterial- Specified by:
- findByBioMaterialin interface- ExpressionExperimentDao
 
- 
findByBioMaterialspublic Map<ExpressionExperiment, Collection<BioMaterial>> findByBioMaterials(Collection<BioMaterial> bms) - Specified by:
- findByBioMaterialsin interface- ExpressionExperimentDao
 
- 
findByExpressedGene- Specified by:
- findByExpressedGenein interface- ExpressionExperimentDao
 
- 
findByDesign- Specified by:
- findByDesignin interface- ExpressionExperimentDao
 
- 
findByFactor- Specified by:
- findByFactorin interface- ExpressionExperimentDao
 
- 
findByFactorValue- Specified by:
- findByFactorValuein interface- ExpressionExperimentDao
 
- 
findByFactorValue- Specified by:
- findByFactorValuein interface- ExpressionExperimentDao
 
- 
findByFactorValues- Specified by:
- findByFactorValuesin interface- ExpressionExperimentDao
 
- 
findByGene- Specified by:
- findByGenein interface- ExpressionExperimentDao
 
- 
findByQuantitationType- Specified by:
- findByQuantitationTypein interface- ExpressionExperimentDao
 
- 
findByTaxon- Specified by:
- findByTaxonin interface- ExpressionExperimentDao
 
- 
findByUpdatedLimit- Specified by:
- findByUpdatedLimitin interface- ExpressionExperimentDao
 
- 
findByUpdatedLimit- Specified by:
- findByUpdatedLimitin interface- ExpressionExperimentDao
 
- 
findUpdatedAfterDescription copied from interface:ExpressionExperimentDaoFind experiments updated on or after a given date.- Specified by:
- findUpdatedAfterin interface- ExpressionExperimentDao
 
- 
getAnnotationCounts- Specified by:
- getAnnotationCountsin interface- ExpressionExperimentDao
 
- 
getAllAnnotationspublic Map<Class<? extends Identifiable>, List<Characteristic>> getAllAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Description copied from interface:ExpressionExperimentDaoObtain all annotations, grouped by applicable level.- Specified by:
- getAllAnnotationsin interface- ExpressionExperimentDao
- Parameters:
- useEe2c- use the- EXPRESSION_EXPERIMENT2CHARACTERISTICtable to retrieve annotations
 
- 
getExperimentAnnotationspublic List<Characteristic> getExperimentAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Description copied from interface:ExpressionExperimentDaoObtain experiment-level annotations.- Specified by:
- getExperimentAnnotationsin interface- ExpressionExperimentDao
- Parameters:
- useEe2c- use the- EXPRESSION_EXPERIMENTE2CHARACTERISTICtable,- TableMaintenanceUtil
 
- 
getExperimentSubSetAnnotationsDescription copied from interface:ExpressionExperimentDaoObtain the subset annotations.- Specified by:
- getExperimentSubSetAnnotationsin interface- ExpressionExperimentDao
 
- 
getBioMaterialAnnotationspublic List<Characteristic> getBioMaterialAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Description copied from interface:ExpressionExperimentDaoObtain sample-level annotations.This uses the EE2Ctable under the hood.- Specified by:
- getBioMaterialAnnotationsin interface- ExpressionExperimentDao
 
- 
getBioMaterialAnnotations- Specified by:
- getBioMaterialAnnotationsin interface- ExpressionExperimentDao
 
- 
getExperimentalDesignAnnotationspublic List<Characteristic> getExperimentalDesignAnnotations(ExpressionExperiment expressionExperiment, boolean useEe2c) Description copied from interface:ExpressionExperimentDaoObtain experimental design-level annotations.This is equivalent to the subject components of ExpressionExperimentDao.getFactorValueAnnotations(ExpressionExperiment)for now, but other annotations from the experimental design might be included in the future.- Specified by:
- getExperimentalDesignAnnotationsin interface- ExpressionExperimentDao
 
- 
getFactorValueAnnotationsDescription copied from interface:ExpressionExperimentDaoObtain factor value-level annotations.- Specified by:
- getFactorValueAnnotationsin interface- ExpressionExperimentDao
 
- 
getFactorValueAnnotationsDescription copied from interface:ExpressionExperimentDaoObtain factor value-level annotations for a given subset.- Specified by:
- getFactorValueAnnotationsin interface- ExpressionExperimentDao
 
- 
getCategoriesUsageFrequencypublic Map<Characteristic, Long> getCategoriesUsageFrequency(@Nullable Collection<Long> eeIds, @Nullable Collection<String> excludedCategoryUris, @Nullable Collection<String> excludedTermUris, @Nullable Collection<String> retainedTermUris, int maxResults) - Specified by:
- getCategoriesUsageFrequencyin interface- ExpressionExperimentDao
 
- 
getAnnotationsUsageFrequencypublic Map<Characteristic, Long> getAnnotationsUsageFrequency(@Nullable Collection<Long> eeIds, @Nullable Class<? extends Identifiable> level, int maxResults, int minFrequency, @Nullable String category, @Nullable Collection<String> excludedCategoryUris, @Nullable Collection<String> excludedTermUris, @Nullable Collection<String> retainedTermUris) We're making two assumptions: a dataset cannot have a characteristic more than once and a dataset cannot have the same characteristic at multiple levels to make counting more efficient.- Specified by:
- getAnnotationsUsageFrequencyin interface- ExpressionExperimentDao
- Parameters:
- eeIds- IDs of- ExpressionExperimentto use for restricting annotations, or null to consider everything
- level- applicable annotation level, one of- ExpressionExperiment,- ExperimentalDesignor- BioMaterial
- maxResults- maximum number of annotations to return, or -1 to return everything
- minFrequency- minimum usage frequency to be reported (0 effectively allows everything)
- category- a category URI or free text category to restrict the results to, or null to consider everything, empty string to consider uncategorized terms
- retainedTermUris- a collection of term to retain even if they don't meet the minimum frequency criteria
 
- 
getExperimentsLackingPublications- Specified by:
- getExperimentsLackingPublicationsin interface- ExpressionExperimentDao
 
- 
updateMeanVarianceRelationpublic MeanVarianceRelation updateMeanVarianceRelation(ExpressionExperiment ee, MeanVarianceRelation mvr) - Specified by:
- updateMeanVarianceRelationin interface- ExpressionExperimentDao
 
- 
countBioMaterialsDescription copied from interface:ExpressionExperimentDaoCount the number of biomaterials of datasets satisfying the given filters.The result is stored in the standard query cache. - Specified by:
- countBioMaterialsin interface- ExpressionExperimentDao
 
- 
getArrayDesignsUsed- Specified by:
- getArrayDesignsUsedin interface- ExpressionExperimentDao
 
- 
getArrayDesignsUsed- Specified by:
- getArrayDesignsUsedin interface- ExpressionExperimentDao
 
- 
getArrayDesignsUsedpublic Collection<ArrayDesign> getArrayDesignsUsed(ExpressionExperiment ee, QuantitationType qt, Class<? extends DataVector> dataVectorType) - Specified by:
- getArrayDesignsUsedin interface- ExpressionExperimentDao
 
- 
getGenesUsedByPreferredVectorsDescription copied from interface:ExpressionExperimentDaoObtain genes used by the processed vectors of this dataset.- Specified by:
- getGenesUsedByPreferredVectorsin interface- ExpressionExperimentDao
 
- 
getTechnologyTypeUsageFrequencyDescription copied from interface:ExpressionExperimentDaoObtain the dataset usage frequency by technology type.If a dataset was switched to a platform of a different technology type, it is counted toward both. - Specified by:
- getTechnologyTypeUsageFrequencyin interface- ExpressionExperimentDao
 
- 
getTechnologyTypeUsageFrequencyDescription copied from interface:ExpressionExperimentDaoObtain the dataset usage frequency by technology type for the given dataset IDs.Note: No ACL filtering is performed. - Specified by:
- getTechnologyTypeUsageFrequencyin interface- ExpressionExperimentDao
- See Also:
 
- 
getArrayDesignsUsageFrequencyDescription copied from interface:ExpressionExperimentDaoObtain dataset usage frequency by platform currently used.Note that a dataset counts toward all the platforms mentioned through its BioAssay.This method uses ACLs and the troubled status to only displays the counts of datasets the current user is entitled to see. Only administrator can see troubled platforms. - Specified by:
- getArrayDesignsUsageFrequencyin interface- ExpressionExperimentDao
 
- 
getArrayDesignsUsageFrequencyDescription copied from interface:ExpressionExperimentDaoObtain dataset usage frequency by platform currently for the given dataset IDs.Note: no ACL filtering is performed. Only administrator can see troubled platforms. - Specified by:
- getArrayDesignsUsageFrequencyin interface- ExpressionExperimentDao
- See Also:
 
- 
getOriginalPlatformsUsageFrequencyDescription copied from interface:ExpressionExperimentDaoObtain dataset usage frequency by original platforms.Note that a dataset counts toward all the platforms mentioned through its BioAssay. Datasets whose platform hasn't been switched (i.e. the original is the same as the current one) are ignored.This method uses ACLs and the troubled status to only displays the counts of datasets the current user is entitled to see. Only administrators can see troubled platforms. - Specified by:
- getOriginalPlatformsUsageFrequencyin interface- ExpressionExperimentDao
 
- 
getOriginalPlatformsUsageFrequencypublic Map<ArrayDesign, Long> getOriginalPlatformsUsageFrequency(Collection<Long> eeIds, int maxResults) Description copied from interface:ExpressionExperimentDaoObtain dataset usage frequency by platform currently for the given dataset IDs.Note: no ACL filtering is performed. Only administrators can see troubled platforms. - Specified by:
- getOriginalPlatformsUsageFrequencyin interface- ExpressionExperimentDao
- See Also:
 
- 
getAuditEvents- Specified by:
- getAuditEventsin interface- ExpressionExperimentDao
 
- 
getBioAssayDimensionspublic Collection<BioAssayDimension> getBioAssayDimensions(ExpressionExperiment expressionExperiment) - Specified by:
- getBioAssayDimensionsin interface- ExpressionExperimentDao
 
- 
getBioAssayDimensionsFromSubSetspublic Collection<BioAssayDimension> getBioAssayDimensionsFromSubSets(ExpressionExperiment expressionExperiment) Description copied from interface:ExpressionExperimentDaoRetrieveBioAssayDimensionthat are used by subsets of a givenExpressionExperiment.This covers cases where BAs in a subset are not the same as the BAs in the experiment such as for single-cell data where we use sub-assays. - Specified by:
- getBioAssayDimensionsFromSubSetsin interface- ExpressionExperimentDao
 
- 
getBioAssayDimensionpublic BioAssayDimension getBioAssayDimension(ExpressionExperiment ee, QuantitationType qt, Class<? extends BulkExpressionDataVector> dataVectorType) Description copied from interface:ExpressionExperimentDaoRetrieve a dimension for a given experiment and quantitation type.- Specified by:
- getBioAssayDimensionin interface- ExpressionExperimentDao
- Parameters:
- dataVectorType- the type of data vectors to consider, this is necessary because otherwise all the vector tables would have to be looked at. If you do nto know the type of vector, use- ExpressionExperimentDao.getBioAssayDimension(ExpressionExperiment, QuantitationType).
 
- 
getBioAssayDimensionDescription copied from interface:ExpressionExperimentDaoRetrieve a dimension for a given experiment and quantitation type.- Specified by:
- getBioAssayDimensionin interface- ExpressionExperimentDao
 
- 
getBioAssayDimensionByIdpublic BioAssayDimension getBioAssayDimensionById(ExpressionExperiment ee, Long dimensionId, Class<? extends BulkExpressionDataVector> dataVectorType) Description copied from interface:ExpressionExperimentDaoObtain a bioassay dimension by ID.- Specified by:
- getBioAssayDimensionByIdin interface- ExpressionExperimentDao
 
- 
getBioMaterialCount- Specified by:
- getBioMaterialCountin interface- ExpressionExperimentDao
 
- 
getRawDataVectorCount- Specified by:
- getRawDataVectorCountin interface- ExpressionExperimentDao
- Parameters:
- ee- the expression experiment
- Returns:
- count of RAW vectors.
 
- 
getExperimentsWithOutliers- Specified by:
- getExperimentsWithOutliersin interface- ExpressionExperimentDao
 
- 
getLastArrayDesignUpdatepublic Map<Long,Date> getLastArrayDesignUpdate(Collection<ExpressionExperiment> expressionExperiments) - Specified by:
- getLastArrayDesignUpdatein interface- ExpressionExperimentDao
 
- 
getLastArrayDesignUpdate- Specified by:
- getLastArrayDesignUpdatein interface- ExpressionExperimentDao
 
- 
getPerTaxonCountDescription copied from interface:ExpressionExperimentDaoObtain the count of distinct experiments per taxon.Experiments are filtered by ACLs and troubled experiments are only visible to administrators. - Specified by:
- getPerTaxonCountin interface- ExpressionExperimentDao
 
- 
getPerTaxonCountDescription copied from interface:ExpressionExperimentDaoObtain the count of distinct experiments per taxon for experiments with the given IDs.Experiments are not filtered by ACLs and toubled experiments are only visible to administrators. - Specified by:
- getPerTaxonCountin interface- ExpressionExperimentDao
 
- 
getPopulatedFactorCounts- Specified by:
- getPopulatedFactorCountsin interface- ExpressionExperimentDao
 
- 
getPopulatedFactorCountsExcludeBatch- Specified by:
- getPopulatedFactorCountsExcludeBatchin interface- ExpressionExperimentDao
 
- 
getQuantitationTypeCount- Specified by:
- getQuantitationTypeCountin interface- ExpressionExperimentDao
 
- 
getPreferredSingleCellQuantitationTypeDescription copied from interface:ExpressionExperimentDaoObtain the preferred quantitation type for single cell data, if available.- Specified by:
- getPreferredSingleCellQuantitationTypein interface- ExpressionExperimentDao
 
- 
getPreferredQuantitationTypeDescription copied from interface:ExpressionExperimentDaoObtain the preferred quantitation type for the raw vectors, if available.- Specified by:
- getPreferredQuantitationTypein interface- ExpressionExperimentDao
 
- 
getProcessedQuantitationTypeDescription copied from interface:ExpressionExperimentDaoObtain the quantitation type for the processed vectors, if available.- Specified by:
- getProcessedQuantitationTypein interface- ExpressionExperimentDao
 
- 
hasProcessedExpressionDataDescription copied from interface:ExpressionExperimentDaoTest if the dataset has preferred expression data vectors.- Specified by:
- hasProcessedExpressionDatain interface- ExpressionExperimentDao
 
- 
getSampleRemovalEventspublic Map<ExpressionExperiment, Collection<AuditEvent>> getSampleRemovalEvents(Collection<ExpressionExperiment> expressionExperiments) - Specified by:
- getSampleRemovalEventsin interface- ExpressionExperimentDao
 
- 
getSubSets- Specified by:
- getSubSetsin interface- ExpressionExperimentDao
 
- 
getSubSetspublic Collection<ExpressionExperimentSubSet> getSubSets(ExpressionExperiment expressionExperiment, BioAssayDimension bad) - Specified by:
- getSubSetsin interface- ExpressionExperimentDao
 
- 
getSubSetsByDimensionpublic Map<BioAssayDimension, Set<ExpressionExperimentSubSet>> getSubSetsByDimension(ExpressionExperiment expressionExperiment) - Specified by:
- getSubSetsByDimensionin interface- ExpressionExperimentDao
 
- 
getSubSetById- Specified by:
- getSubSetByIdin interface- ExpressionExperimentDao
 
- 
getTaxa- Specified by:
- getTaxain interface- ExpressionExperimentDao
 
- 
getTaxonDescription copied from interface:ExpressionExperimentDaoDetermine the taxon for a given experiment or subset.- Specified by:
- getTaxonin interface- ExpressionExperimentDao
- Returns:
- a unique taxon for the dataset, or null if no taxon could be determined
 
- 
loadWithRelationsAndCacheDescription copied from interface:ExpressionExperimentDaoLoad datasets by IDs with the same relation asCachedFilteringDao.loadWithCache(Filters, Sort).- Specified by:
- loadWithRelationsAndCachein interface- ExpressionExperimentDao
 
- 
loadDetailsValueObjectspublic Slice<ExpressionExperimentDetailsValueObject> loadDetailsValueObjects(@Nullable Collection<Long> ids, @Nullable Taxon taxon, @Nullable Sort sort, int offset, int limit) Description copied from interface:ExpressionExperimentDaoSpecial method for front-end access. This is partly redundant withFilteringVoEnabledDao.loadValueObjects(Filters, Sort, int, int); however, it fills in more information, returns ExpressionExperimentDetailsValueObject- Specified by:
- loadDetailsValueObjectsin interface- ExpressionExperimentDao
- Parameters:
- ids- only list specific ids, or null to ignore
- taxon- only list EEs in the specified taxon, or null to ignore
- sort- the field to order the results by.
- offset- offset
- limit- maximum number of results to return
- Returns:
- a list of EE details VOs representing experiments matching the given arguments.
 
- 
loadDetailsValueObjectsByIdsWithCachepublic Slice<ExpressionExperimentDetailsValueObject> loadDetailsValueObjectsByIdsWithCache(@Nullable Collection<Long> ids, @Nullable Taxon taxon, @Nullable Sort sort, int offset, int limit) Description copied from interface:ExpressionExperimentDaoFlavour ofExpressionExperimentDao.loadDetailsValueObjectsByIds(Collection), but using the query cache.- Specified by:
- loadDetailsValueObjectsByIdsWithCachein interface- ExpressionExperimentDao
 
- 
loadDetailsValueObjectsByIdspublic List<ExpressionExperimentDetailsValueObject> loadDetailsValueObjectsByIds(Collection<Long> ids) Description copied from interface:ExpressionExperimentDaoLikeExpressionExperimentDao.loadDetailsValueObjects(Collection, Taxon, Sort, int, int), but returning a list.- Specified by:
- loadDetailsValueObjectsByIdsin interface- ExpressionExperimentDao
 
- 
loadDetailsValueObjectsByIdsWithCachepublic List<ExpressionExperimentDetailsValueObject> loadDetailsValueObjectsByIdsWithCache(Collection<Long> ids) Description copied from interface:ExpressionExperimentDaoFlavour ofExpressionExperimentDao.loadDetailsValueObjectsByIds(Collection), but using the query cache.- Specified by:
- loadDetailsValueObjectsByIdsWithCachein interface- ExpressionExperimentDao
 
- 
loadBlacklistedValueObjectspublic Slice<ExpressionExperimentValueObject> loadBlacklistedValueObjects(@Nullable Filters filters, @Nullable Sort sort, int offset, int limit) - Specified by:
- loadBlacklistedValueObjectsin interface- ExpressionExperimentDao
 
- 
loadLackingFactors- Specified by:
- loadLackingFactorsin interface- ExpressionExperimentDao
 
- 
loadLackingTags- Specified by:
- loadLackingTagsin interface- ExpressionExperimentDao
 
- 
doLoadValueObjectDescription copied from class:AbstractVoEnabledDaoLoad a value object for a given entity.This should be fast and efficient, and avoid any database query or post-processing. If you need to perform additional queries, implement AbstractVoEnabledDao.postProcessValueObjects(List)instead.- Specified by:
- doLoadValueObjectin class- AbstractVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
 
- 
postProcessValueObjectsDescription copied from class:AbstractVoEnabledDaoPost-process VOs in bulk.Use this as an opportunity to load extra informations that could not be populated in the initial AbstractVoEnabledDao.doLoadValueObject(Identifiable)orAbstractVoEnabledDao.doLoadValueObjects(Collection)- Overrides:
- postProcessValueObjectsin class- AbstractVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
 
- 
loadValueObjectspublic List<ExpressionExperimentValueObject> loadValueObjects(@Nullable Filters filters, @Nullable Sort sort) Description copied from interface:FilteringVoEnabledDaoLoad VOs with minimal ordering and filtering.Use this as an alternative to FilteringVoEnabledDao.loadValueObjects(Filters, Sort, int, int)if you do not intend to provide pagination capabilities.- Specified by:
- loadValueObjectsin interface- FilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Overrides:
- loadValueObjectsin class- AbstractQueryFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- See Also:
 
- 
loadValueObjectspublic Slice<ExpressionExperimentValueObject> loadValueObjects(@Nullable Filters filters, @Nullable Sort sort, int offset, int limit) Description copied from interface:FilteringVoEnabledDaoLoad VOs with ordering, filtering and offset/limit.Consider using FilteringDao.getFilter(String, Filter.Operator, String)andFilteringDao.getSort(String, Sort.Direction, Sort.NullMode)to produce the filters and sort safely from user input.- Specified by:
- loadValueObjectsin interface- FilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Overrides:
- loadValueObjectsin class- AbstractQueryFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Parameters:
- filters- filters applied on the search. The properties mentioned in the- Filtermust exist and be visible to Hibernate. You can use nested properties such as "curationDetails.lastUpdated".
- sort- an object property and direction to order by. This property must exist and be visible to Hibernate. You can use nested properties such as "curationDetails.lastUpdated".
- offset- an offset from which entities are retrieved when sorted according to the sort argument, or 0 to ignore
- limit- a limit on the number of returned results, or -1 to ignore
- Returns:
- a slice of the relevant data
- See Also:
 
- 
getValueObjectTransformerDescription copied from class:AbstractQueryFilteringVoEnabledDaoObtain a value object transformer for the results ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).By default, it will process the first element of the tuple with AbstractVoEnabledDao.doLoadValueObjects(Collection)and then post-process the resulting VOs withAbstractVoEnabledDao.postProcessValueObjects(List).
- 
removeDescription copied from interface:BaseDaoRemove a persistent instance- Specified by:
- removein interface- BaseDao<ExpressionExperiment>
- Overrides:
- removein class- AbstractDao<ExpressionExperiment>
- Parameters:
- ee- the entity to be removed
 
- 
thawDescription copied from interface:ExpressionExperimentDaoThaw everything.Includes ExpressionExperimentDao.thawLite(ExpressionExperiment)and raw/processed vectors.Does not include single-cell vectors. - Specified by:
- thawin interface- ExpressionExperimentDao
 
- 
thawLiteDescription copied from interface:ExpressionExperimentDaoThaw experiment metadata and bioassays.Include ExpressionExperimentDao.thawLiter(ExpressionExperiment)and bioassays.- Specified by:
- thawLitein interface- ExpressionExperimentDao
 
- 
thawLiterDescription copied from interface:ExpressionExperimentDaoThaw experiment metadata.- Specified by:
- thawLiterin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionsDescription copied from interface:ExpressionExperimentDaoObtain all the single cell dimensions used by the single-cell vectors of a given experiment.- Specified by:
- getSingleCellDimensionsin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionsWithoutCellIdsDescription copied from interface:ExpressionExperimentDaoObtain all the single cell dimensions used by the single-cell vectors of a given experiment.Cell IDs are not loaded. - Specified by:
- getSingleCellDimensionsWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionsWithoutCellIdspublic List<SingleCellDimension> getSingleCellDimensionsWithoutCellIds(ExpressionExperiment ee, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) - Specified by:
- getSingleCellDimensionsWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionDescription copied from interface:ExpressionExperimentDaoObtain the single-cell dimension used by a specific QT.- Specified by:
- getSingleCellDimensionin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionWithoutCellIdspublic SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt) Description copied from interface:ExpressionExperimentDaoLoad a single-cell dimension used by a specific QT without its cell IDs.- Specified by:
- getSingleCellDimensionWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getSingleCellDimensionWithoutCellIdspublic SingleCellDimension getSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, QuantitationType qt, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) - Specified by:
- getSingleCellDimensionWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getPreferredSingleCellDimensionDescription copied from interface:ExpressionExperimentDaoObtain the preferred single cell dimension, that is the dimension associated to the preferred set of single-cell vectors.- Specified by:
- getPreferredSingleCellDimensionin interface- ExpressionExperimentDao
 
- 
getPreferredSingleCellDimensionWithoutCellIdsDescription copied from interface:ExpressionExperimentDaoLoad a single-cell dimension without its cell IDs.- Specified by:
- getPreferredSingleCellDimensionWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getPreferredSingleCellDimensionWithoutCellIdspublic SingleCellDimension getPreferredSingleCellDimensionWithoutCellIds(ExpressionExperiment ee, boolean includeBioAssays, boolean includeCtas, boolean includeClcs, boolean includeProtocol, boolean includeCharacteristics, boolean includeIndices) - Specified by:
- getPreferredSingleCellDimensionWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
createSingleCellDimensionpublic void createSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Description copied from interface:ExpressionExperimentDaoCreate a single-cell dimension for a given experiment.- Specified by:
- createSingleCellDimensionin interface- ExpressionExperimentDao
 
- 
updateSingleCellDimensionpublic void updateSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Description copied from interface:ExpressionExperimentDaoUpdate a single-cell dimensino for a given experiment.- Specified by:
- updateSingleCellDimensionin interface- ExpressionExperimentDao
 
- 
deleteSingleCellDimensionpublic void deleteSingleCellDimension(ExpressionExperiment ee, SingleCellDimension singleCellDimension) Description copied from interface:ExpressionExperimentDaoDelete the given single cell dimension.- Specified by:
- deleteSingleCellDimensionin interface- ExpressionExperimentDao
 
- 
streamCellIdsDescription copied from interface:ExpressionExperimentDaoStream the cell IDs of a dimension.- Specified by:
- streamCellIdsin interface- ExpressionExperimentDao
- Parameters:
- createNewSession- create a new session held by the stream, allowing to use the stream beyond the lifetime current session. If you set this to true, make absolutely sure that the resulting stream is closed.
- Returns:
- a stream of cell IDs, or null if the dimension is not found
 
- 
streamCellTypes- Specified by:
- streamCellTypesin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicsCategoryDescription copied from interface:ExpressionExperimentDaoObtain the category of a cell-level characteristic.This handles the case where the characteristics were not loaded (i.e. using ExpressionExperimentDao.getSingleCellDimensionsWithoutCellIds(ExpressionExperiment, boolean, boolean, boolean, boolean, boolean, boolean)).- Specified by:
- getCellLevelCharacteristicsCategoryin interface- ExpressionExperimentDao
 
- 
getCellTypeAtDescription copied from interface:ExpressionExperimentDaoObtain the cell type at a given cell index.- Specified by:
- getCellTypeAtin interface- ExpressionExperimentDao
 
- 
getCellTypeAtpublic Characteristic[] getCellTypeAt(CellTypeAssignment cta, int startIndex, int endIndexExclusive) - Specified by:
- getCellTypeAtin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicAtDescription copied from interface:ExpressionExperimentDaoObtain the characteristic at a given cell index.- Specified by:
- getCellLevelCharacteristicAtin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicAtpublic Characteristic[] getCellLevelCharacteristicAt(CellLevelCharacteristics clc, int startIndex, int endIndexExclusive) - Specified by:
- getCellLevelCharacteristicAtin interface- ExpressionExperimentDao
 
- 
streamCellLevelCharacteristicspublic Stream<Characteristic> streamCellLevelCharacteristics(CellLevelCharacteristics clc, boolean createNewSession) - Specified by:
- streamCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignments- Specified by:
- getCellTypeAssignmentsin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentspublic List<CellTypeAssignment> getCellTypeAssignments(ExpressionExperiment expressionExperiment, QuantitationType qt) - Specified by:
- getCellTypeAssignmentsin interface- ExpressionExperimentDao
 
- 
getPreferredCellTypeAssignmentDescription copied from interface:ExpressionExperimentDaoObtain the preferred assignment of the preferred single-cell vectors.- Specified by:
- getPreferredCellTypeAssignmentin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentpublic CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Description copied from interface:ExpressionExperimentDaoObtain a cell type assignment by ID.- Specified by:
- getCellTypeAssignmentin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentWithoutIndicespublic CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment expressionExperiment, QuantitationType qt, Long ctaId) Description copied from interface:ExpressionExperimentDaoObtain a cell type assignment by ID without loading the indices.- Specified by:
- getCellTypeAssignmentWithoutIndicesin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentpublic CellTypeAssignment getCellTypeAssignment(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Description copied from interface:ExpressionExperimentDaoObtain a cell type assignment by name.- Specified by:
- getCellTypeAssignmentin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentProtocolsDescription copied from interface:ExpressionExperimentDaoObtain all cell type assignment protocols currently used.- Specified by:
- getCellTypeAssignmentProtocolsin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentByProtocol@Nullable public Collection<CellTypeAssignment> getCellTypeAssignmentByProtocol(ExpressionExperiment ee, QuantitationType qt, String protocolName) - Specified by:
- getCellTypeAssignmentByProtocolin interface- ExpressionExperimentDao
 
- 
getCellTypeAssignmentWithoutIndicespublic CellTypeAssignment getCellTypeAssignmentWithoutIndices(ExpressionExperiment expressionExperiment, QuantitationType qt, String ctaName) Description copied from interface:ExpressionExperimentDaoObtain a cell type assignment by name without loading the indices.- Specified by:
- getCellTypeAssignmentWithoutIndicesin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicsDescription copied from interface:ExpressionExperimentDaoObtain all cell-level characteristics from all single cell dimensions.- Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicspublic List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment ee, Category category) Description copied from interface:ExpressionExperimentDaoObtain all cell-level characteristics from all single cell dimensions matching the given category.- Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicspublic CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, Long clcId) Description copied from interface:ExpressionExperimentDaoObtain a specific cell-level characteristic by ID.When using this method, no CellTypeAssignmentcan be returned as those are stored in a different table.- Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristics@Nullable public CellLevelCharacteristics getCellLevelCharacteristics(ExpressionExperiment ee, QuantitationType qt, String clcName) - Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicspublic List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt) - Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellLevelCharacteristicspublic List<CellLevelCharacteristics> getCellLevelCharacteristics(ExpressionExperiment expressionExperiment, QuantitationType qt, Category category) - Specified by:
- getCellLevelCharacteristicsin interface- ExpressionExperimentDao
 
- 
getCellTypes- Specified by:
- getCellTypesin interface- ExpressionExperimentDao
 
- 
getSingleCellQuantitationTypesDescription copied from interface:ExpressionExperimentDaoObtain a list of single-cell QTs.- Specified by:
- getSingleCellQuantitationTypesin interface- ExpressionExperimentDao
 
- 
hasSingleCellQuantitationTypesDescription copied from interface:ExpressionExperimentDaoIndicate if the given experiment has single-cell quantitation types.- Specified by:
- hasSingleCellQuantitationTypesin interface- ExpressionExperimentDao
 
- 
getSingleCellDataVectorspublic List<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) Description copied from interface:ExpressionExperimentDaoObtain a set of single-cell data vectors for the given quantitation type.- Specified by:
- getSingleCellDataVectorsin interface- ExpressionExperimentDao
 
- 
getSingleCellDataVectorspublic List<SingleCellExpressionDataVector> getSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, boolean includeCellIds, boolean includeData, boolean includeDataIndices) Description copied from interface:ExpressionExperimentDaoObtain a set of single-cell data vectors for the given quantitation type.- Specified by:
- getSingleCellDataVectorsin interface- ExpressionExperimentDao
 
- 
streamSingleCellDataVectorspublic Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession) Description copied from interface:ExpressionExperimentDaoObtain a stream over the vectors for a given QT.- Specified by:
- streamSingleCellDataVectorsin interface- ExpressionExperimentDao
- Parameters:
- fetchSize- number of vectors to fetch at once
- createNewSession- create a new session held by the stream. If you set this to true, make absolutely sure that the resulting stream is closed because it is attached to a- Sessionobject.
- See Also:
 
- 
streamSingleCellDataVectorspublic Stream<SingleCellExpressionDataVector> streamSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, int fetchSize, boolean useCursorFetchIfSupported, boolean createNewSession, boolean includeCellIds, boolean includeData, boolean includeDataIndices) - Specified by:
- streamSingleCellDataVectorsin interface- ExpressionExperimentDao
 
- 
getSingleCellDataVectorWithoutCellIdspublic SingleCellExpressionDataVector getSingleCellDataVectorWithoutCellIds(ExpressionExperiment ee, QuantitationType quantitationType, CompositeSequence designElement) - Specified by:
- getSingleCellDataVectorWithoutCellIdsin interface- ExpressionExperimentDao
 
- 
getNumberOfSingleCellDataVectorsDescription copied from interface:ExpressionExperimentDaoObtain the number of single-cell vectors for a given QT.- Specified by:
- getNumberOfSingleCellDataVectorsin interface- ExpressionExperimentDao
 
- 
getNumberOfNonZeroesDescription copied from interface:ExpressionExperimentDaoObtain the number of non-zeroes.- Specified by:
- getNumberOfNonZeroesin interface- ExpressionExperimentDao
 
- 
getNumberOfNonZeroesBySamplepublic Map<BioAssay,Long> getNumberOfNonZeroesBySample(ExpressionExperiment ee, QuantitationType qt, int fetchSize, boolean useCursorFetchIfSupported) Description copied from interface:ExpressionExperimentDaoObtain the number of non-zeroes by sample.This is quite costly because the indices of each vector has to be examined. - Specified by:
- getNumberOfNonZeroesBySamplein interface- ExpressionExperimentDao
 
- 
removeSingleCellDataVectorspublic int removeSingleCellDataVectors(ExpressionExperiment ee, QuantitationType quantitationType, boolean deleteQt) Description copied from interface:ExpressionExperimentDaoRemove the given single-cell data vectors.- Specified by:
- removeSingleCellDataVectorsin interface- ExpressionExperimentDao
- Parameters:
- quantitationType- quantitation to remove
- deleteQt- if true, detach the QT from the experiment and delete it TODO: add a replaceSingleCellDataVectors to avoid needing this
 
- 
removeAllSingleCellDataVectorsDescription copied from interface:ExpressionExperimentDaoRemove all single-cell data vectors and their quantitation types.- Specified by:
- removeAllSingleCellDataVectorsin interface- ExpressionExperimentDao
 
- 
getNumberOfDesignElementsPerSamplepublic Map<BioAssay,Long> getNumberOfDesignElementsPerSample(ExpressionExperiment expressionExperiment) - Specified by:
- getNumberOfDesignElementsPerSamplein interface- ExpressionExperimentDao
 
- 
getFilteringQueryDescription copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query for retrieving value objects after applying a set of filters and a given ordering.Note that if your implementation does not produce a ListofOwhenQuery.list()is invoked, you must overrideAbstractQueryFilteringVoEnabledDao.getValueObjectTransformer().The make the cached query (i.e. AbstractQueryFilteringVoEnabledDao.loadWithCache(Filters, Sort)behave the same, you also have to explicitly initialize any lazy relations inAbstractVoEnabledDao.doLoadValueObject(Identifiable)because the VO constructor will not initialize them.- Specified by:
- getFilteringQueryin class- AbstractQueryFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Returns:
- a Querythat produce a list ofO
 
- 
initializeCachedFilteringResultDescription copied from class:AbstractQueryFilteringVoEnabledDaoInitialize a result fromAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort)retrieved from the HibernateStandardQueryCache.Lazy-loaded relations that are fetched in AbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort)must be initialized manually in this method to ensure that the entity has all the expected fields if they are retrieved from the second-level cache.
- 
getFilteringIdQueryDescription copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query that will be used to retrieve IDs ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).
- 
getFilteringCountQueryDescription copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query that will be used to retrieve the size ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).- Overrides:
- getFilteringCountQueryin class- AbstractQueryFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>
- Returns:
- a Querywhich must return a singleLongvalue
 
- 
configureFilterablePropertiesprotected void configureFilterableProperties(AbstractFilteringVoEnabledDao<ExpressionExperiment, ExpressionExperimentValueObject>.FilterablePropertiesConfigurer configurer) Description copied from class:AbstractFilteringVoEnabledDaoRegister filterable properties.- Overrides:
- configureFilterablePropertiesin class- AbstractCuratableDao<ExpressionExperiment, ExpressionExperimentValueObject>
 
- 
getFilterablePropertyMetaprotected AbstractFilteringVoEnabledDao.FilterablePropertyMeta getFilterablePropertyMeta(String propertyName) Checks for special properties that are allowed to be referenced on certain objects. E.g. characteristics on EEs. Obtain various meta-information used to infer what to use in aFilterorSort.This is used by AbstractFilteringVoEnabledDao.getFilter(String, Filter.Operator, String)andFilteringDao.getSort(String, Sort.Direction, Sort.NullMode).Include filtering by lastUpdated,troubledandneedsAttentionfrom the associated curation details.- Overrides:
- getFilterablePropertyMetain class- AbstractCuratableDao<ExpressionExperiment, ExpressionExperimentValueObject>
- See Also:
 
- 
getRawDataVectorspublic Collection<RawExpressionDataVector> getRawDataVectors(ExpressionExperiment ee, QuantitationType qt) Description copied from interface:ExpressionExperimentDaoObtain raw vectors for a given experiment and QT.This is preferable to using ExpressionExperiment.getRawExpressionDataVectors()as it only loads vectors relevant to the given QT.- Specified by:
- getRawDataVectorsin interface- ExpressionExperimentDao
 
- 
getRawDataVectorspublic Collection<RawExpressionDataVector> getRawDataVectors(ExpressionExperiment ee, List<BioAssay> assays, QuantitationType qt) Description copied from interface:ExpressionExperimentDaoObtain a slice of the raw vectors for a given experiment and QT.- Specified by:
- getRawDataVectorsin interface- ExpressionExperimentDao
 
- 
addRawDataVectorspublic int addRawDataVectors(ExpressionExperiment ee, QuantitationType newQt, Collection<RawExpressionDataVector> newVectors) Description copied from interface:ExpressionExperimentDaoAdd raw data vectors with the given quantitation type.- Specified by:
- addRawDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the number of raw data vectors created
 
- 
removeAllRawDataVectorsDescription copied from interface:ExpressionExperimentDaoRemove all raw data vectors.All affected QTs are removed. - Specified by:
- removeAllRawDataVectorsin interface- ExpressionExperimentDao
 
- 
removeRawDataVectorspublic int removeRawDataVectors(ExpressionExperiment ee, QuantitationType qt, boolean keepDimension) Description copied from interface:ExpressionExperimentDaoRemove raw data vectors for a given quantitation type.Unused BioAssayDimensionare removed unless keepDimension is set totrue.- Specified by:
- removeRawDataVectorsin interface- ExpressionExperimentDao
- Parameters:
- keepDimension- keep the- BioAssayDimensionif it is not used by any other vectors. Use this only if you intend to reuse the dimension for another set of vectors. Alternatively,- ExpressionExperimentDao.replaceRawDataVectors(ExpressionExperiment, QuantitationType, Collection)can be used.
- Returns:
- the number of removed raw vectors
 
- 
replaceRawDataVectorspublic int replaceRawDataVectors(ExpressionExperiment ee, QuantitationType qt, Collection<RawExpressionDataVector> vectors) Description copied from interface:ExpressionExperimentDaoReplace raw data vectors for a given quantitation type.- Specified by:
- replaceRawDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the number of replaced raw vectors
 
- 
getProcessedDataVectorsDescription copied from interface:ExpressionExperimentDaoRetrieve the processed vector for an experiment.Unlike ExpressionExperiment.getProcessedExpressionDataVectors(), this is guaranteed to return only one set of vectors and will raise aNonUniqueResultExceptionif there is more than one processed QTs.- Specified by:
- getProcessedDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the processed vectors, or null if there are no processed vectors
- See Also:
 
- 
getProcessedDataVectorspublic Collection<ProcessedExpressionDataVector> getProcessedDataVectors(ExpressionExperiment ee, List<BioAssay> assays) Description copied from interface:ExpressionExperimentDaoRetrieve a slice of processed vectors for an experiment.- Specified by:
- getProcessedDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the processed vectors, or null if there are no processed vectors
 
- 
createProcessedDataVectorspublic int createProcessedDataVectors(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> vectors) Description copied from interface:ExpressionExperimentDaoAdd processed data vectorsThe number of vectors ExpressionExperiment.getNumberOfDataVectors()is updated.- Specified by:
- createProcessedDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the number of created processed vectors
 
- 
removeProcessedDataVectorsDescription copied from interface:ExpressionExperimentDaoRemove processed data vectors.Their corresponding QT is detached from the experiment and removed. The number of vectors (i.e. ExpressionExperiment.getNumberOfDataVectors()is set to zero. Unused dimensions are removed.- Specified by:
- removeProcessedDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the number of removed processed vectors
 
- 
replaceProcessedDataVectorspublic int replaceProcessedDataVectors(ExpressionExperiment ee, Collection<ProcessedExpressionDataVector> vectors) Description copied from interface:ExpressionExperimentDaoReplace processed data vectors.The QT is reused and the number of vectors ExpressionExperiment.getNumberOfDataVectors()is updated. Unused dimensions are removed.- Specified by:
- replaceProcessedDataVectorsin interface- ExpressionExperimentDao
- Returns:
- the number of vectors replaced
 
 
-