View source: R/LIGER_Utilities.R
Subset_LIGER | R Documentation |
Subset LIGER object by cluster or other meta data variable.
Subset_LIGER(
liger_object,
cluster = NULL,
cluster_col = "leiden_cluster",
ident = NULL,
ident_col = NULL,
invert = FALSE
)
liger_object |
LIGER object name. |
cluster |
Name(s) of cluster to subset from object. |
cluster_col |
name of |
ident |
variable within |
ident_col |
column in |
invert |
logical, whether to subset the inverse of the clusters or idents provided, default is FALSE. |
liger object
## Not run:
# subset clusters 3 and 5
sub_liger <- subset_liger(liger_object = liger_object, cluster = c(3, 5))
# subset control samples from column "Treatment"
sub_liger <- subset_liger(liger_object = liger_object, ident = "control",
ident_col = "Treatment")
# subset control samples from column "Treatment" in clusters 3 and 5
sub_liger <- subset_liger(liger_object = liger_object, ident = "control",
ident_col = "Treatment", cluster = c(3, 5))
# Remove cluster 9
sub_liger <- subset_liger(liger_object = liger_object, cluster = 9, invert = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.