Skip to contents

Coordinate systems

Place one or more genomic windows, or the whole genome, on a single x-axis so tracks and junctions can be drawn across loci.

coord_locus()
Cartesian coordinates zoomed to a genomic locus
coord_loci()
Cartesian coordinates across multiple genomic loci
coord_genome()
Cartesian coordinates across the whole genome

Stacking tracks

Combine track plots that share genomic coordinates into one figure, and highlight regions across all tracks.

stack_tracks()
Stack tracks over shared genomic windows
highlight_stack()
Highlight sub-regions across a stack of tracks

Layers

Copy number

geom_copy_number()
Copy number segment track

Structural variants

geom_junction()
Structural variant junction track
geom_loose_end()
Loose end track

Coverage and signal

geom_coverage()
Binned coverage track
geom_ridge_track()
Signal track
geom_bed_track()
Genomic interval track
geom_epilogo_col()
Epilogos chromatin state track

Mutations

geom_mutation_count()
Mutation count lollipop track
geom_vaf_landscape()
Variant allele frequency track

Genes and annotations

geom_gene_track()
Gene structure track
annotation_locus_scale()
Locus coordinate and scale bar annotation

Ideograms

Chromosome ideograms with cytobands, marking the windows shown in a plot.

geom_ideogram()
Chromosome ideogram
plot_ideogram()
Ideogram of a locus' chromosome with zoom trace
annotate_ideogram_window()
Highlight a window on an ideogram
annotate_ideogram_zoom()
Zoom trace from an ideogram window to the track below
theme_ideogram()
Theme for ideogram plots

Scales

Color and fill scales for copy number, junction classes, chromatin states, and cytobands.

scale_colour_copynumber() scale_fill_copynumber()
Integer copy number color scales
scale_colour_cn_state() scale_fill_cn_state()
Copy number state color scales
scale_colour_sv_class()
Junction orientation color scale
scale_colour_jabba_event()
JaBbA complex event color scale
scale_colour_sv_type()
Structural variant type color scale
scale_fill_chromhmm()
Chromatin state fill scale
scale_fill_giemsa()
Giemsa stain fill scale for ideograms

Themes

theme_genomic()
Theme for genomic track plots
label_drop_first()
Blank the lowest axis label

Data preparation

Helpers that add columns used by the layers, e.g. copy number at each junction breakpoint.

junction_copy_number()
Copy number at each junction breakpoint
loose_end_copy_number()
Copy number at each loose end
annotate_junctions()
Classify junctions by orientation and complex event
epilogos_long()
Convert epilogos scores to long format
get_linear_ranges_per_chromosome()
Linearization of GRanges object for single chromosome
gr_absolute_ranges()
Linearization of GRanges object

Data

cytobands_hg38
Cytoband annotations per chromosome on hg38