plot_exclusive_junctions_event: Plot transcript-exclusive splice junctions observed in...

plot_exclusive_junctions_eventR Documentation

Plot transcript-exclusive splice junctions observed in eventdata

Description

Sibling of plot_exclusive_junctions() that restricts drawn arcs to junctions present in a splikit eventdata table. Exon structure and exclusivity are still derived from the GTF, so a black arc means the junction is both transcript-exclusive in the annotation and observed in the data.

Usage

plot_exclusive_junctions_event(
  target_gene,
  GTF,
  eventdata,
  show_exclusive = TRUE,
  transcript = NULL,
  curvature = -0.2
)

Arguments

target_gene

Gene symbol to plot.

GTF

Either a GTF path or a pre-loaded data.table.

eventdata

A splikit eventdata data.table.

show_exclusive, transcript, curvature

See plot_exclusive_junctions().

Details

Works with both Ensembl-style and RefSeq-style GTFs. If eventdata lacks a gene_name column the function runs make_eventdata_plus() internally (requires GTF to be a path in that case). Observed junctions not matching any annotated intron are dropped with a message and their count is reported as novel_junction_count.

Value

An S3 object of class "splikit_junction_plot" with the same structure as in plot_exclusive_junctions(), plus novel_junction_count for the unannotated observed junctions. The info$observed_in_eventdata column is TRUE for all rows, and row_names_mtx / is_annot are populated from eventdata when available.

Required packages

Requires the ggplot2 package (declared in Suggests).


splikit documentation built on May 13, 2026, 9:08 a.m.