Per-sample peptide-length histogram highlighting cross-class contamination
Source:R/plots.R
plot_cross_class_length.RdFaceted (by Sample) count histogram of distinct-peptide lengths, with each
length bar coloured by region: the current class's expected window, the
cross-class region (the other MHC class's length range falling outside the
current window — i.e. MHC-II ligands contaminating an MHC-I pulldown, or vice
versa), and everything else. Visualises the frac_cross_class metric of
score_sample_quality(). For a custom length window (MHCclass neither "MHC1"
nor "MHC2") the cross-class region is undefined and an informative empty plot
is returned.
Usage
plot_cross_class_length(pep_all, shortpep_range = c(8, 13), mhcclass = "MHC1")Examples
if (FALSE) { # \dontrun{
plot_cross_class_length(pep_all, shortpep_range = c(8, 13), mhcclass = "MHC1")
} # }