Interface ExpressionExperimentSubSetReadService
- All Known Implementing Classes:
ExpressionExperimentSubSetReadServiceImpl
ExpressionExperimentSubSet objects in the context of
a parent ExpressionExperiment.
Phase 3 of the ExpressionExperimentService decomposition (strangler fig). This
service houses the subset-retrieval cluster previously implemented directly on the
ExpressionExperimentServiceImpl facade: getSubSets*,
getSubSetById*, and the getSubSetsByFactorValue* variants. All methods
delegate to ExpressionExperimentDao (and occasionally call
Hibernate.initialize(Object) or Thaws for
eager-loading) with no orchestration of write-side collaborators.
Callers should generally keep using ExpressionExperimentService as the facade —
the facade delegates to this service. Direct injection is appropriate where a class would
otherwise create a Spring construction cycle through the heavier facade.
ACL / @Secured annotations live on ExpressionExperimentService (the
caller-facing facade interface); enforcement happens at the facade proxy boundary, so this
interface is intentionally unsecured.
This service also houses the read methods that used to live on
ExpressionExperimentSubSetService (the standalone subset CRUD service):
findByBioAssayIn(Collection), getFactorValuesUsed(ExpressionExperimentSubSet, ExperimentalFactor), getFactorValuesUsedAsVO(Long, Long),
getArrayDesignsUsed(ExpressionExperimentSubSet), loadSubSet(Long), loadSubSetWithBioAssays(Long). The
standalone ExpressionExperimentSubSetService now delegates these reads here, keeping
its facade ACL annotations in place.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByBioAssayIn(Collection<BioAssay> bioAssays) Find every subset that contains any of the supplied bio-assays.Obtain the array designs used by the assays in the subset.getFactorValuesUsed(ExpressionExperimentSubSet entity, ExperimentalFactor factor) Obtain theFactorValues used by samples in the given subset for the given factor.getFactorValuesUsedAsVO(Long subSetId, Long experimentalFactor) VO-form variant ofgetFactorValuesUsed(ExpressionExperimentSubSet, ExperimentalFactor)accepting plain IDs.getSubSetByIdWithCharacteristics(ExpressionExperiment ee, Long subSetId) Obtain a particular subset by ID, with characteristics initialized.Obtain a particular subset by ID, with characteristics initialized and assays thawed.getSubSets(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Obtain the subsets for a particular dimension.getSubSetsByDimension(ExpressionExperiment expressionExperiment) Obtain all the subsets organized by dimension for a given dataset.getSubSetsByDimensionWithBioAssays(ExpressionExperiment expressionExperiment) Obtain all the subsets organized by dimension for a given dataset, with assays thawed.getSubSetsByFactorValue(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment along all separating factors.getSubSetsByFactorValue(ExpressionExperiment expressionExperiment, ExperimentalFactor experimentalFactor, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment and factor.getSubSetsByFactorValueWithCharacteristicsAndBioAssays(ExpressionExperiment expressionExperiment, ExperimentalFactor experimentalFactor, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment and factor, with subset characteristics initialized and assays thawed.getSubSetsWithBioAssays(Collection<ExpressionExperiment> expressionExperiments) Batched variant: obtain subsets for every experiment in the input collection in a single query, keyed by source experiment.getSubSetsWithBioAssays(ExpressionExperiment expressionExperiment) Obtain all the subsets for a given dataset.getSubSetsWithBioAssays(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Obtain the subsets for a particular dimension, with assays lightly thawed.Obtain all the subsets for a given dataset, with characteristics initialized.loadSubSet(Long id) Load a subset by ID, without initializing collections.Load a subset by ID with its bio-assays initialized.
-
Method Details
-
getSubSetsWithBioAssays
Collection<ExpressionExperimentSubSet> getSubSetsWithBioAssays(ExpressionExperiment expressionExperiment) Obtain all the subsets for a given dataset. -
getSubSetsWithBioAssays
Map<ExpressionExperiment, Collection<ExpressionExperimentSubSet>> getSubSetsWithBioAssays(Collection<ExpressionExperiment> expressionExperiments) Batched variant: obtain subsets for every experiment in the input collection in a single query, keyed by source experiment. -
getSubSetsWithCharacteristics
Obtain all the subsets for a given dataset, with characteristics initialized. -
getSubSetsByDimension
Map<BioAssayDimension, Set<ExpressionExperimentSubSet>> getSubSetsByDimension(ExpressionExperiment expressionExperiment) Obtain all the subsets organized by dimension for a given dataset. -
getSubSetsByDimensionWithBioAssays
Map<BioAssayDimension, Set<ExpressionExperimentSubSet>> getSubSetsByDimensionWithBioAssays(ExpressionExperiment expressionExperiment) Obtain all the subsets organized by dimension for a given dataset, with assays thawed. -
getSubSets
Collection<ExpressionExperimentSubSet> getSubSets(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Obtain the subsets for a particular dimension. -
getSubSetsWithBioAssays
Collection<ExpressionExperimentSubSet> getSubSetsWithBioAssays(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Obtain the subsets for a particular dimension, with assays lightly thawed. -
getSubSetsByFactorValue
Map<ExperimentalFactor, Map<FactorValue, ExpressionExperimentSubSet>> getSubSetsByFactorValue(ExpressionExperiment expressionExperiment, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment along all separating factors. -
getSubSetsByFactorValue
@Nullable Map<FactorValue, ExpressionExperimentSubSet> getSubSetsByFactorValue(ExpressionExperiment expressionExperiment, ExperimentalFactor experimentalFactor, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment and factor. -
getSubSetsByFactorValueWithCharacteristicsAndBioAssays
@Nullable Map<FactorValue, ExpressionExperimentSubSet> getSubSetsByFactorValueWithCharacteristicsAndBioAssays(ExpressionExperiment expressionExperiment, ExperimentalFactor experimentalFactor, BioAssayDimension dimension) Reconstitute the FV-to-subset mapping for a given experiment and factor, with subset characteristics initialized and assays thawed. -
getSubSetByIdWithCharacteristics
@Nullable ExpressionExperimentSubSet getSubSetByIdWithCharacteristics(ExpressionExperiment ee, Long subSetId) Obtain a particular subset by ID, with characteristics initialized. -
getSubSetByIdWithCharacteristicsAndBioAssays
@Nullable ExpressionExperimentSubSet getSubSetByIdWithCharacteristicsAndBioAssays(ExpressionExperiment ee, Long subSetId) Obtain a particular subset by ID, with characteristics initialized and assays thawed. -
loadSubSet
Load a subset by ID, without initializing collections.- See Also:
-
loadSubSetWithBioAssays
Load a subset by ID with its bio-assays initialized.- See Also:
-
findByBioAssayIn
Find every subset that contains any of the supplied bio-assays.- See Also:
-
getFactorValuesUsed
Collection<FactorValue> getFactorValuesUsed(ExpressionExperimentSubSet entity, ExperimentalFactor factor) Obtain theFactorValues used by samples in the given subset for the given factor.- See Also:
-
getFactorValuesUsedAsVO
VO-form variant ofgetFactorValuesUsed(ExpressionExperimentSubSet, ExperimentalFactor)accepting plain IDs.- See Also:
-
getArrayDesignsUsed
Obtain the array designs used by the assays in the subset.- See Also:
-