plotAllelicBiasResults
graphically summarizes the results of the allelic bias analysis for a specific dataset and region.
Three plots are generated, each of which focuses on a different aspect of the allelic bias analysis across the selected user region.
plotAllelicBiasResults(SNPhood.o, dataset = 1, region = 1, signThreshold = 0.05, readGroupColors = NULL, fileToPlot = NULL, verbose = FALSE)
SNPhood
annotationDatasets
).annotationRegions
).SNPhood
object.NULL
. Default NULL
.
Filename of the PDF file for the output plots.
If set to NULL
, plots will be plotted to the currently active device.testForAllelicBias
was called. Fraction estimates for which the corresponding p-values
are deemed significant according to the value of the parameter signThreshold
are highlighted (see also the legend). At 0.5, the estimated
allelic fraction if there was no allelic bias, a horizontal line is drawn.The second plot shows the p-values (-log 10 transformed, so that smaller p-values have higher transformed values).
In analogy to the estimates of the allelic fraction, significant p-values are highlighted. The -log10 transformed significance threshold
(according to the parameter signThreshold
) appears as a horizontal line.
Finally, the third plot shows the distribution of the read counts across all read groups. In addition, the genotype distribution for each read group is given (see the Vignette for details). This helps to identify allelic biases based on genotype differences among read groups.
data(SNPhood.o, package="SNPhood")
SNPhood.o = testForAllelicBiases(SNPhood.o, readGroups = c("maternal", "paternal"))
# Leave all parameters with their standard values
plots = plotAllelicBiasResults(SNPhood.o)
# Change the colors
plots = plotAllelicBiasResults(SNPhood.o, readGroupColors = c("blue", "red", "gray"))
# Alter the significance threshold
plots = plotAllelicBiasResults(SNPhood.o, signThreshold = 0.01)
Run the code above in your browser using DataLab