CID.Louvain: Detects community substructure by Louvain community detection

Description Usage Arguments Value Examples

View source: R/helper_functions.R

Description

CID.Louvain determines Louvain clusters from an edge list.

Usage

1
CID.Louvain(edges)

Arguments

edges

A data frame or matrix with edges

Value

A character vector with the community substructures of the graph corresponding to Louvain clusters.

Examples

 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)

SignacX documentation built on Nov. 18, 2021, 5:07 p.m.