This function computes the user-given association statistics and return the association profile over a genomic region.
assoTest(Dx, Dy, hapMat, nperm, method, xlab = "", ylab = "",
main = "")A numeric matrix of pairwise distances.
A second numeric matrix of pairwise distances.
An object of hapMat.
The number of times to permute the rows and columns of Dy.
Association methods. Use "HHG" for HHG test, "dCor" for dCor test, "Mantel" for mantel test, "RV" for RV test.
An optional character string for the label on the x-axis(none by default).
An optional character string for the label on the y-axis(none by default).
An optional character string for title(none by default).
A list of permutation p-values, corresponding statistics and a plot of association profile over SNV location.