Description Usage Arguments Details Value Examples
Collapses copy number segments for the given copy number data frame.
1 |
copy_number |
a data frame containing |
Adjacent bins with the same segmented copy number (segmented
column)
for the same sample and on the same chromosome are treated as belonging to
the same segment.
The returned data frame contains a row for each segment with columns for
the segment number (segment
), the number of bins or rows in the
provided copy number data frame that were collapsed to form the segment
(bin_count
), the sum of lengths of those bins
(sum_of_bin_lengths
) and the weight for the segment weight
).
The segment weight is the median-scaled sum of bin lengths.
a data frame containing copy number segments with
segment
, sample
, chromosome
, start
, end
,
copy_number
, bin_count
, sum_of_bin_lengths
and
weight
.
1 2 3 4 5 6 7 8 | data(copy_number)
# segments for all samples
segments <- copy_number_segments(copy_number)
# segments for single sample
copy_number <- copy_number[copy_number$sample == "X17222", ]
segments <- copy_number_segments(copy_number)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.