Members
(constant) readObjectRegistry :object
- Description:
Registry of reader functions. Each key is a takane object type, and each value is a function that accepts the same arguments as
readObject.
- Source:
Registry of reader functions.
Each key is a takane object type, and each value is a function that accepts the same arguments as readObject.
Type:
- object
(constant) saveObjectRegistry :Array
- Description:
Registry of saving functions. Each entry should be an array of length 2, containing a Javascript class and its saving function. Each saving function should accept the same arguments as
saveObject. Subclasses should be placed after their parents in this array.
- Source:
Registry of saving functions.
Each entry should be an array of length 2, containing a Javascript class and its saving function.
Each saving function should accept the same arguments as saveObject.
Subclasses should be placed after their parents in this array.
Type:
- Array
Methods
joinPath(args)
Parameters:
| Name | Type | Description |
|---|---|---|
args |
string | One or more strings containing path components.
These should not have leading or trailing |
Returns:
The joined path.
(async) readDataFrame(path, metadata, globals, optionsopt) → {external:DataFrame}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | Path to the takane-formatted object directory containing the DataFrame. |
||||||||||||||||||||||
metadata |
object | Takane object metadata, typically generated by calling |
||||||||||||||||||||||
globals |
object | Object satisfying the GlobalsInterface. |
||||||||||||||||||||||
options |
object |
<optional> |
{}
|
Further options. Properties
|
Returns:
The data frame.
- Type
- external:DataFrame
(async) readList(path, metadata, globals, optionsopt) → {external:List}
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | Path to the takane-formatted object directory containing the List. |
|||||||||||||||||
metadata |
object | Takane object metadata, typically generated by calling |
|||||||||||||||||
globals |
object | Object satisfying the GlobalsInterface. |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Further options. Properties
|
Returns:
The list.
- Type
- external:List
(async) readObject(path, metadatanullable, globals, optionsopt)
- Description:
This function will inspect
readObjectRegistryto check if any reader function is supplied for the takane object type atpath. If found, it will use that function, otherwise it will fall back to the default functions:readDataFrame, to read DataFrame objects.readSummarizedExperiment, to read SummarizedExperiment objects.readRangedSummarizedExperiment, to read RangedSummarizedExperiment objects.readSingleCellExperiment, to read SingleCellExperiment objects.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
path |
string | Path to a takane-formatted object directory. |
||
metadata |
object |
<nullable> |
Object metadata.
If |
|
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options, to be passed to the reader functions for individual takane object types. |
Returns:
Some in-memory representation of the takane object at path.
(async) readObjectFile(path, globals) → {object}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
path |
string | Path to the takane-formatted object directory containing the DataFrame. |
globals |
object | Object satisfying the GlobalsInterface. |
Returns:
Object metadata.
- Type
- object
(async) readRangedSummarizedExperiment(path, metadata, globals, optionsopt) → {external:RangedSummarizedExperiment}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
path |
string | Path to the takane-formatted object directory containing the RangedSummarizedExperiment. |
||
metadata |
object | Takane object metadata, typically generated by calling |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options, see also readSummarizedExperiment. |
Returns:
The ranged summarized experiment object.
(async) readSingleCellExperiment(path, metadata, globals, optionsopt) → {external:SingleCellExperiment}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | Path to the takane-formatted object directory containing the SingleCellExperiment. |
|||||||||||||||||
metadata |
object | Takane object metadata, typically generated by calling |
|||||||||||||||||
globals |
object | Object satisfying the GlobalsInterface. |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Further options. Properties
|
Returns:
The single-cell experiment object.
(async) readSummarizedExperiment(path, metadata, globals, optionsopt) → {external:SummarizedExperiment}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path |
string | Path to the takane-formatted object directory containing the SummarizedExperiment. |
|||||||||||||||||
metadata |
object | Takane object metadata, typically generated by calling |
|||||||||||||||||
globals |
object | Object satisfying the GlobalsInterface. |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Further options. Properties
|
Returns:
The summarized experiment object.
(async) saveDataFrame(x, path, globals, optionsopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
external:DataFrame | The data frame. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options. |
?options.DataFrame_saveOther |
function |
<optional> |
null
|
Function to save custom class instances as columns of a data frame, without resorting to a reference to an external object.
This should accept |
Returns:
x is stored at path.
(async) saveList(x, path, globals, optionsopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
external:List | The list. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options. |
?options.List_saveOther |
function |
<optional> |
null
|
Function to save custom class instances within a list, without resorting to a reference to an external object.
This should accept |
Returns:
x is stored at path.
(async) saveObject(x, path, globals, optionsopt)
- Description:
This function will inspect
saveObjectRegistryto check if any saving function is supplied forx. If found, it will use that function, otherwise it will fall back to the default functions:saveDataFrame, to save DataFrame objects.saveSummarizedExperiment, to save SummarizedExperiment objects.saveRangedSummarizedExperiment, to save RangedSummarizedExperiment objects.saveSingleCellExperiment, to save SingleCellExperiment objects.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
Any | The takane-compatible object to be saved. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options. |
Returns:
x is stored at path.
(async) saveRangedSummarizedExperiment(x, path, globals, optionsopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
external:RangedSummarizedExperiment | The ranged summarized experiment. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options, see also |
Returns:
x is stored at path.
(async) saveSingleCellExperiment(x, path, globals, optionsopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
external:SingleCellExperiment | The single-cell experiment. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options. |
Returns:
x is stored at path.
(async) saveSummarizedExperiment(x, path, globals, optionsopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
x |
external:SummarizedExperiment | The summarized experiment. |
||
path |
string | Path to the directory in which to save |
||
globals |
object | Object satisfying the GlobalsInterface. |
||
options |
object |
<optional> |
{}
|
Further options. |
Returns:
x is stored at path.