get_cor | R Documentation |
Extract correlation matrix stored as a graph.
get_cor(
obj,
keys = NULL,
assay = NULL,
slot = NULL,
graph_key = NULL,
method = "pearson",
return_obj = FALSE,
as_graph = TRUE,
verbose = TRUE
)
obj |
A single-cell object supported by scKirby. See converters for a table of all supported conversions. |
keys |
The keys of reductions to extract from. |
assay |
Assay to used to compute correlation graph if one does not already exist. |
slot |
Name of component object to return |
graph_key |
Name of the graph to extract. |
method |
Pairwise correlation method. |
return_obj |
Whether to return the single-cell object with a new
|
as_graph |
Convert the correlation matrix to the Graphs class. |
verbose |
Print messages. |
Trait-trait correlation matrix.
obj <- example_obj("seurat")
Xcor <- get_cor(obj = obj,
keys = "pca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.