The test of calcASCStatistics for a pair of count matrices, for example the output of ascPoolReplicates: a two-sided binomial test against 0.5 for every site in every sample, with Benjamini-Hochberg correction within each sample.

ascTestCounts(refMat, altMat, minCoverage = 10, minAllele = 2)

Arguments

refMat, altMat

reference and alternative count matrices (sites x samples) with identical dimnames.

minCoverage

minimum number of reads (ref + alt) for a site to be tested in a sample (default 10).

minAllele

minimum number of reads on each allele (default 2).

Value

A data.table with one row per tested site and sample: snpId, sampleId, ref, alt, total, log2FC (alt vs ref), pVal and fdr. NULL if no site passes the thresholds.

Author

Irem B. GUNDUZ