Based on supplied matrix with total depth and sequencing coverage for each nucleotide (A, C, G, and T) this function remove all but single nucelotide polymorphisms. When supplied, this function will filter on coverage or allele frequency. Finally, the function samples a single allele frequency per site to avoid data duplication.
Examples
if(exists("dfm")){
allelefreq <- process_rcpp(dfm, min.depth, max.depth.quantile.prob, trunc, error)
}