t_choose
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 genesexp
: A numeric matrixgroup_list
: A factor with duplicated character or factorup_only
: keep up genes in the result onlydown_only
: keep down genes in the result onlypvalue_cutoff
: p value cut off ,0.05 by defulta vector with differential expressed genes
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)
Xiaojie Sun