ModelGeneVariancesResults

ModelGeneVariancesResults

Wrapper for the variance modelling results, produced by modelGeneVar.

Classes

ModelGeneVariancesResults

Methods

fitted(optionsopt) → {Float64Array|Float64WasmArray}

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

Optional parameters.

Properties
Name Type Attributes Default Description
block number <optional>
<nullable>
null

Number of the block for which to extract statistics. If null, the average across all blocks is returned. Otherwise, should be less than the value returned by numberOfBlocks.

copy boolean <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy.

Returns:

Array of length equal to the number of genes, containing the fitted value of the mean-variance trend for the specified block (or the average across all blocks, if block == null). Alternatively null, if fillable = false and the array was not already filled.

Type
Float64Array | Float64WasmArray

free()

Source:
Returns:

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

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

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

Optional parameters.

Properties
Name Type Attributes Default Description
block number <optional>
<nullable>
null

Number of the block for which to extract statistics. If null, the average across all blocks is returned. Otherwise, should be less than the value returned by numberOfBlocks.

copy boolean <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy.

Returns:

Array of length equal to the number of genes, containing the mean log-expression across all cells in the specified block (or the average across all blocks, if block == null).

Type
Float64Array | Float64WasmArray

numberOfBlocks() → {number}

Source:
Returns:

Number of blocks used.

Type
number

residuals(optionsopt) → {Float64Array|Float64WasmArray}

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

Optional parameters.

Properties
Name Type Attributes Default Description
block number <optional>
<nullable>
null

Number of the block for which to extract statistics. If null, the average across all blocks is returned. Otherwise, should be less than the value returned by numberOfBlocks.

copy boolean <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy.

Returns:

Array of length equal to the number of genes, containing the residuals from the mean-variance trend for the specified block (or the average across all blocks, if block == null).

Type
Float64Array | Float64WasmArray

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

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

Optional parameters.

Properties
Name Type Attributes Default Description
block number <optional>
<nullable>
null

Number of the block for which to extract statistics. If null, the average across all blocks is returned. Otherwise, should be less than the value returned by numberOfBlocks.

copy boolean <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy.

Returns:

Array of length equal to the number of genes, containing the variance of log-expression across all cells in the specified block (or the average across all blocks, if block == null).

Type
Float64Array | Float64WasmArray