Draws loose ends, breakpoints with copy number change but no junction partner as
inferred by JaBbA, as a short stem topped with an open circle. x defaults to the
start column. Map y to the copy number at each loose end, e.g. from
loose_end_copy_number(), to place them on a copy number track; otherwise they sit
at the bottom of the panel.
Usage
geom_loose_end(
mapping = NULL,
data = NULL,
stem_height = 3,
...,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)Arguments
- mapping
Set of aesthetic mappings created by
ggplot2::aes().- data
Data frame of loose ends with
seqnamesandstartcolumns, e.g. a JaBbAloose_ends.bed.- stem_height
Height of the stems in mm, default: 3
- ...
Other arguments passed to
ggplot2::layer(), e.g.colourorlinewidth.- na.rm, show.legend, inherit.aes
See
ggplot2::layer().
Examples
if (FALSE) { # \dontrun{
loose <- data.table::fread("sample.jabba.phased.loose_ends.bed",
col.names = c("seqnames", "start", "end"))
ggplot2::ggplot() +
geom_copy_number(data = cn) +
geom_loose_end(data = loose_end_copy_number(loose, cn), ggplot2::aes(y = cn)) +
coord_genome() +
theme_genomic()
} # }
