CRISPRball | R Documentation |
Create an interactive Shiny app for visualization & exploration of CRISPR analyses
CRISPRball(
gene.data = NULL,
sgrna.data = NULL,
count.summary = NULL,
norm.counts = NULL,
h.id = "mag1",
positive.ctrl.genes = NULL,
essential.genes = NULL,
depmap.db = NULL,
genesets = NULL,
return.app = TRUE
)
gene.data |
A named list containing |
sgrna.data |
A named list containing |
count.summary |
Matrix or dataframe containing count summary ( |
norm.counts |
Matrix or dataframe containing normalized counts ( |
h.id |
String indicating unique ID for interactive plots. Required if multiple apps are run within the same Rmd file. |
positive.ctrl.genes |
Optional character vector of gene identifiers for positive control genes from the screen so that they can be easily filtered. |
essential.genes |
Optional character vector of gene identifiers of common essential genes (i.e. pan-lethal) so that they can be easily filtered. If provided, overrides the depmap essential genes. |
depmap.db |
Optional character scalar for name of SQLite database returned by |
genesets |
Optional named list containing genesets that can be interactively highlighted on the plots. The elements of the list should each be a geneset with gene identifiers matching those used in the results. |
return.app |
Optional boolean indicating whether a Shiny app should be returned. |
Features with no variation will be removed prior to pca
being run for the PCA visualization.
Gene labels can be added to the MAplot and volcano plot by clicking a point. The labels can also be dragged around,
though adding labels will reset the positions, so it's recommended to add all labels prior to re-positioning them.
A Shiny app containing interactive visualizations of CRISPR analysis results.
Jared Andrews, Jacob Steele
library(CRISPRball)
# Create app with no data loaded.
app <- CRISPRball()
if (interactive()) {
shiny::runApp(app)
}
# Create app with data loaded.
# Create lists of results summaries for each dataset.
d1.genes <- read.delim(system.file("extdata", "esc1.gene_summary.txt",
package = "CRISPRball"
), check.names = FALSE)
d2.genes <- read.delim(system.file("extdata", "plasmid.gene_summary.txt",
package = "CRISPRball"
), check.names = FALSE)
d1.sgrnas <- read.delim(system.file("extdata", "esc1.sgrna_summary.txt",
package = "CRISPRball"
), check.names = FALSE)
d2.sgrnas <- read.delim(system.file("extdata", "plasmid.sgrna_summary.txt",
package = "CRISPRball"
), check.names = FALSE)
count.summ <- read.delim(system.file("extdata", "escneg.countsummary.txt",
package = "CRISPRball"
), check.names = FALSE)
norm.counts <- read.delim(system.file("extdata", "escneg.count_normalized.txt",
package = "CRISPRball"
), check.names = FALSE)
genes <- list(ESC = d1.genes, plasmid = d2.genes)
sgrnas <- list(ESC = d1.sgrnas, plasmid = d2.sgrnas)
app <- CRISPRball(
gene.data = genes, sgrna.data = sgrnas,
count.summary = count.summ, norm.counts = norm.counts
)
if (interactive()) {
shiny::runApp(app)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.