Skip to content
Prev 172 / 490 Next

ape, read.dna to phase fasta file not working properly, tajima

Hello,

I wanted to send a follow-up note to say that the developer helped me with
my problem. His reply was
The problem is that your data are too big (too many sequences) and
tajima.test() needs to compute the matrix of all pairwise distances. You
could this check by trying:

dist.dna(DNAbin8c18, "N")

One possibility for you is to sample randomly some observations, and repeat
this many times, eg:

tajima.test(DNAbin8c18[sample(n, size = 1000), ])

This could be:

N <- 1000 # number of repeats
RES <- matrix(N, 3)
for (i in 1:N)
    RES[, i] <- unlist(tajima.test(DNAbin8c18[sample(n, size = 10000), ]))

You may adjust N and 'size =' to have something not too long to run. Then
you may look at the distribution of the columns of RES.
On Wed, Aug 30, 2017 at 4:49 PM, Ella Bowles <bowlese at gmail.com> wrote: