compute_freq_alt: Computes frequency of alteration (fraction of non-zeroes)

View source: R/compute_freq_alt.R

compute_freq_altR Documentation

Computes frequency of alteration (fraction of non-zeroes)

Description

Computes frequency of alteration (fraction of non-zeroes)

Usage

compute_freq_alt(alt_mat)

Arguments

alt_mat

a matrix or vector of discrete values - 0s represent unaltered, non-zeroes altered

Value

the fraction of non-zeroes, (i.e. altered features/genes)

Author(s)

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

Examples

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


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