Skip to contents

Plots, 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.

Usage

plot_barcode_lost_for_gene(
  screenR_Object,
  facet = TRUE,
  samples,
  palette = NULL
)

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.

Value

A ggplot object with the number of lost barcodes on the x axis and the genes on the y axis.

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
)