Classes
Methods
allDetected(optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the product of the number of genes and groups.
This can be treated as a column-major matrix where the rows are the genes and the columns are the groups,
and each element contains the number of detected cells for the corresponding gene in the corresponding group.
If average = true
in aggregateAcrossCells
, each element is the proportion of detected cells instead.
If buffer
is supplied, the function returns buffer
if asTypedArray = false
, or a view on buffer
if asTypedArray = true
.
- Type
- Float64Array | Float64WasmArray
allSums(optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the product of the number of genes and groups.
This can be treated as a column-major matrix where the rows are the genes and the columns are the groups,
and each element is the sum of values for the corresponding gene in the corresponding group.
If average = true
in aggregateAcrossCells
, each element is the mean value instead.
If buffer
is supplied, the function returns buffer
if asTypedArray = false
, or a view on buffer
if asTypedArray = true
.
- 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.
groupDetected(group, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
group |
number | Index of the group.
This should be non-negative and less than |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the number of genes, containing the number of cells with detected expression for each gene in the specified group
.
If average = true
in aggregateAcrossCells
, each element is the proportion of detected cells instead.
- Type
- Float64Array | Float64WasmArray
groupSums(group, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
group |
number | Index of the group.
This should be non-negative and less than |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the number of genes, containing the per-gene sum of values across across all cells in the specified group
.
If average = true
in aggregateAcrossCells
, each element is the mean value instead.
- Type
- Float64Array | Float64WasmArray
numberOfGenes() → {number}
- Source:
Returns:
Number of genes.
- Type
- number
numberOfGroups() → {number}
- Source:
Returns:
Number of groups.
- Type
- number