Description Usage Arguments Value Examples
This function allows to plot reconstructed chromatin conformation X and corresponding contact matrix approximation XX'.
1 |
X |
a matrix representing spatial coordinates of resulting chromatin reconstruction. |
type |
the type of plot returned. Set |
index |
points where spline basis is evaluated; each corresponds to a particular genomic loci. |
title |
optional, adds title to the plot. Default value |
Reconstruction plots.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(C)
#transform contact counts to distances
Z = 1/(C+1)
#create spline basis matrix
H = splines::bs(1:ncol(C), df = 5)
#orthogonalize H using QR decomposition
H = qr.Q(qr(H))
#run WPCMS with equal weights
wpcms = WPCMS(Z, H)
#plot projection of reconstructed chromatin conformation
visualize(wpcms$X, type = 'projection')
#plot 3D model of reconstructed chromatin conformation
visualize(wpcms$X, type = '3D')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.