Adds the copy number on the joined side of each breakpoint, cn1 and cn2, for
anchoring geom_junction() arcs on a copy number track. A breakpoint on the +
strand joins the segment ending at it, on its left, and one on the - strand joins
the segment starting after it, on its right; without strand columns the segment
containing the breakpoint is used.
Arguments
- junctions
Data frame of junctions with
seqnames1,start1,seqnames2, andstart2columns, and optionallystrand1andstrand2.- segments
GRanges or data frame of copy number segments with
seqnames,start, andendcolumns, for a single sample.- cn_column
Column of
segmentswith the copy number, default:"total_cn"- cn_cap
Highest copy number, matching
cn_capofgeom_copy_number()so arcs meet capped segments. Default: no cap.
