View source: R/classifyByKnownClasses.R
padEndToRange | R Documentation |
This function compensates for shrinking of a matrix due to the application of a sliding window to data. It will add the columns that are missing from the edges of the matrix to the full xRange. they will take the values from the first or last columns of the matrix. This might be useful for classMeans derived from multi-gene windowed matrices when they have to be applied to single gene matrices.
padEndToRange(dataMat, xRange = c(-250, 250))
dataMat |
A matrix of methylation or bincount values (reads x position) |
xRange |
A vector of the first and last coordinates of the region to plot (default is c(-250,250)) |
A matrix with additional columns corresponding to any positions that missing from the matrix relative to the xRange. These columns will take the value of the firts and last columns of the original matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.