Base class for objects containing persistent collection of SOMA objects, mapping string keys to any SOMA object (lifecycle: maturing).
See also
Derived classes: SOMACollection
,
SOMAMeasurement
,
SOMAExperiment
Super class
tiledbsoma::SOMAObject
-> SOMACollectionBase
Methods
Method create()
Create a SOMA collection (lifecycle: maturing).
Note: $create()
is considered internal and should not be
called directly; use factory functions
(eg. SOMACollectionCreate()
) instead.
Method open()
Open the SOMA collection for read or write.
Note: $open()
is considered internal and should not be
called#' directly; use factory functions
(eg. SOMACollectionOpen()
) instead.
Usage
SOMACollectionBase$open(mode = c("READ", "WRITE", "DELETE"))
Method close()
Close the SOMA collection.
Method set()
Add a new SOMA object to the collection (lifecycle: maturing).
Arguments
object
SOMA object.
name
The name to use for the object; defaults to the basename of
object$uri
.relative
An optional logical value indicating whether the new object's URI is relative to the collection's URI. If
NULL
(the default), the object's URI is assumed to be relative unless it is atiledb://
URI.
Method get()
Retrieve a SOMA object by name. (lifecycle: maturing)
Method remove()
Remove member. (lifecycle: maturing)
Method length()
Get the number of members in this collection (lifecycle: maturing).
Method names()
Retrieve the names of members (lifecycle: maturing).
Method add_new_dataframe()
Add a new SOMA data frame to this collection (lifecycle: maturing).
Usage
SOMACollectionBase$add_new_dataframe(
key,
schema,
index_column_names,
domain,
platform_config = NULL
)
Arguments
key
The key to be added.
schema
Arrow schema argument passed on to
SOMADataFrame$create()
.index_column_names
Index column names passed on to
SOMADataFrame$create()
.domain
As in
SOMADataFrameCreate
.platform_config
A platform configuration object
platform_config
A platform configuration object
platform_config
A platform configuration object
Method add_new_dense_ndarray()
Add a new SOMA DenseNdArray to this collection (lifecycle: maturing).
Arguments
key
The key to be added.
type
An Arrow type defining the type of each element in the array.
shape
a vector of integers defining the shape of the array.
platform_config
A platform configuration object
platform_config
A platform configuration object
platform_config
A platform configuration object
Method add_new_sparse_ndarray()
Add a new SOMA SparseNdArray to this collection (lifecycle: maturing).
Arguments
key
The key to be added.
type
An Arrow type defining the type of each element in the array.
shape
a vector of integers defining the shape of the array.
platform_config
A platform configuration object
platform_config
A platform configuration object
platform_config
A platform configuration object
Method print()
Print-friendly representation of the object.