SuggestCrisprQcFiltersResults

SuggestCrisprQcFiltersResults

Wrapper class for the filtering results, produced by computeSuggestCrisprQcFilters.

Classes

SuggestCrisprQcFiltersResults

Methods

filter(metrics, optionsopt) → {Uint8Array}

Source:
Parameters:
Name Type Attributes Default Description
metrics PerCellCrisprQcMetricsResults

Per-cell QC metrics, usually computed by perCellCrisprQcMetrics.

options object <optional>
{}

Optional parameters.

Properties
Name Type Attributes Default Description
block Int32WasmArray | Array | TypedArray <optional>
<nullable>
null

Array containing the block assignment for each cell in metrics. This should have length equal to the number of cells and contain all values in [0, n) where n is the return value of numberOfBlocks.

Alternatively, this may be null, in which case all cells are assumed to be in the same block. This will raise an error if multiple blocks were used to compute the thresholds.

buffer Uint8WasmArray <optional>
<nullable>
null

Array of length equal to the number of cells in metrics, to be used to store the low-quality calls.

Returns:

Array of length equal to the number of cells in metrics. Each entry is truthy if the corresponding cell is deemed to be of low-quality based on its values in metrics. If buffer is supplied, the returned array is a view on buffer.

Type
Uint8Array

free()

Source:
Returns:

Frees the memory allocated on the Wasm heap for this object. This invalidates this object and all references to it.

numberOfBlocks() → {number}

Source:
Returns:

Number of blocks in this object.

Type
number

thresholdsMaxCount(optionsopt) → (nullable) {Float64Array|Float64WasmArray}

Source:
Parameters:
Name Type Attributes Default Description
options object <optional>
{}

Optional parameters.

Properties
Name Type Attributes Default Description
copy boolean <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy. This should be set to false or "view" to modify entries, e.g., after calling creating an instance with emptySuggestCrisprQcFiltersResults.

Returns:

Array containing the filtering threshold on the maximum count in each batch.

Type
Float64Array | Float64WasmArray