plot_barcode_trend: Plot the trend over time of the barcodes

View source: R/plot_barcode_trend.R

plot_barcode_trendR Documentation

Plot the trend over time of the barcodes

Description

Plot the log2FC over time of the barcodes in the different time point. This plot is useful to check we efficacy of each shRNA. Good shRNAs should have consistent trend trend over time.

Usage

plot_barcode_trend(
  list_data_measure,
  genes,
  n_col = 1,
  size_line = 1,
  color = NULL
)

Arguments

list_data_measure

A list containing the measure table of the different time point. Generated using the compute_metrics function.

genes

The vector of genes name.

n_col

The number of column to use in the facet wrap.

size_line

The thickness of the line.

color

The vector of colors. One color for each barcode.

Value

The trend plot for the genes in input.

Examples

object <- get0("object", envir = asNamespace("ScreenR"))

metrics <- dplyr::bind_rows(
    compute_metrics(object,
        control = "TRT", treatment = "Time3",
        day = "Time3"
    ),
    compute_metrics(object,
        control = "TRT", treatment = "Time4",
        day = "Time4"
    )
)
# Multiple Genes
plot_barcode_trend(metrics,
    genes = c("Gene_1", "Gene_50"),
    n_col = 2
)
# Single Gene
plot_barcode_trend(metrics, genes = "Gene_300")

EmanuelSoda/ScreenR documentation built on Sept. 29, 2023, 12:33 a.m.