Remove missing cells or features from liger object
removeMissing(
object,
orient = c("both", "feature", "cell"),
minCells = NULL,
minFeatures = NULL,
useDatasets = NULL,
newH5 = TRUE,
filenameSuffix = "removeMissing",
verbose = getOption("ligerVerbose", TRUE),
...
)removeMissingObs(
object,
slot.use = NULL,
use.cols = TRUE,
verbose = getOption("ligerVerbose", TRUE)
)
Updated (subset) object
.
liger object
Choose to remove non-expressing features ("feature"
),
empty barcodes ("cell"
), or both of them ("both"
). Default
"both"
.
Keep features that are expressed in at least this number of
cells, calculated on a per-dataset base. A single value for all datasets or
a vector for each dataset. Default NULL
only removes none expressing
features.
Keep cells that express at least this number of features,
calculated on a per-dataset base. A single value for all datasets or a vector
for each dataset. Default NULL
only removes none expressing cells.
A character vector of the names, a numeric or logical
vector of the index of the datasets to be processed. Default
NULL
removes empty entries from all datasets.
Logical, whether to create a new H5 file on disk for each
H5-based dataset on subset. Default TRUE
When subsetting H5-based datasets to new H5 files, this
suffix will be added to all the filenames. Default "removeMissing"
.
Logical. Whether to show information of the progress. Default
getOption("ligerVerbose")
or TRUE
if users have not set.
Arguments passed to subsetLigerDataset
Deprecated. Always look at rawData
slot of
inner ligerDataset objects.
Deprecated. Previously means "treating each column as
a cell" when TRUE
, now means orient="cell"
.
# The example dataset does not contain non-expressing genes or empty barcodes
pbmc <- removeMissing(pbmc)
Run the code above in your browser using DataLab