View source: R/smooth_segments.R
smooth_segments | R Documentation |
This function joins simple clonal CNAs that have the same Major and minor alleles, and that are zeparate by at most a certain number of nucleotides. The pre-smoothing copy number segments are retained in the output computation.
smooth_segments(x, maximum_distance = 1e+06)
x |
A CNAqc object. |
maximum_distance |
The maximum number of nucleotides to join two equivalent segments. |
A CNAqc object with smoothed segments, which retains also the pre-smooting dataset.
data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)
# Before smoothing
print(x)
x = smooth_segments(x)
# After smoothing
plot_smoothing(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.