Interface ExpressionAnalysisResultSetDao
- All Superinterfaces:
AnalysisResultSetDao<DifferentialExpressionAnalysisResult,
,ExpressionAnalysisResultSet> BaseDao<ExpressionAnalysisResultSet>
,BaseVoEnabledDao<ExpressionAnalysisResultSet,
,DifferentialExpressionAnalysisResultSetValueObject> FilteringDao<ExpressionAnalysisResultSet>
,FilteringVoEnabledDao<ExpressionAnalysisResultSet,
DifferentialExpressionAnalysisResultSetValueObject>
- All Known Implementing Classes:
ExpressionAnalysisResultSetDaoImpl
public interface ExpressionAnalysisResultSetDao
extends AnalysisResultSetDao<DifferentialExpressionAnalysisResult,ExpressionAnalysisResultSet>, FilteringVoEnabledDao<ExpressionAnalysisResultSet,DifferentialExpressionAnalysisResultSetValueObject>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDelete
(DifferentialExpressionAnalysis differentialExpressionAnalysis) long
Count the number of results in a given result set.long
countResults
(ExpressionAnalysisResultSet ears, double threshold) Count the number of results in a given result set below a given corrected P-value threshold.findByBioAssaySetInAndDatabaseEntryInLimit
(Collection<BioAssaySet> bioAssaySets, Collection<DatabaseEntry> databaseEntries, Filters filters, int offset, int limit, Sort sort) Retrieve result sets associated to a set ofBioAssaySet
and external database entries.Retrieve the baseline for the given result set.getBaselinesForInteractions
(Collection<ExpressionAnalysisResultSet> resultSets, boolean initializeFactorValues) Retrieve baselines for all the given result sets representing factor interactions.getBaselinesForInteractionsByIds
(Collection<Long> ids, boolean initializeFactorValues) Retrieve baselines using result set IDs representing factor interactions.Obtain a histogram of the P-value distribution for a given result set.loadResultToGenesMap
(ExpressionAnalysisResultSet resultSet, boolean queryByResult) Load aDifferentialExpressionAnalysisResult
toGene
multi-map.loadValueObjectWithResults
(ExpressionAnalysisResultSet resultSet, boolean includeFactorValuesInContrasts, boolean queryGenesByResult, boolean includeTaxonInGenes) Load an analysis result set with its all of its associated results.Load an analysis result set with its all of its associated results.loadWithResultsAndContrasts
(Long id, double threshold, int offset, int limit) Load a slice of an analysis result set with a corrected P-value threshold.loadWithResultsAndContrasts
(Long id, int offset, int limit) Load a slice of an analysis result set.void
Initialize the analysis and subset factor vale.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
-
Method Details
-
loadWithResultsAndContrasts
Load an analysis result set with its all of its associated results.- Parameters:
id
- the ID of the analysis result set- Returns:
- the analysis result set with its associated results, or null if not found
-
loadWithResultsAndContrasts
Load a slice of an analysis result set.Results are sorted by ascending correct P-value.
- Parameters:
offset
- an offset of results to loadlimit
- a limit of results to load, or -1 to load all results starting at offset- See Also:
-
loadWithResultsAndContrasts
@Nullable ExpressionAnalysisResultSet loadWithResultsAndContrasts(Long id, double threshold, int offset, int limit) Load a slice of an analysis result set with a corrected P-value threshold.Important note: when using a threshold, results with null P-values will not be included, thus setting the threshold to
1.0
is not equivalent toloadWithResultsAndContrasts(Long, int, int)
.- Parameters:
threshold
- corrected P-value maximum threshold (inclusive)
-
canDelete
-
loadValueObjectWithResults
DifferentialExpressionAnalysisResultSetValueObject loadValueObjectWithResults(ExpressionAnalysisResultSet resultSet, boolean includeFactorValuesInContrasts, boolean queryGenesByResult, boolean includeTaxonInGenes) Load an analysis result set with its all of its associated results.- Parameters:
includeFactorValuesInContrasts
- include complete FV in the contrasts, only IDs are displayed if falsequeryGenesByResult
- query genes by results instead of result set, this is considerably faster if the results are sliced (i.e. fromloadWithResultsAndContrasts(Long, int, int)
)includeTaxonInGenes
- include complete taxon in the contrasts, only the ID is displayed if false- See Also:
-
loadResultToGenesMap
Map<Long,Set<Gene>> loadResultToGenesMap(ExpressionAnalysisResultSet resultSet, boolean queryByResult) Load aDifferentialExpressionAnalysisResult
toGene
multi-map.This is much faster than navigating through the probe's alignments, transcripts and then genes as it uses the internal GENE2CS table described in
TableMaintenanceUtil.updateGene2CsEntries()
.Note: Not all probes have associated genes, so you should use
Map.getOrDefault(Object, Object)
with an empty collection to handle this case.- Parameters:
queryByResult
- query by results instead of result set, this is considerably faster if the results are sliced (i.e. fromloadWithResultsAndContrasts(Long, int, int)
)
-
findByBioAssaySetInAndDatabaseEntryInLimit
Slice<DifferentialExpressionAnalysisResultSetValueObject> findByBioAssaySetInAndDatabaseEntryInLimit(@Nullable Collection<BioAssaySet> bioAssaySets, @Nullable Collection<DatabaseEntry> databaseEntries, @Nullable Filters filters, int offset, int limit, @Nullable Sort sort) Retrieve result sets associated to a set ofBioAssaySet
and external database entries.- Parameters:
bioAssaySets
- relatedBioAssaySet
, or any if nulldatabaseEntries
- related external identifier associated to theBioAssaySet
, or any if nullfilters
- filters for restricting resultslimit
- maximum number of results to returnsort
- field and direction by which the collection is ordered
-
thaw
Initialize the analysis and subset factor vale. -
countResults
Count the number of results in a given result set. -
countResults
Count the number of results in a given result set below a given corrected P-value threshold. -
getBaseline
Retrieve the baseline for the given result set.Factor values are always initialized.
- Returns:
- a baseline, or null if none could be determined for the given result set
-
getBaselinesForInteractions
Map<ExpressionAnalysisResultSet,Baseline> getBaselinesForInteractions(Collection<ExpressionAnalysisResultSet> resultSets, boolean initializeFactorValues) Retrieve baselines for all the given result sets representing factor interactions.- Parameters:
initializeFactorValues
- whether to initialize factor values
-
getBaselinesForInteractionsByIds
Map<Long,Baseline> getBaselinesForInteractionsByIds(Collection<Long> ids, boolean initializeFactorValues) Retrieve baselines using result set IDs representing factor interactions.- Parameters:
initializeFactorValues
- whether to initialize factor values
-
loadPvalueDistribution
Obtain a histogram of the P-value distribution for a given result set.
-