Create an assay object; runs a standardized filtering scheme that
works regardless of the direction of the data (eg. cells as columns
and features as rows or vice versa) and creates an assay object based
on the initialization scheme defined for StdAssay
-derived
class type
.CreateStdAssay(
counts,
min.cells = 0,
min.features = 0,
cells = NULL,
features = NULL,
transpose = FALSE,
type = "Assay5",
...
)# S3 method for default
.CreateStdAssay(
counts,
min.cells = 0,
min.features = 0,
cells = NULL,
features = NULL,
transpose = FALSE,
type = "Assay5",
layer = "counts",
...
)
# S3 method for list
.CreateStdAssay(
counts,
min.cells = 0,
min.features = 0,
cells = NULL,
features = NULL,
transpose = FALSE,
type = "Assay5",
csum = Matrix::colSums,
fsum = Matrix::rowSums,
...
)
# S3 method for Matrix
.CreateStdAssay(
counts,
min.cells = 0,
min.features = 0,
cells = NULL,
features = NULL,
transpose = FALSE,
type = "Assay5",
layer = "counts",
...
)
# S3 method for matrix
.CreateStdAssay(
counts,
min.cells = 0,
min.features = 0,
cells = NULL,
features = NULL,
transpose = FALSE,
type = "Assay5",
layer = "counts",
...
)
An object of class type
with a layer named layer
containing the data found in counts
A two-dimensional expression matrix
Include features detected in at least this many cells; will subset the counts matrix as well. To reintroduce excluded features, create a new object with a lower cutoff
Include cells where at least this many features are detected
Vector of cell names
Vector of feature names
Type of assay object to create; must be the name of a class
that's derived from StdAssay
Extra parameters passed to new
for
assay creation; used to set slots not defined by StdAssay
Name of layer to store counts
as
Function for calculating cell sums
Function for calculating feature sums