Title: | Multiple Change Point |
---|---|
Description: | Nonparametric approach to estimate the location of block boundaries (change-points) of non-overlapping blocks in a random symmetric matrix which consists of random variables whose distribution changes from block to block. BRAULT Vincent, OUADAH Sarah, SANSONNET Laure and LEVY-LEDUC Celine (2017) <doi:10.1016/j.jmva.2017.12.005>. |
Authors: | Brault Vincent [cre, aut], Cougoulat Glenn [ctb], Ouadah Sarah [ctb], Sansonnet Laure [ctb] |
Maintainer: | Brault Vincent <[email protected]> |
License: | GPL-2 |
Version: | 0.6.3 |
Built: | 2025-03-09 03:25:49 UTC |
Source: | https://github.com/lionning/muchpoint |
Compute the Delta of the dynamic programming in Rcpp
Compute_Cn1n2(x)
Compute_Cn1n2(x)
x |
the matrix of rank |
Produce a block-wise estimation of a symmetric matrix.
MuChPoint(Y, Lmax = nrow(Y)/2, N = NULL, cores = 1, verbose = TRUE)
MuChPoint(Y, Lmax = nrow(Y)/2, N = NULL, cores = 1, verbose = TRUE)
Y |
symmetric matrix of observations. |
Lmax |
a positive integer less than number of columns (and number of rows).
By default, |
N |
a positive integer vector less than number of columns (and number of rows).
N is used when the break-points are known.
By default, |
cores |
a positive integer giving the number of cores used. If you use windows, the parallelization is impossible. By default, 1. |
verbose |
logical. To display the progression bars. By default TRUE. |
Article: BRAULT V., OUADAH S., SANSONNET L. and LEVY-LEDUC C. Nonparametric homogeneity tests and multiple change-point estimation for analyzing large Hi-C data matrices. Journal of Multivariate Analysis, 2017
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,5),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) plot(res,Y,L=5,shiny=FALSE) plot(res,Y,L=1:10,shiny=FALSE,ask=FALSE)
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,5),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) plot(res,Y,L=5,shiny=FALSE) plot(res,Y,L=1:10,shiny=FALSE,ask=FALSE)
Class of object returned by the MuChPoint
function.
## S4 method for signature 'MuChPoint' show(object)
## S4 method for signature 'MuChPoint' show(object)
object |
an object with class |
S
a vector object of type numeric
,
giving the values of the statistics S_n(n_1,...,n_L) following the number L.
N
a numeric vector with the position of the different break-points.
bt
an inferior triangular matrix containing the positions of break-points following the number of break-points (in rows).
Article: BRAULT V., OUADAH S., SANSONNET L. and LEVY-LEDUC C. Nonparametric homogeneity tests and multiple change-point estimation for analyzing large Hi-C data matrices. Journal of Multivariate Analysis, 2017
See also plot,MuChPoint-method
and MuChPoint
.
MuChPoint
fit.Produce a plot of two-dimensional segmentation of a MuChPoint
fit.
## S4 method for signature 'MuChPoint' plot(x, y, shiny = TRUE, col = "Color", L = NULL, ask = TRUE)
## S4 method for signature 'MuChPoint' plot(x, y, shiny = TRUE, col = "Color", L = NULL, ask = TRUE)
x |
an object of class |
y |
used for S4 compatibility represented the matrix (typically,
the matrix used in the program |
shiny |
for a representation with a shiny application. |
col |
for the colors of the representations. |
L |
the summarized matrix with L break-points (L can be a vector). |
ask |
If |
Article: BRAULT V., OUADAH S., SANSONNET L. and LEVY-LEDUC C. Nonparametric homogeneity tests and multiple change-point estimation for analyzing large Hi-C data matrices. Journal of Multivariate Analysis, 2017
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,2),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) plot(res,Y,L=5,shiny=FALSE) plot(res,Y,L=1:10,shiny=FALSE,ask=FALSE)
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,2),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) plot(res,Y,L=5,shiny=FALSE) plot(res,Y,L=1:10,shiny=FALSE,ask=FALSE)
MuChPoint
function.Print for the class of object returned by the MuChPoint
function.
## S4 method for signature 'MuChPoint' print(x, N = NULL)
## S4 method for signature 'MuChPoint' print(x, N = NULL)
x |
an object with class |
N |
a numeric between 1 and length(x@N) for the number of break-points desired. |
MuChPoint
object.Summary of a MuChPoint
object.
## S4 method for signature 'MuChPoint' summary(object)
## S4 method for signature 'MuChPoint' summary(object)
object |
an object of class |
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,2),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) summary(res)
require(MuChPoint) mu=c(rep(c(rep(1,25),rep(0,25)),3))%*%t(rep(c(rep(0,25),rep(1,25)),3)) Y=matrix(rnorm(150^2,0,2),150)+mu+t(mu) Y=as.matrix(Matrix::forceSymmetric(Y)) res=MuChPoint(Y) summary(res)