covDataObject-class | R Documentation |
This object is generated using getCoverageData or getGenomeData methods, and is used as input for generating coverage plots.
## S4 method for signature 'covDataObject'
showEvents(object)
getCoverageData(
se,
Event,
Gene,
seqname,
start,
end,
coordinates,
strand = c("*", "+", "-"),
zoom_factor = 0.2,
bases_flanking = 100,
tracks,
condition,
...
)
getGenomeData(
reference_path,
Gene,
seqname,
start,
end,
coordinates,
zoom_factor = 0.2,
bases_flanking = 100,
...
)
plotAnnoTrack(
object,
Event,
view_start,
view_end,
reverseGenomeCoords = FALSE,
condensed = FALSE,
selected_transcripts = "",
plot_key_isoforms = FALSE,
usePlotly = FALSE,
...
)
object |
For |
se |
A NxtSE object, created by makeSE.
COV files must be linked to the NxtSE object. To do this, see the example
in makeSE. Required by |
Event |
The |
Gene |
Whether to use the range for the given |
seqname , start , end |
The chromosome (string) and genomic |
coordinates |
A string specifying genomic coordinates can be given
instead of |
strand |
Whether to show coverage of both strands "*" (default), or from the "+" or "-" strand only. |
zoom_factor |
Zoom out from event. Each level of zoom zooms out by a
factor of 3. E.g. for a query region of chr1:10000-11000, if a
|
bases_flanking |
(Default = |
tracks |
The names of individual samples,
or the names of the different conditions to be plotted. For the latter, set
|
condition |
To display normalised coverage per condition, set this to
the condition category. If omitted, |
... |
Ignored / not used |
reference_path |
The path of the reference generated by
Build-Reference-methods. Required by |
view_start , view_end |
Start and end coordinates of plotting function. Note that plot coordinates may be different from retrieval coordinates and is useful for zooming in. |
reverseGenomeCoords |
Whether the genomic axis should be reversed to make it more convenient to plot reverse-stranded genes |
condensed |
(default 'FALSE) Whether the genomic track should be condensed to plot whole genes, rather than transcripts. Preferred if multiple genes are plotted on a zoomed-out plot |
selected_transcripts |
(default |
plot_key_isoforms |
(default |
usePlotly |
(default |
For getCoverageData(): A covDataObject containing required data used to generate downstream For plotAnnoTrack(): A ggplot or plotly object
showEvents(covDataObject)
: Returns the EventNames for which events can
be normalized using the given covDataObject
getCoverageData()
: Get coverage / genome data for plotting
coverage plots
getGenomeData()
: Get coverage / genome data for plotting
coverage plots
plotAnnoTrack()
: Directly plots the annotation from a
covDataObject.
covPlotObject
se <- SpliceWiz_example_NxtSE(novelSplicing = TRUE)
# Assign annotation of the experimental conditions
colData(se)$treatment <- rep(c("A", "B"), each = 3)
dataObj <- getCoverageData(
se,
Event = "SE:SRSF3-203-exon4;SRSF3-202-int3",
tracks = colnames(se)
)
# Show `EventName`s of supported splicing events
# contained within covDataObject
showEvents(dataObj)
# A limited covDataObject containing only the reference can be generated
# from the SpliceWiz reference
buildRef(
reference_path = file.path(tempdir(), "Reference"),
fasta = chrZ_genome(),
gtf = chrZ_gtf()
)
genomeObj <- getGenomeData(
reference_path = file.path(tempdir(), "Reference"),
Gene = "SRSF3"
)
# Plot reference track directly from the covDataObject
# NB: Event plotting is not supported for reference-derived `covDataObject`s
plotAnnoTrack(genomeObj)
plotAnnoTrack(dataObj, Event = "SE:SRSF3-203-exon4;SRSF3-202-int3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.