<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Adegenet users<br class=""><br class="">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.<br class=""><br class=""><div class="">Here's the error:<br class=""><br class=""></div><div class="">> Dgen_rw <- dist.genpop(gp_rw, method = 2)<br class="">Error in out[, colnames(x@tab), drop = FALSE] : subscript out of bounds<br class=""><br class=""><br class="">To get to this point, I:</div><div class="">read in SNP loci as a .geno object<br class="">Convert .geno -> genind<br class="">Read in population names<br class="">Convert genind -> genpop and provide popnames<br class="">run the dis.genpop() function.<br class=""><br class="">Any ideas why the subscript is being returned as out of bounds?<br class=""><br class="">Thanks in advance for your help,</div><div class=""><br class="">Karl Fetter<br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline">Graduate Student</div><div class="">Keller Lab</div><div class="">Department of Plant Biology</div><div class="">University of Vermont</div><div class=""><a href="mailto:kfetter@uvm.edu" class="">kfetter@uvm.edu</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>