View source: R/experiment_plots.R
transcriptWindow1 | R Documentation |
Given as single window
transcriptWindow1(
df,
outdir = NULL,
scores = c("sum", "zscore"),
colors = experiment.colors(df),
title = "Coverage metaplot",
windowSize = 100,
returnPlot = is.null(outdir),
dfr = NULL,
idName = "",
plot.ext = ".pdf",
type = "ofst",
drop.zero.dt = drop.zero.dt,
BPPARAM = bpparam()
)
df |
an ORFik |
outdir |
directory to save to (default: NULL, no saving) |
scores |
scoring function (default: c("sum", "transcriptNormalized")), see ?coverageScorings for possible scores. |
colors |
Which colors to use, default auto color from function
|
title |
title of ggplot |
windowSize |
size of binned windows, default: 100 |
returnPlot |
return plot from function, default is.null(outdir), so TRUE if outdir is not defined. |
dfr |
an ORFik |
idName |
A character ID to add to saved name of plot, if you make several plots in the same folder, and same experiment, like splitting transcripts in two groups like targets / nontargets etc. (default: "") |
plot.ext |
character, default: ".pdf". Alternatives: ".png" or ".jpg". |
type |
a character(default: "default"), load files in experiment
or some precomputed variant, like "ofst" or "pshifted".
These are made with ORFik:::convertLibs(),
shiftFootprintsByExperiment(), etc.
Can also be custom user made folders inside the experiments bam folder.
It acts in a recursive manner with priority: If you state "pshifted",
but it does not exist, it checks "ofst". If no .ofst files, it uses
"default", which always must exists. |
drop.zero.dt |
logical FALSE, if TRUE and as.data.table is TRUE, remove all 0 count positions. This greatly speeds up and most importantly, greatly reduces memory usage. Will not change any plots, unless 0 positions are used in some sense. (mean, median, zscore coverage will only scale differently) |
BPPARAM |
how many cores/threads to use? default: bpparam() |
NULL, or ggplot object if returnPlot is TRUE
Other experiment plots:
transcriptWindow()
,
transcriptWindowPer()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.