count_calc: Calculates the cell counts and percentages for individual...

Description Usage Arguments Value Examples

View source: R/count_calc.R

Description

Calculates the cell counts and percentages for individual populations

Usage

1

Arguments

df

dataframe to calculate the cell counts and percentages

Value

dataframe with the percentage of cells in each population for each sample

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
df_all_gated_simple %>%
 select(ends_with("-A"), -`FSC-A`, filename) %>%
 dplyr::rename(`CD3` = "Alexa Fluor 532-A",
               `CD4` = "BV480-A",
               `CD8` = "BV570-A") %>%
 dplyr::filter(`SSC-A` != max(`SSC-A`)) %>%
 mutate(CD3 = fe(add_quantile, CD3, "CD3"),
        CD4 = fe(add_quantile, CD4, "CD4"),
        CD8 = fe(add_quantile, CD8, "CD8")) %>%
 select(-`Zombie Nir-A`,  -`SSC-A`) %>%
 count_calc()

aef1004/cytotypr documentation built on Dec. 25, 2021, 8:46 a.m.