Classes
Members
availableReferences :object
- Description:
Available references for each species. Each key is a taxonomy ID and each value is an array of strings containing the names of references for that species.
- Source:
Available references for each species. Each key is a taxonomy ID and each value is an array of strings containing the names of references for that species.
Type:
- object
Methods
(async) 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.
computeLabels(x, optionsopt) → {object}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x |
external:ScranMatrix | external:ScoreMarkersResults | A matrix of (normalized or unnormalized) expression values, with genes in rows and cells/clusters in columns.
Alternatively, an object containing marker results, e.g., as computed by In both cases, the identity of genes should correspond to that in the upstream |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Object containing:
per_reference: an object where each key is the name of a reference dataset and its value is an array. Each array is of length equal to the number of columns ofx(if matrix), groups inx(if marker results), or groups ingroup. Each entry is an object containingbest, the name of the best label assigned to a column/group in this reference; andall, an object where each key is a label in this reference dataset and its value is the score for assigning that label to this column/group.- (optional)
integrated: an array of length equal to the number of columns/groups. Each entry is an object containingbest, the name of the best reference for this column/group; andall, an object where each key is the name of a reference dataset and its value is the score for this column/group. This property is only reported if multiple references are used. - (optional)
groups: an array of length equal to the number of groups, containing the identity of each group. Only reported if an inputgroupis supplied andxis a ScranMatrix.
- Type
- object
fetchNumberOfSharedFeatures() → {object}
- Source:
Returns:
Object where each key is the name of a reference and each value is the number of shared features between the test and reference daatasets.
- Type
- object
fetchParameters() → {object}
- Source:
Returns:
Object containing the parameters.
- Type
- object
fetchParameters() → {object}
- Source:
Returns:
Object containing the parameters.
- Type
- object
(static) defaults() → {object}
- Source:
Returns:
Object containing default parameters,
see the parameters argument in compute for details.
- Type
- object
(static) flush()
- Description:
Flush all cached references.
By default,
computewill cache the loaded references in a global cache for re-use across CellLabellingState instances. These cached references are not tied to any single instance and will not be removed by garbage collectors or byfreeAnalysis. Rather, this function should be called to release the relevant memory.
- Source:
(static) setDownload(fun)
- Description:
Specify a function to download references for the cell labelling step.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
fun |
function | Function that accepts a single string containing a URL and returns any value that can be used in the SimpleFile constructor. This is most typically a Uint8Array of that URL's contents, but it can also be a path to a locally cached file on Node.js. |
Returns:
fun is set as the global downloader for this step.
The previous value of the downloader is returned.