R/DsASC-class.R
plotASCBalance.RdFor one or more heterozygous SNPs, plots the proportion of reads mapping to the reference allele in each sample, with binomial confidence intervals. Samples can be coloured by any annotation column (e.g. stimulus).
plotASCBalance(
dsObj,
snpIds,
colorBy = "stimulus",
orderBy = "cellType",
minReads = 4,
sigStats = NULL,
sigCut = 0.1
)A DsASC object.
Character vector of snpIds (rownames of the count matrix).
Sample-annotation column to colour points by (default "stimulus").
Sample-annotation column to order the y axis by (default "cellType").
Minimum reads to display a sample at a site (default 4).
Optional output of calcASCStatistics; significant
(fdr < sigCut) sample-site points are drawn solid, others faded.
FDR threshold for "significant" shading (default 0.1).
A ggplot object.