R/setGenerics.R
, R/utils_plots.R
get_network_graph.Rd
Compute network graph embedding using UMAP.
get_network_graph(object, ...)
# S4 method for class 'CSNObject'
get_network_graph(
object,
network = DefaultNetwork(object),
celltypes = NULL,
graph_name = "module_graph",
rna_assay = "RNA",
rna_layer = "data",
umap_method = c("weighted", "corr", "coef", "none"),
features = NULL,
seed = 1,
verbose = TRUE,
...
)
The input data, a csn object.
Additional arguments for umap
.
Name of the network to use.
Celltypes to plot.
If NULL
, all celltypes are plotted.
Name of the graph.
Name of the RNA assay.
Name of the RNA slot to use.
Method to compute edge weights for UMAP:
* 'weighted'
- Correlation weighted by GRN coefficient.
* 'corr'
- Only correlation.
* 'coef'
- Only GRN coefficient.
* 'none'
- Don't compute UMAP and create the graph directly
from modules.
Features to use to create the graph. If NULL
uses all features in the network.
Random seed for UMAP computation
Print messages.
A CSNObject object.