createSubset {ExperimentSubset} | R Documentation |
Create a subset from an already available assay
in the
input ExperimentSubset
object by specifying the rows and columns to
include in the subset.
createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL) ## S4 method for signature 'SubsetRangedSummarizedExperiment' createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL) ## S4 method for signature 'SubsetSingleCellExperiment' createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL) ## S4 method for signature 'SubsetSummarizedExperiment' createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL) ## S4 method for signature 'SubsetSpatialExperiment' createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL) ## S4 method for signature 'SubsetTreeSummarizedExperiment' createSubset(x, subsetName, rows = NULL, cols = NULL, parentAssay = NULL)
x |
|
subsetName |
|
rows |
|
cols |
|
parentAssay |
|
An ExperimentSubset
object that now contains the newly created
subset.
data(sce_chcl, package = "scds") es <- ExperimentSubset(sce_chcl) es <- createSubset(es, "subset1", rows = c(10,11,50,56,98,99,102,105,109, 200), cols = c(20,21,40,45,90,99,100,123,166,299), parentAssay = "counts") es