adj_data {CEMiTool} | 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 expression data cem <- filter_expr(cem) # 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