View source: R/contactGroup_utils.R
getBandMatrix | R Documentation |
Get band matrix from ContactGroup.
getBandMatrix(cg, band.no=1)
cg |
A ContactGroup object. |
band.no |
Integer specifying which matrix band. |
A band matrix is a matrix whose columns are the band.no
-th
off-diagonal of each sample's contact matrix. If there are k
samples and matrix band band.no
has r
entries, then the
returned band matrix is of dimension r
x k
.
A matrix with one column per sample in the ContactGroup and number of rows equal to the length of the matrix band.
ContactGroup, getBandIdx, band
data(cgEx)
b2 <- getBandMatrix(cgEx, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.