This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Tools For Calculating Pairwise R2 Ld Estimator Between Snps In Different Scaffolds

Hi all,

I am estimating the pairwise r^2 LD estimator between SNPs I have selected for a SNP chip. I would like to estimate this r^2 between any pair of SNPs selected despite their location in different scaffolds. (I have several genotypes for each marker). I am using vcftools to do so. Otherwise I get only the r2 estimates between SNPs within the same scaffold. Does anyone know how to do it between any pair of SNPs, regardless of the situation?

Thanks a lot in advance, best!

ld vcftools

1 answer

You could try the function 'snpgdsLDMat' in the R package SNPRelate.

Log in to answer this question.