Class DifferentialExpressionAnalysisServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<DifferentialExpressionAnalysis>
ubic.gemma.persistence.service.analysis.expression.diff.DifferentialExpressionAnalysisServiceImpl
- All Implemented Interfaces:
AnalysisService<DifferentialExpressionAnalysis>,DifferentialExpressionAnalysisService,BaseImmutableService<DifferentialExpressionAnalysis>,BaseReadOnlyService<DifferentialExpressionAnalysis>,BaseService<DifferentialExpressionAnalysis>,SecurableBaseImmutableService<DifferentialExpressionAnalysis>,SecurableBaseReadOnlyService<DifferentialExpressionAnalysis>,SecurableBaseService<DifferentialExpressionAnalysis>
@Service
public class DifferentialExpressionAnalysisServiceImpl
extends AbstractService<DifferentialExpressionAnalysis>
implements DifferentialExpressionAnalysisService
- Author:
- paul, keshav
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDelete(DifferentialExpressionAnalysis differentialExpressionAnalysis) findByExperiment(ExpressionExperiment experiment, 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.voidremove(Collection<DifferentialExpressionAnalysis> entities) voidremove(DifferentialExpressionAnalysis toDelete) 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 class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, save, save, streamAll, streamAll, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseImmutableService
create, create, findOrCreateMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseService
save, save, update, update
-
Constructor Details
-
DifferentialExpressionAnalysisServiceImpl
@Autowired public DifferentialExpressionAnalysisServiceImpl(DifferentialExpressionAnalysisDao mainDao)
-
-
Method Details
-
loadWithExperimentAnalyzed
@Transactional(readOnly=true) public DifferentialExpressionAnalysis loadWithExperimentAnalyzed(Long id) - Specified by:
loadWithExperimentAnalyzedin interfaceDifferentialExpressionAnalysisService
-
findByFactor
@Transactional(readOnly=true) public Collection<DifferentialExpressionAnalysis> findByFactor(ExperimentalFactor ef) - Specified by:
findByFactorin interfaceDifferentialExpressionAnalysisService
-
findExperimentsWithAnalyses
- Specified by:
findExperimentsWithAnalysesin interfaceDifferentialExpressionAnalysisService
-
findByExperimentAndAnalysisId
@Transactional(readOnly=true) public DifferentialExpressionAnalysis findByExperimentAndAnalysisId(ExpressionExperiment expressionExperiment, boolean includeSubSets, Long analysisId) - Specified by:
findByExperimentAndAnalysisIdin interfaceDifferentialExpressionAnalysisService
-
thaw
@Transactional(readOnly=true) public Collection<DifferentialExpressionAnalysis> thaw(Collection<DifferentialExpressionAnalysis> expressionAnalyses) - Specified by:
thawin interfaceDifferentialExpressionAnalysisService
-
thaw
@Transactional(readOnly=true) public DifferentialExpressionAnalysis thaw(DifferentialExpressionAnalysis differentialExpressionAnalysis) - Specified by:
thawin interfaceDifferentialExpressionAnalysisService
-
thawFully
@Transactional(readOnly=true) public DifferentialExpressionAnalysis thawFully(DifferentialExpressionAnalysis differentialExpressionAnalysis) - Specified by:
thawFullyin interfaceDifferentialExpressionAnalysisService
-
canDelete
@Transactional(readOnly=true) public boolean canDelete(DifferentialExpressionAnalysis differentialExpressionAnalysis) - Specified by:
canDeletein interfaceDifferentialExpressionAnalysisService- Parameters:
differentialExpressionAnalysis- analysis- Returns:
- Is the analysis deleteable, or is it tied up with another entity that keeps it from being removed.
-
findByExperimentIds
@Transactional(readOnly=true) public Map<ExpressionExperimentDetailsValueObject,Collection<DifferentialExpressionAnalysisValueObject>> findByExperimentIds(Collection<Long> experimentIds, boolean includeSubSets, boolean includeAssays) Description copied from interface:DifferentialExpressionAnalysisServiceGiven 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.
- Specified by:
findByExperimentIdsin interfaceDifferentialExpressionAnalysisService- 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
-
remove
- Specified by:
removein interfaceBaseImmutableService<DifferentialExpressionAnalysis>- Specified by:
removein interfaceSecurableBaseImmutableService<DifferentialExpressionAnalysis>- Overrides:
removein classAbstractService<DifferentialExpressionAnalysis>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<DifferentialExpressionAnalysis>- Specified by:
removein interfaceSecurableBaseImmutableService<DifferentialExpressionAnalysis>- Overrides:
removein classAbstractService<DifferentialExpressionAnalysis>- See Also:
-
removeForExperiment
Description copied from interface:DifferentialExpressionAnalysisServiceRemoves all analyses for the given experiment- Specified by:
removeForExperimentin interfaceDifferentialExpressionAnalysisService- Parameters:
ee- the expriment to remove all analyses forincludeSubSets- also delete analyses of itsExpressionExperimentSubSet.
-
removeForExperimentAnalyzed
Description copied from interface:DifferentialExpressionAnalysisServiceRemove all analysis for the given experiment or subset.- Specified by:
removeForExperimentAnalyzedin interfaceDifferentialExpressionAnalysisService
-
removeForExperimentalFactor
Description copied from interface:DifferentialExpressionAnalysisServiceRemove analyses using the given factor.- Specified by:
removeForExperimentalFactorin interfaceDifferentialExpressionAnalysisService- Returns:
- the number of analysis removed
-
removeForExperimentalFactors
@Transactional public int removeForExperimentalFactors(Collection<ExperimentalFactor> experimentalFactors) - Specified by:
removeForExperimentalFactorsin interfaceDifferentialExpressionAnalysisService
-
findByExperiment
@Transactional(readOnly=true) public Collection<DifferentialExpressionAnalysis> findByExperiment(ExpressionExperiment experiment, boolean includeSubSets) - Specified by:
findByExperimentin interfaceDifferentialExpressionAnalysisService- Parameters:
experiment- experiment analyzedincludeSubSets- include analyses for itsExpressionExperimentSubSet- Returns:
- find all the analyses that involved the given investigation
-
findByExperiments
@Transactional(readOnly=true) public Map<ExpressionExperiment,Collection<DifferentialExpressionAnalysis>> findByExperiments(Collection<ExpressionExperiment> experiments, boolean includeSubSets) - Specified by:
findByExperimentsin interfaceDifferentialExpressionAnalysisService- Parameters:
experiments- investigationsincludeSubSets- include analyses for theirExpressionExperimentSubSet- Returns:
- analyses grouped by experiment, subset analyses are mapped to their source experiment
-
findByName
@Transactional(readOnly=true) public Collection<DifferentialExpressionAnalysis> findByName(String name) - Specified by:
findByNamein interfaceDifferentialExpressionAnalysisService
-
getExperimentsWithAnalysis
@Transactional(readOnly=true) public Collection<Long> getExperimentsWithAnalysis(Collection<Long> experimentIds, boolean includeSubSets) Description copied from interface:DifferentialExpressionAnalysisServiceObtain IDs of experiments that have analyses.Not secured: for internal use only
- Specified by:
getExperimentsWithAnalysisin interfaceDifferentialExpressionAnalysisService- Parameters:
experimentIds- starting list ofExpressionExperimentIDsincludeSubSets- include IDs of their subsets that have analyses- Returns:
- the ones which have an analysis
-