keep_only_high_level_cnas: Keep only high-level CNAs (set low-level CNAs to 0)

View source: R/keep_only_high_level_cnas.R

keep_only_high_level_cnasR Documentation

Keep only high-level CNAs (set low-level CNAs to 0)

Description

Keep only high-level CNAs (set low-level CNAs to 0)

Usage

keep_only_high_level_cnas(cna_mat)

Arguments

cna_mat

a matrix or vector of 5-valued CNA (copy number alteration) data; possible values: -2: Deep deletion, -1: Shallow deletion, 0: Diploid (or default copy number), 1: Low-level gain, 2: High-level amplification

Value

a matrix where low-level gains have been set to 0

Author(s)

Rileen Sinha (rileen@gmail.com), Augustin Luna (aluna@jimmy.harvard.edu)

Examples

set.seed(1)
tmp <- sample(c(-2, -1, 0, 1, 2), 100, replace=TRUE)
mat <- matrix(tmp, 10, 10)
keep_only_high_level_cnas(mat)


cannin/tumorcomparer documentation built on Feb. 7, 2023, 3:13 p.m.