Description Usage Arguments Value Examples
PoisMS function calculates the Poisson Metric Scaling solution for a contact matrix C and a spline basis matrix H. The optimal solution is found via minimizing the negative log-likelihood for the Poisson probabilistic model C~Pois(Λ) with
log(Λ) = -D^2(X) + β
w.r.t. Θ subject to the smooth curve constraint X = HΘ. Here D(X) refers to the matrix of pairwise distances. The solution can be calculated via iterating the second order approximation of the objective (outer PoisMS loop) and applying WPCMS to optimize the obtained quadratic approximation (inner WPCMS loop). The spatial coordiantes of the resulting reconstruction are presented in X.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
C |
a square symmetric matrix representing a Hi-C contact matrix. |
H |
a spline basis matrix. By default assumed to have orthogonal columns. If not, orthogonalization should be done via QR decomposition. |
beta0 |
an initialization for intercept beta. By default |
Theta0 |
an initialization for spline basis coefficient matrix Theta. By defaul |
update_beta |
If |
eps_wpcms, eps_poisms |
positive convergence tolerances for WPCMS inner loop and PoisMS outer loop. |
maxiter, maxepoch |
integers giving the maximal numbers of iterations for WPCMS inner loop and PoisMS outer loop. |
verbose_wpcms, verbose_poisms |
logical. If |
A list containing the PoisMS problem solution:
Theta
– the matrix of spline parameters.
X
– the resulting conformation reconstruction.
beta
– the resulting intercept value.
loss
– the resulting value of the PoisMS loss.
epoch
– the total number of epochs.
iter_total
– the total number of iterations.
plot
– the list of PoisMS plots: 'loss' corresponds to loss vs. epoch plot, 'intercept' represents beta vs. epoch plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.