Interface PreprocessorHelperService
- All Known Implementing Classes:
PreprocessorHelperServiceImpl
public interface PreprocessorHelperService
Co-bean carrying the
processFor* diagnostic steps that
PreprocessorServiceImpl.processDiagnostics(ExpressionExperiment)
runs as part of the post-load preprocessing pipeline.
Hoisted out of PreprocessorServiceImpl so the methods can carry
@AuditedOnError declarations and be intercepted by Spring AOP --
private self-invoked methods on PreprocessorServiceImpl were
invisible to the proxy and could not be migrated off the imperative
addUpdateEvent(...) pattern in bucket 2e.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionIf possible, batch-correct the processed data vectors via ComBat.voidCompute and persist the mean-variance scatter used for the heteroscedasticity diagnostic plot.voidRun SVD / PCA for diagnostics.voidCompute and persist the sample-sample correlation matrix used for the diagnostic heatmap.
-
Method Details
-
batchCorrect
If possible, batch-correct the processed data vectors via ComBat. A successful run emits aBatchCorrectionEventvia the@Auditedaspect; the note records how many vectors were replaced. When the experiment is not batch-correctable, the method returns without writing a vector or an audit event.Hoisted out of
PreprocessorServiceImpl(where it lived asprivate void batchCorrect(ExpressionExperiment)and was self- invoked fromprocess()) so the call passes through a Spring proxy and the audit aspect can fire — bucket 2b ofAUDIT_PHASE_C_RECCE.md(inventory #3).- Returns:
- the number of processed vectors that were replaced by the
batch-corrected matrix, or
nullwhen the experiment is not batch-correctable (no audit event written in that case). The return value drives the@Auditednote viamessageSpel; callers may ignore it. - Throws:
PreprocessingException
-
processForMeanVarianceRelation
Compute and persist the mean-variance scatter used for the heteroscedasticity diagnostic plot. A failure emits aFailedMeanVarianceUpdateEventvia the audit aspect.- Throws:
PreprocessingException
-
processForPca
Run SVD / PCA for diagnostics. A failure emits aFailedPCAAnalysisEventvia the audit aspect.- Throws:
SVDRelatedPreprocessingException
-
processForSampleCorrelation
void processForSampleCorrelation(ExpressionExperiment ee) throws SampleCoexpressionRelatedPreprocessingException Compute and persist the sample-sample correlation matrix used for the diagnostic heatmap. A failure emits aFailedSampleCorrelationAnalysisEventvia the audit aspect.
-