A SOMAMeasurement
is a sub-element of a SOMAExperiment
,
and is otherwise a specialized SOMACollection
with pre-defined fields:
X
, var
, obsm
/varm
, and obsp
/varp
(see Active Bindings below for
details). (lifecycle: maturing)
Adding new objects to a collection
The SOMAMeasurement
class provides a number of type-specific methods for
adding new a object to the collection, such as add_new_sparse_ndarray()
and
add_new_dataframe()
. These methods will create the new object and add it as
member of the SOMAMeasurement
. The new object will always inherit the parent
context (see SOMATileDBContext
) and, by default, its platform
configuration (see PlatformConfig
). However, the user can override the
default platform configuration by passing a custom configuration to the
platform_config
argument.
Super classes
tiledbsoma::TileDBObject
-> tiledbsoma::TileDBGroup
-> tiledbsoma::SOMACollectionBase
-> SOMAMeasurement
Active bindings
var
a
SOMADataFrame
containing primary annotations on the variable axis, for variables in this measurement (i.e., annotates columns ofX
). The contents of thesoma_joinid
column define the variable index domain,var_id
. All variables for this measurement must be defined in this dataframe.X
a
SOMACollection
ofSOMASparseNDArray
s, each contains measured feature values indexed by[obsid, varid]
.obsm
a
SOMACollection
ofSOMADenseNDArray
s containing annotations on the observation axis. Each array is indexed byobsid
and has the same shape asobs
.obsp
a
SOMACollection
ofSOMASparseNDArray
s containing pairwise annotations on the observation axis and indexed with[obsid_1, obsid_2]
.varm
a
SOMACollection
ofSOMADenseNDArray
s containing annotations on the variable axis. Each array is indexed byvarid
and has the same shape asvar
.varp
a
SOMACollection
ofSOMASparseNDArray
s containing pairwise annotations on the variable axis and indexed with[varid_1, varid_2]
.
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()
tiledbsoma::SOMACollectionBase$add_new_collection()
tiledbsoma::SOMACollectionBase$add_new_dataframe()
tiledbsoma::SOMACollectionBase$add_new_dense_ndarray()
tiledbsoma::SOMACollectionBase$add_new_sparse_ndarray()
tiledbsoma::SOMACollectionBase$create()
tiledbsoma::SOMACollectionBase$get()
tiledbsoma::SOMACollectionBase$initialize()
tiledbsoma::SOMACollectionBase$set()