R/estimate_cell_comp.R

Defines functions estimate_cell_comp

#' @export
estimate_cell_comp <- function(RGset){
  cellCounts <- FlowSorted.Blood.EPIC::estimateCellCounts2(RGset, compositeCellType="Blood", referencePlatform = "IlluminaHumanMethylationEPIC")
  cc.df <- as.data.frame(cellCounts)  %>% 
    rownames_to_column("ID") %>%
    rename_with( function(x) tolower(str_remove(x, "counts.")), starts_with("counts"))
  return(cc.df)
}
cbreenmachine/Rray documentation built on Feb. 22, 2022, 12:58 a.m.