Base class for objects containing persistent collection of SOMA objects, mapping string keys to any SOMA object. (lifecycle: maturing)
Super classes
tiledbsoma::TileDBObject
-> tiledbsoma::TileDBGroup
-> SOMACollectionBase
Methods
Inherited methods
tiledbsoma::TileDBObject$class()
tiledbsoma::TileDBObject$exists()
tiledbsoma::TileDBObject$is_open()
tiledbsoma::TileDBObject$mode()
tiledbsoma::TileDBObject$reopen()
tiledbsoma::TileDBGroup$close()
tiledbsoma::TileDBGroup$get_metadata()
tiledbsoma::TileDBGroup$length()
tiledbsoma::TileDBGroup$names()
tiledbsoma::TileDBGroup$open()
tiledbsoma::TileDBGroup$print()
tiledbsoma::TileDBGroup$remove()
tiledbsoma::TileDBGroup$set_metadata()
tiledbsoma::TileDBGroup$to_data_frame()
tiledbsoma::TileDBGroup$to_list()
Method new()
Create a new SOMACollection
. (lifecycle: maturing)
Usage
SOMACollectionBase$new(
uri,
platform_config = NULL,
tiledbsoma_ctx = NULL,
tiledb_timestamp = NULL,
internal_use_only = NULL
)
Arguments
uri
URI of the TileDB group
platform_config
Optional storage-engine specific configuration
tiledbsoma_ctx
optional SOMATileDBContext
tiledb_timestamp
Optional Datetime (POSIXct) for TileDB timestamp
internal_use_only
Character value to signal this is a 'permitted' call, as
new()
is considered internal and should not be called directly.
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 object URI's base name.
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 add_new_dataframe()
Add a new SOMA dataframe 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 DataFrame$create()
index_column_names
Index column names passed on to DataFrame$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