Class SingleCellExpressionDataVectorUtils
- java.lang.Object
-
- ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVectorUtils
-
public class SingleCellExpressionDataVectorUtils extends Object
Utilities for working withSingleCellExpressionDataVector
.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description SingleCellExpressionDataVectorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Consumer<SingleCellExpressionDataVector>
createStreamMonitor(String logCategory, long numVecs)
static double[]
getSampleDataAsDoubles(SingleCellExpressionDataVector vector, int sampleIndex)
Obtain the data of a sample.static double[]
getSampleDataAsDoubles(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
Obtain the data of a sample.static double[]
getSampleDataAsDoubles(SingleCellExpressionDataVector vector, BioAssay sample)
static float[]
getSampleDataAsFloats(SingleCellExpressionDataVector vector, int sampleIndex)
Obtain the data of a sample.static float[]
getSampleDataAsFloats(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
Obtain the data of a sample.static int[]
getSampleDataAsInts(SingleCellExpressionDataVector vector, int sampleIndex)
static int[]
getSampleDataAsInts(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
static long[]
getSampleDataAsLongs(SingleCellExpressionDataVector vector, int sampleIndex)
static long[]
getSampleDataAsLongs(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
static int
getSampleEnd(SingleCellDimension dimension, int[] dataIndices, int sampleIndex, int after)
Only exposed for internal use, prefergetSampleEnd(SingleCellExpressionDataVector, int, int)
.static int
getSampleEnd(SingleCellExpressionDataVector vector, int sampleIndex, int after)
Get the *exclusive* index of the last cell for a given sample.static int
getSampleEnd(SingleCellExpressionDataVector vector, BioAssay sample)
static int
getSampleEnd(SingleCellExpressionDataVector vector, BioAssay sample, int after)
static int
getSampleStart(SingleCellExpressionDataVector vector, int sampleIndex, int after)
Get the index of the first cell for a given sample.static int
getSampleStart(SingleCellExpressionDataVector vector, BioAssay sample)
static int
getSampleStart(SingleCellExpressionDataVector vector, BioAssay sample, int after)
-
-
-
Method Detail
-
getSampleStart
public static int getSampleStart(SingleCellExpressionDataVector vector, BioAssay sample)
-
getSampleStart
public static int getSampleStart(SingleCellExpressionDataVector vector, BioAssay sample, int after)
-
getSampleStart
public static int getSampleStart(SingleCellExpressionDataVector vector, int sampleIndex, int after)
Get the index of the first cell for a given sample.- Parameters:
vector
- vectorsampleIndex
- index of the sample in the single-cell dimension, seeSingleCellDimension#getBioAssays()
after
- starting position for the search
-
getSampleEnd
public static int getSampleEnd(SingleCellExpressionDataVector vector, BioAssay sample)
-
getSampleEnd
public static int getSampleEnd(SingleCellExpressionDataVector vector, BioAssay sample, int after)
-
getSampleEnd
public static int getSampleEnd(SingleCellExpressionDataVector vector, int sampleIndex, int after)
Get the *exclusive* index of the last cell for a given sample.- Parameters:
vector
- vectorsampleIndex
- index of the sample in the single-cell dimension, seeSingleCellDimension#getBioAssays()
after
- starting position for the search, if you previously calledgetSampleStart(SingleCellExpressionDataVector, int, int)
, you should use this value here to save some time
-
getSampleEnd
public static int getSampleEnd(SingleCellDimension dimension, int[] dataIndices, int sampleIndex, int after)
Only exposed for internal use, prefergetSampleEnd(SingleCellExpressionDataVector, int, int)
.
-
getSampleDataAsDoubles
public static double[] getSampleDataAsDoubles(SingleCellExpressionDataVector vector, BioAssay sample)
-
getSampleDataAsFloats
public static float[] getSampleDataAsFloats(SingleCellExpressionDataVector vector, int sampleIndex)
Obtain the data of a sample.
-
getSampleDataAsDoubles
public static double[] getSampleDataAsDoubles(SingleCellExpressionDataVector vector, int sampleIndex)
Obtain the data of a sample.
-
getSampleDataAsInts
public static int[] getSampleDataAsInts(SingleCellExpressionDataVector vector, int sampleIndex)
-
getSampleDataAsLongs
public static long[] getSampleDataAsLongs(SingleCellExpressionDataVector vector, int sampleIndex)
-
getSampleDataAsFloats
public static float[] getSampleDataAsFloats(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
Obtain the data of a sample.
-
getSampleDataAsDoubles
public static double[] getSampleDataAsDoubles(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
Obtain the data of a sample.
-
getSampleDataAsInts
public static int[] getSampleDataAsInts(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
-
getSampleDataAsLongs
public static long[] getSampleDataAsLongs(SingleCellExpressionDataVector vector, int sampleIndex, CellLevelCharacteristics cellLevelCharacteristics, int row)
-
createStreamMonitor
public static Consumer<SingleCellExpressionDataVector> createStreamMonitor(String logCategory, long numVecs)
-
-