Interface DifferentialExpressionAnalysisService
- All Superinterfaces:
AnalysisService<DifferentialExpressionAnalysis>, BaseImmutableService<DifferentialExpressionAnalysis>, BaseReadOnlyService<DifferentialExpressionAnalysis>, BaseService<DifferentialExpressionAnalysis>, SecurableBaseImmutableService<DifferentialExpressionAnalysis>, SecurableBaseReadOnlyService<DifferentialExpressionAnalysis>, SecurableBaseService<DifferentialExpressionAnalysis>
- All Known Implementing Classes:
DifferentialExpressionAnalysisServiceImpl
public interface DifferentialExpressionAnalysisService
extends AnalysisService<DifferentialExpressionAnalysis>, SecurableBaseService<DifferentialExpressionAnalysis>
Service interface for
DifferentialExpressionAnalysis.
The methods here have two flavours: by experiments, which is always an ExpressionExperiment and by experiment
analyzed which is either a ExpressionExperiment or ExpressionExperimentSubSet.
- Author:
- kelsey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanDelete(DifferentialExpressionAnalysis differentialExpressionAnalysis) findByExperiment(ExpressionExperiment experimentAnalyzed, boolean includeSubSets) findByExperimentAndAnalysisId(ExpressionExperiment expressionExperiment, boolean includeSubSets, Long analysisId) findByExperimentIds(Collection<Long> experimentIds, boolean includeSubSets, boolean includeAssays) Given a set of ids, find experiments or subsets that have differential expression analyses.findByExperiments(Collection<ExpressionExperiment> experiments, boolean includeSubSets) findByName(String name) getExperimentsWithAnalysis(Collection<Long> experimentIds, boolean includeSubSets) Obtain IDs of experiments that have analyses.voidremoveForExperiment(ExpressionExperiment ee, boolean includeSubSets) Removes all analyses for the given experimentintremoveForExperimentalFactor(ExperimentalFactor experimentalFactor) Remove analyses using the given factor.intremoveForExperimentalFactors(Collection<ExperimentalFactor> experimentalFactors) voidremoveForExperimentAnalyzed(BioAssaySet experimentAnalyzed) Remove all analysis for the given experiment or subset.thaw(Collection<DifferentialExpressionAnalysis> expressionAnalyses) thaw(DifferentialExpressionAnalysis differentialExpressionAnalysis) thawFully(DifferentialExpressionAnalysis differentialExpressionAnalysis) Methods inherited from interface BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface SecurableBaseImmutableService
create, create, findOrCreate, remove, removeMethods inherited from interface SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface SecurableBaseService
save, save, update, update
-
Method Details
-
loadWithExperimentAnalyzed
-
findByName
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<DifferentialExpressionAnalysis> findByName(String name) -
findByFactor
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Collection<DifferentialExpressionAnalysis> findByFactor(ExperimentalFactor ef) -
findExperimentsWithAnalyses
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<BioAssaySet> findExperimentsWithAnalyses(Gene gene) -
findByExperimentAndAnalysisId
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) @PostAuthorize("returnObject == null or hasPermission(returnObject, 'READ') or hasPermission(returnObject, 'ADMINISTRATION')") DifferentialExpressionAnalysis findByExperimentAndAnalysisId(ExpressionExperiment expressionExperiment, boolean includeSubSets, Long analysisId) -
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_COLLECTION_READ"}) Collection<DifferentialExpressionAnalysis> thaw(Collection<DifferentialExpressionAnalysis> expressionAnalyses) -
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) DifferentialExpressionAnalysis thaw(DifferentialExpressionAnalysis differentialExpressionAnalysis) -
thawFully
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) DifferentialExpressionAnalysis thawFully(DifferentialExpressionAnalysis differentialExpressionAnalysis) -
canDelete
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) boolean canDelete(DifferentialExpressionAnalysis differentialExpressionAnalysis) - Parameters:
differentialExpressionAnalysis- analysis- Returns:
- Is the analysis deleteable, or is it tied up with another entity that keeps it from being removed.
-
findByExperimentIds
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_VALUE_OBJECT_MAP_READ"}) Map<ExpressionExperimentDetailsValueObject, Collection<DifferentialExpressionAnalysisValueObject>> findByExperimentIds(Collection<Long> experimentIds, boolean includeSubSets, boolean includeAssays) Given a set of ids, find experiments or subsets that have differential expression analyses.Subsets are handled two ways: if the ID given is of a subset, or if the ID is of an experiment that has subsets. In the latter case, the return value will contain experiments that were not explicitly queried for.
- Parameters:
experimentIds- ofExpressionExperimentincludeSubSets- include analysis of subsets of the requested experimentsincludeAssays- include assay information in the value objects- Returns:
- map of detailed EE VOs to analyses VOs for each, subset analyses are mapped to their source experiment
-
removeForExperimentalFactor
Remove analyses using the given factor.- Returns:
- the number of analysis removed
-
removeForExperimentalFactors
-
findByExperiment
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<DifferentialExpressionAnalysis> findByExperiment(ExpressionExperiment experimentAnalyzed, boolean includeSubSets) - Parameters:
experimentAnalyzed- experiment analyzedincludeSubSets- include analyses for itsExpressionExperimentSubSet- Returns:
- find all the analyses that involved the given investigation
-
findByExperiments
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_COLLECTION_READ"}) @PostFilter("hasPermission(filterObject.key, 'READ') or hasPermission(filterObject.key, 'ADMINISTRATION')") Map<ExpressionExperiment, Collection<DifferentialExpressionAnalysis>> findByExperiments(Collection<ExpressionExperiment> experiments, boolean includeSubSets) - Parameters:
experiments- investigationsincludeSubSets- include analyses for theirExpressionExperimentSubSet- Returns:
- analyses grouped by experiment, subset analyses are mapped to their source experiment
-
getExperimentsWithAnalysis
Obtain IDs of experiments that have analyses.Not secured: for internal use only
- Parameters:
experimentIds- starting list ofExpressionExperimentIDsincludeSubSets- include IDs of their subsets that have analyses- Returns:
- the ones which have an analysis
-
removeForExperiment
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeForExperiment(ExpressionExperiment ee, boolean includeSubSets) Removes all analyses for the given experiment- Parameters:
ee- the expriment to remove all analyses forincludeSubSets- also delete analyses of itsExpressionExperimentSubSet.
-
removeForExperimentAnalyzed
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeForExperimentAnalyzed(BioAssaySet experimentAnalyzed) Remove all analysis for the given experiment or subset.
-