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
objectSOMA object.
nameThe name to use for the object; defaults to the basename of
object$uri.relativeAn 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
keyThe key to be added.
schemaArrow schema argument passed on to
SOMADataFrame$create().index_column_namesIndex column names passed on to
SOMADataFrame$create().domainAs in
SOMADataFrameCreate.platform_configA platform configuration object
platform_configA platform configuration object
platform_configA platform configuration object
Method add_new_dense_ndarray()
Add a new SOMA DenseNdArray to this collection (lifecycle: maturing).
Arguments
keyThe key to be added.
typeAn Arrow type defining the type of each element in the array.
shapea vector of integers defining the shape of the array.
platform_configA platform configuration object
platform_configA platform configuration object
platform_configA platform configuration object
Method add_new_sparse_ndarray()
Add a new SOMA SparseNdArray to this collection (lifecycle: maturing).
Arguments
keyThe key to be added.
typeAn Arrow type defining the type of each element in the array.
shapea vector of integers defining the shape of the array.
platform_configA platform configuration object
platform_configA platform configuration object
platform_configA platform configuration object
Method print()
Print-friendly representation of the object.