Record Class SampleCorrelationAnalysisPayload
- All Implemented Interfaces:
AuditEventPayload
SampleCorrelationAnalysisEvent writes: the
row-and-column attrition of the expression matrix as each filter was
applied, plus the filter configuration that produced it.
Why this event carries it
Filtering is not a step of preprocessing and is not stored on the
experiment. ExpressionExperimentFilterConfig is built fresh at each
callsite and ExpressionExperimentFilterResult was, until this
payload, computed and discarded. The sample-correlation leg is where the
filter runs during every preprocessing run, so recording the result here
costs no extra work and no extra audit event.
🛑 These numbers describe the sample-correlation filter, not the download filter
The "Data (filtered)" download builds its own config with different
settings, so its attrition can differ — most visibly through
requireSequences, which drops rows. That is why config is
serialised alongside stages: the numbers are only interpretable
against the settings that produced them, and a reader who has only the
counts will assume they describe every filtered view of the dataset.
Written only from the run that computes the matrix. Datasets whose
correlation matrix predates this payload carry null, which means
"not recorded", never "nothing was filtered".
🛑 dataSource is how two matrices that disagree explain themselves
There are two ways this matrix gets its data, and they are not interchangeable.
unmasked-rebuild reprocesses the raw vectors from scratch so a flagged outlier's values are present
— quantile normalization included, against whatever set of rows that rebuild covered.
stored-vectors filters the processed data as stored, which was normalized at some earlier time
against whatever rows existed then. The numbers differ between the two, immaterially for a sample-sample
correlation and not at all interpretably if you do not know which you are holding.
Nothing on SAMPLE_COEXPRESSION_MATRIX records this, and it cannot be recovered from the matrix
afterwards: it is a fact about how the bytes were made, knowable only at write time. So it is recorded here,
beside startingRows, which gives the width the rebuild covered. Matrices written before this field
existed carry null, meaning "not recorded", never "stored-vectors".
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe settings the filter ran under.static final recordOne rung of the attrition funnel, in the order the filters ran.Nested classes/interfaces inherited from interface AuditEventPayload
AuditEventPayload.None -
Constructor Summary
ConstructorsConstructorDescriptionSampleCorrelationAnalysisPayload(SampleCorrelationAnalysisPayload.FilterConfig config, List<SampleCorrelationAnalysisPayload.FilterStage> stages, int startingRows, int startingColumns, int finalRows, int finalColumns, String dataSource) Creates an instance of aSampleCorrelationAnalysisPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.Returns the value of thedataSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefinalColumnsrecord component.intReturns the value of thefinalRowsrecord component.final inthashCode()Returns a hash code value for this object.stages()Returns the value of thestagesrecord component.intReturns the value of thestartingColumnsrecord component.intReturns the value of thestartingRowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SampleCorrelationAnalysisPayload
public SampleCorrelationAnalysisPayload(@Nullable SampleCorrelationAnalysisPayload.FilterConfig config, List<SampleCorrelationAnalysisPayload.FilterStage> stages, int startingRows, int startingColumns, int finalRows, int finalColumns, @Nullable String dataSource) Creates an instance of aSampleCorrelationAnalysisPayloadrecord class.- Parameters:
config- the value for theconfigrecord componentstages- the value for thestagesrecord componentstartingRows- the value for thestartingRowsrecord componentstartingColumns- the value for thestartingColumnsrecord componentfinalRows- the value for thefinalRowsrecord componentfinalColumns- the value for thefinalColumnsrecord componentdataSource- the value for thedataSourcerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
stages
Returns the value of thestagesrecord component.- Returns:
- the value of the
stagesrecord component
-
startingRows
public int startingRows()Returns the value of thestartingRowsrecord component.- Returns:
- the value of the
startingRowsrecord component
-
startingColumns
public int startingColumns()Returns the value of thestartingColumnsrecord component.- Returns:
- the value of the
startingColumnsrecord component
-
finalRows
public int finalRows()Returns the value of thefinalRowsrecord component.- Returns:
- the value of the
finalRowsrecord component
-
finalColumns
public int finalColumns()Returns the value of thefinalColumnsrecord component.- Returns:
- the value of the
finalColumnsrecord component
-
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-