adj_data | R Documentation |
This function takes a CEMiTool
object containing expression values
and returns a CEMiTool object with an adjacency matrix in the adjacency slot.
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
cem |
Object of class |
... |
Optional parameters. |
value |
Object of class |
Object of class matrix
with adjacency values or object of class CEMiTool
.
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.