| SOMACollection | R Documentation |
Class for representing a SOMACollection, which may contain of one or more
SOMAs.
tiledbsc::TileDBObject -> tiledbsc::TileDBGroup -> SOMACollection
unsNamed list of unstructured objects.
somasRetrieve SOMA members.
tiledbsc::TileDBObject$class()tiledbsc::TileDBObject$exists()tiledbsc::TileDBGroup$add_member()tiledbsc::TileDBGroup$add_metadata()tiledbsc::TileDBGroup$count_members()tiledbsc::TileDBGroup$get_member()tiledbsc::TileDBGroup$get_members()tiledbsc::TileDBGroup$get_metadata()tiledbsc::TileDBGroup$group_exists()tiledbsc::TileDBGroup$list_member_uris()tiledbsc::TileDBGroup$list_members()tiledbsc::TileDBGroup$list_object_uris()tiledbsc::TileDBGroup$list_objects()tiledbsc::TileDBGroup$print()tiledbsc::TileDBGroup$remove_member()tiledbsc::TileDBGroup$tiledb_group()new()Create a new SOMACollection. The existing TileDB group is
opened at the specified array uri if one is present, otherwise a new
array group is created. The members field is populated with
SOMA objects for each URI passed explicitly to soma_uris, as
well SOMA objects discovered within the SOMACollection object's
TileDB group.
SOMACollection$new(uri, verbose = TRUE, config = NULL, ctx = NULL)
uriURI of the TileDB group
verbosePrint status messages
configoptional configuration
ctxoptional tiledb context
set_query()Set query parameters to slice by dimension values or filter by attribute values that are applied to all SOMAs within the collection.
SOMACollection$set_query( obs_ids = NULL, var_ids = NULL, obs_attr_filter = NULL, var_attr_filter = NULL )
obs_ids, var_idscharacter vector containing observation- or variable-identifiers.
obs_attr_filter, var_attr_filtera TileDB query condition for attribute filtering pushdown.
See SOMA$set_query() for more information about querying mechanics.
reset_query()Reset query dimensions and attribute filters.
SOMACollection$reset_query()
NULL
from_seurat()Convert a Seurat object to a TileDB-backed SOMACollection.
Each [SeuratObject::Assay] is converted to a SOMA and written to
a nested TileDB group with a URI of ./soma_<assay> where <assay>
is the name of the Seurat assay.
Cell identities in the SeuratObject::Seurat are maintained by
creating an active_ident attribute in obs that stores the factor
levels as a character vector.
Dimensionality reduction results are stored as obsm and varm arrays
within an SOMA. The SeuratObject::DimReduc object's key slot is
used to determine which SOMA to store the results in. The array names
are (obsm|varm)_dimreduction_<name>, where <name> is the name of the
dimensionality reduction method (e.g., "pca").
SOMACollection$from_seurat(object)
objectA SeuratObject::Seurat object.
to_seurat()Convert to a SeuratObject::Seurat object.
SOMACollection$to_seurat( project = "SeuratProject", somas = NULL, batch_mode = FALSE )
projectSeuratObject::Project name for the Seurat object
somascharacter vector, names of SOMAs to include as
SeuratObject::Assays in the Seurat object. If NULL, all SOMAs
are included. Can also be a named list of character vectors, where each
element corresponds to a SOMA name and the value is a character vector
of X layers from that SOMA to include as assays (e.g., list("RNA" = c("counts", "logcounts"))).
batch_modelogical, if TRUE, batch query mode is enabled for
retrieving X layers. See
AssayMatrix$to_dataframe() for more information.
soma_uris()List the SOMA URIs in the collection.
SOMACollection$soma_uris()
A vector of URIs for each SOMA in the collection.
clone()The objects of this class are cloneable with this method.
SOMACollection$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.