cor.ld: cor.ld : Correlation calculation with nearest neighbor in...

Description Usage Arguments Details Value

View source: R/useFonc.r

Description

cor.ld : Correlation calculation with nearest neighbor in mDNA matrix

Usage

1
cor.ld(meth, annot, pas = 1)

Arguments

meth

matrice of mDNA

annot

annotation file of the mDNA matrix (Illuminina type)

pas

1 by default, corresponds to the nearest neighbor. 2 for the second closest neighbor and etc ...

Details

This function makes it possible to calculate the correlation with the nearest neighbor (or the second or third, etc.). Correlation of pearson by default. This function orders the mDNA matrix following chromosomes and chromosome positions and uses the cor.pas() function to calculate the correlation for each chromosome. Moreover the distance between each neighbor is calculated.

Value

a matrix, with a correlation vector, a genetic distance vector.


jumentib/useFonc documentation built on Nov. 18, 2019, 3:17 p.m.