Skip to contents

This function creates a CNA.

Arguments

type

The CNA type: either "A" or "D" for amplification and deletion, respectively.

chr

The name of the chromosome in which the CNA occurs.

chr_pos

The position in the chromosome where the CNA occurs.

len

The CNA length.

allele

The allele in which the CNA occurs. (optional)

src_allele

The allele from which the region is amplified. (optional, for amplification only)

See also

Amplification to build an amplification; Deletion to build a deletion.

Examples

# create an amplification
cna <- CNA("A", "X", 20002, 100)

cna
#> CNA(type: "A", chr: "X", chr_pos: 20002, length: 100)

# create a deletion from the allele 0
cna <- CNA("D", "Y", 101310, 205, allele = 0)

cna
#> CNA(type: "D", chr: "Y", chr_pos: 101310, length: 205, allele: 0)