R/Filtercount.R

Defines functions Filter_low_counts

#'filtering out the lowly expressed genes and give a summary.
#'
#'@params data - countdata
#'@params thresholda below 0.5
#'
#


Filter_low_counts <- function(data) {
  if(is.data.frame(data) == FALSE) {
    return("not a dataframe")
  }
  data_cpm <- cpm(data)
  threshold <- data_cpm > 0.5
  threshold <- summary(threshold)
  return(threshold)
}
ChiJingLeow/R_Package_Leow documentation built on Dec. 17, 2021, 2 p.m.