This function works on a Vmat (the output of computeVmat()). It shuffles the matrix to randomize the fragment densities.

shuffleVmat(Vmat)

Arguments

Vmat

A Vmat, usually output of computeVmat

Value

A shuffled Vmat object

Examples

data(bam_test)
data(ce11_all_REs)
Vmat <- computeVmat(bam_test, ce11_all_REs)
Vmat <- shuffleVmat(Vmat)