R/pretreat.R

Defines functions pretreat

Documented in pretreat

pretreat <- function(countmatrix){
  hk <- countmatrix[rownames(countmatrix) %in% ensebl_id,]
  oth <- countmatrix[!(rownames(countmatrix) %in% ensebl_id),]
  hk <- hk[!rowSums(hk)==0,]
  oth <- oth[!rowSums(oth)==0,]
  result <- list(housekeeping=hk,nonhousekeeping=oth)
  return(result)
}
ybai3/SCQC documentation built on May 19, 2019, 9:40 p.m.