Construct a liger object with a specified subset
The subset can be based on cell names or clusters. This function applies the subsetting to raw.data, norm.data, scale.data, cell.data, H, W, V, H.norm, tsne.coords, and clusters. Note that it does NOT reoptimize the factorization. See optimizeSubset for this functionality.
subsetLiger( object, clusters.use = NULL, cells.use = NULL, remove.missing = TRUE )
object |
|
clusters.use |
Clusters to use for subset. |
cells.use |
Vector of cell names to keep from any dataset. |
remove.missing |
Whether to remove genes/cells with no expression when creating new object (default TRUE). |
liger
object with subsetting applied to raw.data, norm.data, scale.data, H, W, V,
H.norm, tsne.coords, and clusters.
## Not run: # ligerex (liger object based on in-memory datasets), with clusters 0:10 # factorization, alignment, and t-SNE calculation have been performed # subset by clusters ligerex_subset <- subsetLiger(ligerex, clusters.use = c(1, 4, 5)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.