Re: [R] stats 'dist' euclidean distance calculation

2018-03-15 Thread Bert Gunter
and I believe this whole thread may fit better at the Bioconductor list rather than here. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On

Re: [R] stats 'dist' euclidean distance calculation

2018-03-15 Thread S Ellison
> 3x3 subset used > Locus1 Locus2 Locus3 > Samp1 GG GG > Samp2 AG CA GA > Samp3 AG CA GG > > The euclidean distance function is defined as:

Re: [R] stats 'dist' euclidean distance calculation

2018-03-15 Thread Eric Berger
Hi Cheyenne, I noticed one thing that might be helpful to you. First, I took a shortcut to the case of interest: > m <- matrix(c(2,1,1,0,1,1,NA,1,1,NA,1,1,2,1,2,0,1,0),nrow=3) > colnames(m) <- c("1.G","1.A","2.C","2.A","3.G","3.A") > m # 1.G 1.A 2.C 2.A 3.G 3.A # [1,] 20 NA

[R] stats 'dist' euclidean distance calculation

2018-03-15 Thread Cheyenne Yancey Payne
Hello, I am working with a matrix of multilocus genotypes for ~180 individual snail samples, with substantial missing data. I am trying to calculate the pairwise genetic distance between individuals using the stats package 'dist' function, using euclidean distance. I took a subset of this