clustCoef: Calculate the clustering coefficient

Description Usage Arguments Value References Examples

View source: R/clustCoef.R

Description

Calculate the clustering coefficient for an adjacency matrix.

Usage

1
clustCoef(mat)

Arguments

mat

An adjacency matrix. Calculating the clustering coefficient only makes sense if some connections are zero i.e. no connection.

Value

Returns the clustering coefficient(s) for the adjacency matrix.

References

Nathan S. Watson-Haigh, Haja N. Kadarmideen, and Antonio Reverter (2010). PCIT: an R package for weighted gene co-expression networks based on partial correlation and information theory approaches. Bioinformatics. 26(3) 411-413. https://academic.oup.com/bioinformatics/article/26/3/411/215002

Examples

1
2
3
4
5
6
7
8
# loading a simulated counts data
data('simNorm')

# running PCIT analysis
results <- PCIT(simNorm)

# getting the clustering coefficient
clustCoef(results$adj_sig)

CeTF documentation built on Nov. 25, 2020, 2 a.m.