View source: R/plot_barcode_trend.R
plot_barcode_trend | R Documentation |
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.
plot_barcode_trend(
list_data_measure,
genes,
n_col = 1,
size_line = 1,
color = NULL
)
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. |
The trend plot for the genes in input.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.