View source: R/9_cor_t_choose.R
t_choose | R Documentation |
choose differential expressed genes by simple t.test
t_choose(
genes,
exp,
group_list,
up_only = FALSE,
down_only = FALSE,
pvalue_cutoff = 0.05
)
genes |
a vector with some genes |
exp |
A numeric matrix |
group_list |
A factor with duplicated character or factor |
up_only |
keep up genes in the result only |
down_only |
keep down genes in the result only |
pvalue_cutoff |
p value cut off ,0.05 by defult |
a vector with differential expressed genes
Xiaojie Sun
exp = matrix(rnorm(1000),ncol = 10)
rownames(exp) = sample(mRNA_annov23$gene_id,100)
colnames(exp) = c(paste0("TCGA",1:5),paste0("GTEX",1:5))
exp2 = trans_exp(exp)
exp2[,1:5] = exp2[,1:5]+10
group_list = rep(c("A","B"),each = 5)
genes = sample(rownames(exp2),3)
t_choose(genes,exp2,group_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.