[adegenet-forum] structure import error

Jombart, Thibaut t.jombart at imperial.ac.uk
Mon Jul 6 11:22:33 CEST 2015


Hello,

which version of adegenet are you using?

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 Vikram Chhatre [crypticlineage at gmail.com]
Sent: 01 July 2015 19:01
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] structure import error

I am having trouble importing a structure dataset.  Can someone decipher this error message?

import2genind('data.str', onerowperind=F, row.marknames=1, n.ind=296, n.loc=84761, col.lab=1, col.pop=2, ask=F)

Error in mat[, (ncol(mat) - p +1):ncol(mat)]:
  only 0's may be mixed with negative subscripts.

I am able to read the data in R as a data frame and the dimensions are as expected.  The df2genind(data.str) conversion also works ok, except that it reads the file as ONEROWPERIND=1, which is not what I want.

Thanks
Vikram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150706/fce8f5ca/attachment.html>


More information about the adegenet-forum mailing list