Classes
Methods
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 state is updated with new results.
computeVersus(left, right) → {object}
- Description:
Extract markers for a pairwise comparison between two clusters for more detailed examination of the differences between them. It is assumed that
runAnalysis
was already run on this MarkerDetectionState instance before calling this method.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
left |
number | Index of one cluster in which to find upregulated markers. |
right |
number | Index of another cluster to be compared against |
Returns:
Object containing:
results
: object containing the marker statistics for the comparison between two clusters. Each key is a modality name and each value is a ScoreMarkersResults object.left
: index of the group corresponding to theleft
cluster in each ScoreMarkersResults object, e.g., Cohen's d for the RNA markers of theleft
cluster are defined asoutput.results.RNA.cohen(output.left)
.right
: index of the group corresponding to theright
cluster in each ScoreMarkersResults object. e.g., Cohen's d for the RNA markers of theleft
cluster are defined asoutput.results.RNA.cohen(output.right)
.
- Type
- object
fetchParameters() → {object}
- Description:
Parameters used to compute the results. It is assumed that
runAnalysis
was already run on this MarkerDetectionState instance before calling this method.
- Source:
Returns:
Object containing the parameters.
- Type
- object
fetchResults() → {object}
- Description:
Obtain the marker detection results for all modalities. It is assumed that
runAnalysis
was already run on this MarkerDetectionState instance before calling this method.
- Source:
Returns:
Object where each key is a modality name and each value is an ScoreMarkerResults object, containing marker detection statistics for all clusters.
- Type
- object
free()
- Description:
Frees all resources associated with this instance.
- Source:
(static) defaults() → {object}
- Source:
Returns:
Default parameters that may be modified and fed into compute
.
- Type
- object