| plotGenotypeConfidence | R Documentation |
plotGenotypeConfidence draws a genotype with plotGenotype and adds a
color panel beside it showing a per-gene confidence value, such as the k_diff
produced by inferGenotypeBayesian.
plotGenotypeConfidence(
genotype,
confidence_col,
allele_col = "alleles",
gene_sort = c("name", "position"),
text_size = 12,
confidence_breaks = c(0, 1, 2, 3, 4, 5, 10, 20, 50, Inf),
silent = FALSE,
...
)
genotype |
|
confidence_col |
name of the column in |
allele_col |
name of the column in |
gene_sort |
string defining the method to use when sorting alleles, passed to plotGenotype. |
text_size |
point size of the plotted text. |
confidence_breaks |
numeric vector of breaks used to bin the confidence
value into color groups. The default
|
silent |
if |
... |
additional arguments to pass to ggplot2::theme of the genotype panel. |
A gridExtra grob combining the genotype plot with the confidence panel.
plotGenotype, inferGenotypeBayesian
# The Bayesian genotype carries a per-gene confidence (k_diff) and, optionally,
# a genotyped_alleles column
geno_bayesian <- inferGenotypeBayesian(AIRRDb, germline_db=SampleGermlineIGHV,
novel=SampleNovel, genotyped_alleles=TRUE)
plotGenotypeConfidence(geno_bayesian, confidence_col="k_diff",
allele_col="genotyped_alleles")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.