Constructor
new AbstractDataset(path, getter, lister)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
path |
string | Some kind of the path to the SummarizedExperiment. The exact interpretation of this argument is left to subclasses. |
getter |
function | A (possibly |
lister |
function | A (possibly |
Classes
Methods
clear()
- Description:
- Source:
(async) load(optionsopt) → {object}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Object containing the per-feature and per-cell annotations. This has the following properties:
features
: an object where each key is a modality name and each value is a DataFrame of per-feature annotations for that modality.cells
: a DataFrame containing per-cell annotations.matrix
: a MultiMatrix containing one ScranMatrix per modality.primary_ids
: an object where each key is a modality name and each value is an array (usually of strings) containing the primary feature identifiers for each row in that modality.
Modality names are guaranteed to be one of "RNA"
, "ADT"
or "CRISPR"
.
We assume that the instance already contains an appropriate mapping from the observed feature types to each expected modality,
either from the defaults
or with setOptions
.
- Type
- object
options() → {object}
- Source:
Returns:
Object containing all options used for loading.
- Type
- object
(async) previewPrimaryIds(optionsopt) → {object}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
An object where each key is a modality name and each value is an array (usually of strings) containing the primary feature identifiers for each row in that modality.
The contents are the same as the primary_ids
returned by load
but the order of values may be different.
- Type
- object
setOptions(options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Optional parameters that affect Properties
|
(async) summary(optionsopt) → {object}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Object containing the per-feature and per-cell annotations. This has the following properties:
modality_features
: an object where each key is a modality name and each value is a DataFrame of per-feature annotations for that modality.cells
: a DataFrame of per-cell annotations.modality_assay_names
: an object where each key is a modality name and each value is an Array containing the names of available assays for that modality. Unnamed assays are represented asnull
names.
- Type
- object
(static) defaults() → {object}
- Source:
Returns:
Default options, see setOptions
for more details.
- Type
- object