Constructor
new ZippedAlabasterDataset(prefix, zipfile, optionsopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prefix |
string | Name of the SummarizedExperiment object inside the ZIP file.
This should be |
||||||||||||
zipfile |
SimpleFile | string | File | Contents of the ZIP file containing the project directory. On browsers, this may be a File object. On Node.js, this may also be a string containing a file path. |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Extends
Classes
Methods
abbreviate() → {object}
- Source:
Returns:
Object containing the abbreviated details of this dataset.
- Type
- object
clear()
- Description:
- Source:
- Overrides:
(async) load(optionsopt) → {object}
- Source:
- Overrides:
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:
- Overrides:
Returns:
Object containing all options used for loading.
- Type
- object
(async) previewPrimaryIds(optionsopt) → {object}
- Source:
- Overrides:
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.
If the main experiment is unnamed, its modality name is set to an empty string. If the main experiment's name is the same as any alternative experiment name, the former will be reported in the returned object.
- Type
- object
serialize() → {object}
- Source:
Returns:
Object describing this dataset, containing:
files
: Array of objects representing the files used in this dataset. Each object corresponds to a single file and contains:type
: a string denoting the type.file
: a SimpleFile object representing the file contents.
options
: An object containing additional options to saved.
- Type
- object
setOptions(options)
- Source:
- Overrides:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Optional parameters that affect Properties
|
(async) summary(optionsopt) → {object}
- Source:
- Overrides:
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.
If the main experiment is unnamed, its modality name is set to an empty string. If the main experiment's name is the same as any alternative experiment name, the former will be reported in the returned objects.
- Type
- object
(static) format() → {string}
- Source:
Returns:
String specifying the format for this dataset.
- Type
- string
(static) unserialize(files, options) → {ZippedAlabasterDataset}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
files |
Array | Array of objects like that produced by |
options |
object | Object containing additional options to be passed to the constructor. |
Returns:
A new instance of this class.