<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div>Hi, </div><div>I was trying to apply snapclust function on my genind object (from structure input file). Here I used prior K and pop.ini was factor of pop id  (numbers) for all individuals.  snapclust initially reads the geneind object and then exits with error  "<span>Error in t(ll)[cbind(seq_along(group), as.integer(group))] : subscript out of bounds".  I tried to google,  but no luck. snapclust works perfectly when I use it with find.clusters (pop.ini =geneindobject$grp),<br></span><br></div><div><br></div><div class="ydpd343bc63signature"><div style="font-size:16px;"><div> </div><div>With regards, <br><b>Shri</b><b style="color:rgb(0, 0, 0);"><br><br></b></div></div></div></div></div></body></html>