| make_pattern_matrix | R Documentation |
This function determines the patterns between different
conditions of each gene. It should be applied to the output of
calculate_condition_mean_sd_per_gene.
make_pattern_matrix(tbl, n_sd = 2)
tbl |
the output of |
n_sd |
number of standard deviations from the mean to use to construct the intervals; default is 2 |
A matrix of single character patterns between conditions. The last column is named pattern and is a concatenation of all other columns.
expression.matrix.preproc <- as.matrix(read.csv(
system.file("extdata", "expression_matrix_preprocessed.csv", package = "bulkAnalyseR"),
row.names = 1
))[1:500,]
condition <- factor(rep(c("0h", "12h", "36h"), each = 2))
tbl <- calculate_condition_mean_sd_per_gene(expression.matrix.preproc[1:10, ], condition)
patmat <- make_pattern_matrix(tbl)
patmat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.