
Plot the number of barcodes lost for each gene
Source:R/barcode_lost.R
plot_barcode_lost_for_gene.RdPlots, for each gene and sample, the number of barcodes of the gene with zero reads. Each gene is targeted by several shRNAs (barcodes), and a gene needs enough barcodes left to give a robust result: this quality control plot shows which genes lost many of their barcodes. Only the genes that lost at least one barcode are shown.
Arguments
- screenR_Object
The ScreenR object obtained using
create_screenr_object.- facet
Whether to draw a separate panel for each sample (TRUE, default) or a single panel.
- samples
The names of the samples to plot (required).
- palette
An optional vector of colors for the samples (named by sample, or one for each sample in order), which replaces the palette of the object. By default the Sample palette of the object is used when it is set (see
get_palettes), otherwise the default colors of ggplot2.
Examples
object <- get0("object", envir = asNamespace("ScreenR"))
plot_barcode_lost_for_gene(object,
samples = c("Time3_A", "Time3_B")
)
plot_barcode_lost_for_gene(object,
samples = c("Time3_A", "Time3_B"),
facet = FALSE
)