View source: R/compute_freq_alt.R
compute_freq_alt | R Documentation |
Computes frequency of alteration (fraction of non-zeroes)
compute_freq_alt(alt_mat)
alt_mat |
a matrix or vector of discrete values - 0s represent unaltered, non-zeroes altered |
the fraction of non-zeroes, (i.e. altered features/genes)
Rileen Sinha (rileen@gmail.com), Augustin Luna (aluna@jimmy.harvard.edu)
set.seed(1) tmp <- sample(c(0, 1), 100, replace=TRUE) mat <- matrix(tmp, 10, 10) compute_freq_alt(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.