View source: R/downsample_genomic_matrix.R
downsample_genomic_matrix | R Documentation |
Downsamples a matrix by a specified factor.
whole_matrix |
A matrix to be downsampled, on a single chromosome |
downsamplefactor |
A factor by which to reduce the matrix. Must be something that both the row and columns can be divisible by. |
singlechromosome |
Single chromosome mode; Multi-chromosome not yet implemented (leave T) |
whole_matrix_dsamp A downsampled matrix.
load(system.file("extdata","nbl_result_matrix_sign_small.rda",package = "CNVScope")) downsample_genomic_matrix(whole_matrix=nbl_result_matrix_sign_small, downsamplefactor=5,singlechromosome=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.