Package ubic.gemma.core.analysis.report
Class ExpressionExperimentReportServiceImpl
java.lang.Object
ubic.gemma.core.analysis.report.ExpressionExperimentReportServiceImpl
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,ExpressionExperimentReportService
@Service("expressionExperimentReportService")
public class ExpressionExperimentReportServiceImpl
extends Object
implements ExpressionExperimentReportService, org.springframework.beans.factory.InitializingBean
Handles creation, serialization and/or marshaling of reports about expression experiments. Reports are stored in
ExpressionExperimentValueObjects.
- Author:
- jsantos, paul, klc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
evictFromCache
(Long id) Invalidate the cached 'report' for the experiment with the given id.generateSummary
(Long id) Generate a value object that contain summary information about links, biomaterials, and datavectorsGenerates reports on ALL experiments, including 'private' ones.void
Populate information about how many annotations there are, and how many factor values there are.void
Fills in event and security information from the database.void
Fills in link analysis and differential expression analysis summaries, and other info from the report.void
Recalculates the batch effect and batch confound information for the given dataset.retrieves a collection of cached value objects containing summary information
-
Constructor Details
-
ExpressionExperimentReportServiceImpl
public ExpressionExperimentReportServiceImpl()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
evictFromCache
Description copied from interface:ExpressionExperimentReportService
Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.- Specified by:
evictFromCache
in interfaceExpressionExperimentReportService
- Parameters:
id
- the id of the entity to evict
-
generateSummary
@Transactional(readOnly=true) public ExpressionExperimentDetailsValueObject generateSummary(Long id) Description copied from interface:ExpressionExperimentReportService
Generate a value object that contain summary information about links, biomaterials, and datavectors- Specified by:
generateSummary
in interfaceExpressionExperimentReportService
- Parameters:
id
- the id of the ee to generate summary for- Returns:
- details VO
-
generateSummaryObjects
@Transactional(propagation=NEVER) public Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects()Description copied from interface:ExpressionExperimentReportService
Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it takes a while to run.- Specified by:
generateSummaryObjects
in interfaceExpressionExperimentReportService
-
getAnnotationInformation
@Transactional(readOnly=true) public void getAnnotationInformation(Collection<ExpressionExperimentDetailsValueObject> vos) Populate information about how many annotations there are, and how many factor values there are. Batch is not counted towards the number of factors- Specified by:
getAnnotationInformation
in interfaceExpressionExperimentReportService
-
populateEventInformation
@Transactional(readOnly=true) public void populateEventInformation(Collection<ExpressionExperimentDetailsValueObject> vos) Fills in event and security information from the database. This will only retrieve the latest event (if any). This is rather slow so should be avoided if the information isn't needed.- Specified by:
populateEventInformation
in interfaceExpressionExperimentReportService
-
populateReportInformation
@Transactional(readOnly=true) public void populateReportInformation(Collection<ExpressionExperimentDetailsValueObject> vos) Description copied from interface:ExpressionExperimentReportService
Fills in link analysis and differential expression analysis summaries, and other info from the report.- Specified by:
populateReportInformation
in interfaceExpressionExperimentReportService
- Parameters:
vos
- value objects
-
retrieveSummaryObjects
@Transactional(readOnly=true) public Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects(Collection<Long> ids) Description copied from interface:ExpressionExperimentReportService
retrieves a collection of cached value objects containing summary information- Specified by:
retrieveSummaryObjects
in interfaceExpressionExperimentReportService
- Parameters:
ids
- the ids of ees for which the summary objects should be retrieved.- Returns:
- a collection of cached value objects
-
recalculateExperimentBatchInfo
Description copied from interface:ExpressionExperimentReportService
Recalculates the batch effect and batch confound information for the given dataset.- Specified by:
recalculateExperimentBatchInfo
in interfaceExpressionExperimentReportService
- Parameters:
ee
- the experiment to recalculate the batch properties for.
-