Adds a cn column with the copy number of the segment containing each loose end,
for placing geom_loose_end() on a copy number track.
Arguments
- loose_ends
Data frame of loose ends with
seqnamesandstartcolumns.- 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.
