proc_colon | R Documentation |
The proc_colon
function preprocesses colon gene expression data by:
Log transforming the raw counts.
Performing two-sample t-tests for each gene between normal and tumor samples.
Selecting the top 50 genes by absolute t-statistic.
Returning the filtered expression matrix and sample indices/groups.
proc_colon(colon, tissues)
colon |
A numeric matrix of raw colon gene expression values (genes × samples). Rows are genes; columns are samples. |
tissues |
A numeric vector indicating tissue type per sample: positive for normal, negative for tumor. |
A list with components:
A numeric matrix (samples x 50 genes) of selected, log‐transformed expression values.
Integer indices of normal‐tissue columns in the original data.
Integer indices of tumor‐tissue columns in the original data.
Integer vector of length ncol(colon)
, with 1 = normal, 2 = tumor.
data("colon")
data("tissues")
set.seed(1234)
colon_data <- proc_colon(colon, tissues)
X <- colon_data$X
foo <- bmspcov(X, Sigma = cov(X))
sigmah <- estimate(foo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.