tiledbsoma.ExperimentAxisQuery¶
- class tiledbsoma.ExperimentAxisQuery¶
Axis-based query against a SOMA Experiment.
ExperimentAxisQuery allows easy selection and extraction of data from a single
Measurementin anExperiment, by obs/var (axis) coordinates and/or value filter.The primary use for this class is slicing
ExperimentXlayers by obs or var value and/or coordinates. Slicing onSparseNDArrayXmatrices is supported;DenseNDArrayis not supported at this time.Lifecycle: maturing
- __init__()¶
Methods
X(layer_name, *[, batch_size, partitions, ...])Returns an
Xlayer as a sparse read.__init__()close()Releases resources associated with this query.
obs(*[, column_names, batch_size, ...])Returns
obsas an Arrow table iterator.Returns
obssoma_joinidsas an Arrow array.Returns a pyarrow array with scene ids that contain obs from this query.
obsm(layer)Returns an
obsmlayer as a sparse read.obsp(layer)Returns an
obsplayer as a sparse read.to_anndata(X_name, *[, column_names, ...])Executes the query and return result as an
AnnDatain-memory object.var(*[, column_names, batch_size, ...])Returns
varas an Arrow table iterator.Returns
varsoma_joinidsas an Arrow array.Return a pyarrow array with scene ids that contain var from this query.
varm(layer)Returns a
varmlayer as a sparse read.varp(layer)Returns a
varplayer as a sparse read.Attributes
A
soma_joinidindexer for bothobsandvaraxes.The number of
obsaxis query results.The number of
varaxis query results.