adj_data: Get or set adjacency matrix value

Description Usage Arguments Value Examples

Description

This function takes a CEMiTool object containing expression values and returns a CEMiTool object with an adjacency matrix in the adjacency slot.

Usage

1
2
3
4
5
6
7
8
9
adj_data(cem, ...)

## S4 method for signature 'CEMiTool'
adj_data(cem)

adj_data(cem) <- value

## S4 replacement method for signature 'CEMiTool'
adj_data(cem) <- value

Arguments

cem

Object of class CEMiTool

...

Optional parameters.

value

Object of class matrix containing adjacency data. Only used for setting adjacency values to CEMiTool object.

Value

Object of class matrix with adjacency values or object of class CEMiTool.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Get example expression data
data(expr0)
# Initialize new CEMiTool object with expression
cem <- new_cem(expr0, filter=TRUE, apply_vst=FALSE)
# Calculate adjacency matrix with example beta value 8
cem <- get_adj(cem, beta=8)
# Return adjacency matrix
adj <- adj_data(cem)
# Check result
adj[1:5, 1:5]
# Set adjacency matrix to CEMiTool object
adj_data(cem) <- adj

CEMiTool documentation built on March 13, 2021, 2 a.m.