Skip to content
Prev 113 / 490 Next

Linkage disequilibrium estimation

Hi Vikram & Felipe,

The default for both LD() and LD2() is locus = 1:2 but this is meant to 
be locus = c(1, 2), only two values should be given and these values are 
the colum numbers of the "loci" data. So what Felipe wants is:

LD2(x, locus = c(50, 59))

50:59 is similar to c(50, 51, ....... 59)

I have changed the definitions of these two functions so that they are now:

      LD(x, locus = c(1, 2), details = TRUE)
      LD2(x, locus = c(1, 2), details = TRUE)

and the help page has been slightly changed to be (hopefully) clearer:

      locus: a vector of two integers giving the loci to analyse.

For the record, LDscan() can analyse several loci at the same time but 
it works only with phased genotypes and loci must be biallelic.

Best,

Emmanuel

Le 21/11/2016 ? 15:52, Vikram Chhatre a ?crit :