View source: R/utils_data_upload.R
gene_ingress | R Documentation |
Parse gene summary data for easier plotting and display
gene_ingress(
df,
sig.thresh,
es.thresh,
es.col,
sig.col,
positive.ctrl.genes = NULL,
essential.genes = NULL,
depmap.genes = NULL
)
df |
data.frame of gene summary data. Gene IDs should be in the first column. |
sig.thresh |
Numeric scalar for significance threshold to consider a gene a hit. |
es.thresh |
Numeric scalar for absolute log fold change threshold to consider a gene a hit. |
es.col |
Character scalar for the column name of the effect size value. |
sig.col |
Character scalar for the column name of the significance value. |
positive.ctrl.genes |
Character vector of gene identifiers to label as positive controls. |
essential.genes |
Character vector of gene identifiers to label as essential genes. |
depmap.genes |
data.frame of DepMap gene summary data. |
A data.frame of gene summary with additional, easier to plot, columns added.
Jared Andrews
library(CRISPRball)
d1.genes <- read.delim(system.file("extdata", "esc1.gene_summary.txt",
package = "CRISPRball"
), check.names = FALSE)
out.df <- gene_ingress(d1.genes, 0.05, 0.5, es.col = "LFC", sig.col = "fdr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.