This function takes in a data table of raw counts and a vector of reference/normal beads to normalize counts and adjust for reference expression.
prep(so, normal_beads, gene_pos, chrom_ord, logTPM = FALSE)
A data.table of normalized, capped, and ref-adjusted counts with genomic psoition info
Seurat object of Slide-seq data with raw counts
vector of names of normal beads
data.table with columns for GENE, chr, start, end, rel_gene_pos (1 : # of genes on chromosome)
vector of the names of chromosomes in order
TRUE if performing adjustment with logTPM