trans_array
transform rownames for microarray or rnaseq expression matrix
trans_array(exp, ids, from = "probe_id", to = "symbol")
exp
: microarray expression matrix with probe_id as rownamesids
: data.frame with original rownames and new rownamesfrom
: colname for original rownamesto
: colname for new rownamesa transformed expression set with new rownames
exp = matrix(1:50,nrow = 10) rownames(exp) = paste0("g",1:10) ids = data.frame(probe_id = paste0("g",1:10), symbol = paste0("G",c(1:9,9))) trans_array(exp,ids)
trans_exp
Xiaojie Sun
Downloads (last 30 days):