Class DatasetsWebService.SampleCorrelationMatrixValueObject
java.lang.Object
ubic.gemma.rest.DatasetsWebService.SampleCorrelationMatrixValueObject
- Enclosing class:
DatasetsWebService
Wire shape for
DatasetsWebService.getDatasetSampleCorrelation(DatasetArg, DatasetsWebService.CorrelationMatrixChoice): a symmetric N×N Pearson correlation
matrix with bioAssay ids + short names parallel to the rows/columns.- Author:
- tesarst
-
Constructor Summary
ConstructorsConstructorDescriptionSampleCorrelationMatrixValueObject(DoubleMatrix<BioAssay, BioAssay> matrix, String matrixKind, Set<Long> actualOutlierIds, Set<Long> predictedOutlierIds) -
Method Summary
Modifier and TypeMethodDescriptionbooleanLong[]BioAssay ids the curator has explicitly flagged as outliers (BioAssay.getIsOutlier()).Long[]BioAssay ids in the order the rows / columns ofvaluesappear.String[]BioAssay short names parallel tobioAssayIds, for axis labels.Currently alwaysnull; placeholder for a probe-filter caption onceSampleCoexpressionAnalysisServicesurfaces it.Which stored matrix this is:"regressed"(major factors regressed out) or"full"(none regressed).Currently always"pearson"— Gemma's only supported correlation method here.Long[]BioAssay ids the median-correlation algorithm flags as outliers (OutlierDetectionService.getOutlierDetails(ExpressionExperiment)).double[][]Symmetric, row-major, N×N Pearson correlation matrix.inthashCode()toString()
-
Constructor Details
-
SampleCorrelationMatrixValueObject
-
-
Method Details
-
getBioAssayIds
BioAssay ids in the order the rows / columns ofvaluesappear. -
getBioAssayShortNames
BioAssay short names parallel tobioAssayIds, for axis labels. Entries may be null for assays whose name has not been set. -
getValues
public double[][] getValues()Symmetric, row-major, N×N Pearson correlation matrix.values[i][j]is the correlation in [-1, 1] between the i'th and j'th bioAssay. Always sent UNMASKED — the UI applies any outlier-driven masking interactively. -
getActualOutlierBioAssayIds
BioAssay ids the curator has explicitly flagged as outliers (BioAssay.getIsOutlier()). -
getPredictedOutlierBioAssayIds
BioAssay ids the median-correlation algorithm flags as outliers (OutlierDetectionService.getOutlierDetails(ExpressionExperiment)). May overlap withactualOutlierBioAssayIdsor stand alone. -
getMatrix
Which stored matrix this is:"regressed"(major factors regressed out) or"full"(none regressed). A caller asking forbestgets one or the other and this is how it tells. -
getFilterDescription
Currently alwaysnull; placeholder for a probe-filter caption onceSampleCoexpressionAnalysisServicesurfaces it. -
getMethod
Currently always"pearson"— Gemma's only supported correlation method here. -
equals
-
hashCode
-
toString
-