removeMissingObs | R Documentation |
Removes cells/genes from chosen slot with no expression in any genes or cells respectively.
removeMissingObs(
object,
slot.use = "raw.data",
use.cols = TRUE,
verbose = TRUE
)
object |
|
slot.use |
The data slot to filter (takes "raw.data" and "scale.data") (default "raw.data"). |
use.cols |
Treat each column as a cell (default TRUE). |
verbose |
Print messages (TRUE by default) |
liger
object with modified raw.data (or chosen slot) (dataset names preserved).
ligerex <- createLiger(list(ctrl = ctrl, stim = stim))
if (any(rowSums(ctrl) == 0) || any(rowSums(stim) == 0)) {
# example datasets do not have missing data, thus put in a condition
# Though the function will return unchanged object if no missing found
ligerex <- removeMissingObs(ligerex)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.