Meta_Present {scCustomize} | R Documentation |
Check if meta data are present
Description
Check if meta data columns are present in object and return vector of found columns Return warning messages for meta data columns not found.
Usage
Meta_Present(
object,
seurat_object = deprecated(),
meta_col_names,
print_msg = TRUE,
omit_warn = TRUE,
return_none = FALSE
)
Arguments
object |
Seurat or Liger object name. |
seurat_object |
|
meta_col_names |
vector of column names to check. |
print_msg |
logical. Whether message should be printed if all features are found. Default is TRUE. |
omit_warn |
logical. Whether to print message about features that are not found in current object. Default is TRUE. |
return_none |
logical. Whether list of found vs. bad features should still be returned if no
|
Value
vector of meta data columns that are present
Examples
## Not run:
meta_variables <- Meta_Present(object = obj_name, meta_col_names = "percent_mito", print_msg = TRUE)
## End(Not run)
[Package scCustomize version 2.1.2 Index]