copy_number: Get copy number.

View source: R/copy-number.R

copy_numberR Documentation

Get copy number.

Description

The function returns copy number.

Usage

copy_number(x, log2_transform = FALSE, offset = 1)

Arguments

x

An object of MethylSet-class or GenomicMethylSet-class.

log2_transform

A logical scalar. Default to FALSE.

offset

A numeric scalar. It is only applicable when log2 transform is carried out. Default to 1.

Value

A matrix.

Note

getCN returns the log2 value of meth + unmeth. If the sum is zero, NA is returned.


markgene/yamat documentation built on Aug. 26, 2024, 11:56 p.m.