TOM.square.matrix: Computing a square matrix of Topological Overlap

Description Usage Arguments Value Examples

View source: R/CoExpression.R

Description

Uses the TOMsimilarityFromExpr() function from the WGCNA package

Usage

1

Arguments

data

Dataset of gene expression levels with genes in row and samples in columns

Value

square matrix of TOM similarity measurements for each genes

Examples

1
2
3
4
5
6
7
8
9
# Creating a dataset
df = matrix(runif(500, 10, 100), ncol=20)
group = paste0(rep(c("control", "case"), each = 10),rep(c(1:10),each = 1))
genes <- paste0(rep(LETTERS[1:25], each=1))
colnames(df) = group
row.names(df) = genes

# Computing TOM similarity
TOM = TOM.square.matrix(df)

jtcasemajor/GENEXPRESSO documentation built on Dec. 21, 2021, 4:11 a.m.