View source: R/averageMatrixEdges.R
averageMatrixEdges | R Documentation |
Averages the columns and rows of a matrix by a certain amount.
averageMatrixEdges(unchangedmatrix, nedges = 1, dimension = c("row", "column"))
unchangedmatrix |
A matrix to have edges averaged with genomic coordinates in the form chr1_50_100 set as the column and row names. |
nedges |
The number of edges to be averaged |
dimension |
Selectively averages edges in one dimension. Performs symmetric edge averaging by default. |
averaged_matrix A matrix with edges averaged, which may be more amenable to downsampling
load(system.file("extdata","nbl_result_matrix_sign_small.rda",package = "CNVScope")) dim(nbl_result_matrix_sign_small) nbl_result_matrix_sign_small_avg<-averageMatrixEdges(nbl_result_matrix_sign_small, nedges=1,dimension="row") dim(nbl_result_matrix_sign_small_avg) nbl_result_matrix_sign_small_avg<-averageMatrixEdges(nbl_result_matrix_sign_small, nedges=1,dimension="column") dim(nbl_result_matrix_sign_small_avg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.