Calculate allelic information over cells and bins
Source:R/calc_allelic_imbalance.R
calc_allelic.Rd
Calculate allelic information over cells and bins
Arguments
- snp
SNP SingleCellExperiment object with slots 'ref' and 'alt' per cell counts
- ncores
Number of cores to speed up computation
- bins
Bins over which to aggregate allele information. If not provided will calculate for each SNP
- group_var
Column containing cell grouping information
- FUN
A function which can take two values (or vectors) of reference and alternate counts to produce another value (or vector)
- min_cov
Minumum coverage per SNP across pseudobulked cells to be included in the calculation