Classes
Methods
applyFilter(Any) → {Array|TypedArray}
- Description:
Apply the same filter to an array of data for each cell in the unfiltered dataset. This is typically used to filter the columns of
InputsState.fetchCellAnnotations
for downstream use. (See theundoFilter
method for the reverse operation.) Any calls to this method should be done after runningcompute
.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
Any |
Array | TypedArray | array-like object of length equal to the number of cells in the unfiltered dataset. |
Returns:
An array-like object of the same type as x
,
where all elements corresponding to low-quality cells have been discarded.
This will have number of columns equal to that of fetchFilteredMatrix
.
- Type
- Array | TypedArray
compute(parameters)
- Description:
This method should not be called directly by users, but is instead invoked by
runAnalysis
.
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameter object, equivalent to the Properties
|
Returns:
The object is updated with the new results.
fetchDiscards() → (nullable) {Uint8WasmArray}
- Source:
Returns:
Combined discard vector, i.e., an array of length equal to the number of cells in the dataset,
indicating whether each cell should be removed.
This is available after running compute
.
Alternatively null
, if no upstream filtering steps were performed.
- Type
- Uint8WasmArray
fetchFilteredBlock() → {Int32WasmArray}
- Source:
Returns:
Array of length equal to the number of cells after filtering,
containing the block assignment for each cell.
This is available after running compute
.
Alternatively null
if no blocks are present in the dataset.
- Type
- Int32WasmArray
fetchFilteredMatrix() → {external:MultiMatrix}
- Source:
Returns:
A MultiMatrix object containing the filtered and normalized matrices for all modalities,
available after running compute
.
- Type
- external:MultiMatrix
fetchParameters() → {object}
- Source:
Returns:
Object containing the parameters.
- Type
- object
undoFilter(indices)
- Description:
Undo the effect of filtering on an array of column indices on the filtered matrix, so that they now refer to column indices on the unfiltered matrix. This is primarily useful for adjusting indices from downstream steps like
CustomSelectionsState.fetchSelectionIndices
. The output of this function can be combined withInputsState.undoSubset
to obtain column indices on the original matrix, which can be used in other contexts, e.g., likesubsetInputs
.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
indices |
Array | TypedArray | Array of column indices to the filtered matrix. Note that this will be modified in-place. |
Returns:
Entries of indices
are replaced with indices to the unfiltered matrix.