[adegenet-forum] Error in constructing dist.genpop object

Jombart, Thibaut t.jombart at imperial.ac.uk
Thu Oct 29 18:49:24 CET 2015


Hi there,

this is hard to tell without a reproducible example. Can you post data+code as a new issue on github?

Cheers
Thibaut

________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Karl Fetter [kfetter at uvm.edu]
Sent: 27 October 2015 14:50
To: adegenet-forum at r-forge.wu-wien.ac.at
Subject: [adegenet-forum] Error in constructing dist.genpop object

Hi Adegenet users

I have a question regarding an error in adegent I want to run by you all. I'm trying to calculate isolation by distance using about 1600 SNP loci.

Here's the error:

> Dgen_rw <- dist.genpop(gp_rw, method = 2)
Error in out[, colnames(x at tab), drop = FALSE] : subscript out of bounds


To get to this point, I:
read in SNP loci as a .geno object
Convert .geno -> genind
Read in population names
Convert genind -> genpop and provide popnames
run the dis.genpop() function.

Any ideas why the subscript is being returned as out of bounds?

Thanks in advance for your help,

Karl Fetter

Graduate Student
Keller Lab
Department of Plant Biology
University of Vermont
kfetter at uvm.edu<mailto:kfetter at uvm.edu>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151029/1ca6bd38/attachment-0001.html>


More information about the adegenet-forum mailing list