Skip to content
Prev 93 / 490 Next

extract the sequences of the haplotypes

Hi Susana,

In fact, the output of haplotype() _are_ the sequences of the haplotypes 
(= the unique sequences from your "finaldna" object). It has an 
additional attribute which is a list named "index" giving the indices of 
individuals belonging to each haplotype (so in your case a list with 27 
vectors). So you can, for instance, write these sequences in a file:

h <- haplotype(finaldna)
write.dna(h, "h.txt")

Best,

Emmanuel

Le 27/04/2016 02:32, Susana a ?crit :