Description Usage Arguments Value Examples
View source: R/helper_functions.R
CID.Louvain
determines Louvain clusters from an edge list.
1 | CID.Louvain(edges)
|
edges |
A data frame or matrix with edges |
A character vector with the community substructures of the graph corresponding to Louvain clusters.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Loads edges
file.dir = "https://kleintools.hms.harvard.edu/tools/client_datasets/"
file = "CITESEQ_EXPLORATORY_CITESEQ_5K_PBMCS/FullDataset_v1_protein/edges.csv"
download.file(paste0(file.dir, file, "?raw=true"), destfile = "edges.csv")
# data.dir is your path to the "edges.csv" file
edges = CID.LoadEdges(data.dir = ".")
# get louvain clusters from edge list
clusters = CID.Louvain(edges)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.