(signature("CrisprSet")) Groups variants by size and type and produces a barplot showing the variant spectrum for each sample. Accepts all arguments accepted by barplotAlleleFreqs for signature("matrix"). Requires package "VariantAnnotation"
signature("matrix") Accepts a matrix of allele counts, with rownames being alleles and column names samples.
barplotAlleleFreqs(obj, ...)
"barplotAlleleFreqs"(obj, ..., txdb, min.freq = 0, include.chimeras = TRUE, group = NULL, palette = c("rainbow", "bluered"))
"barplotAlleleFreqs"(obj, category.labels = NULL, group = NULL, bar.colours = NULL, group.colours = NULL, legend.text.size = 10, axis.text.size = 10, legend.symbol.size = 1, snv.label = "SNV", novar.label = "no variant", chimera.label = "Other", include.table = TRUE, classify = TRUE)
data("gol_clutch1")
barplotAlleleFreqs(variantCounts(gol))
# Just show the barplot without the counts table:
barplotAlleleFreqs(variantCounts(gol), include.table = FALSE)
Run the code above in your browser using DataLab