struct2geno error
0
0
Entering edit mode
2.8 years ago
genya35 ▴ 40

Hello,

I'm performing population analysis with LEA R package and it's been working with most datasets. However, with one data set, when I'm trying to convert a matrix to .geno format I get the following error. I've checked and I don't have any zero rows or columns in data. Any suggestions on how to fix this issue? Thanks

struct2geno(file = "home/mat_2.txt", TESS = TRUE, diploid = TRUE, FORMAT = 1, extra.row = 0, extra.col = 0, output = "mat2.geno")
Input file in the TESS format. The genotypic matrix has 300 individuals and 145.5 markers. 
The number of extra rows is 0 and the number of extra columns is 0 .
The input file contains no missing genotypes 
**Error in dat.2[2 * ii - 1, ] <- dat[ii, seq(1, L, by = 2)] : 
  number of items to replace is not a multiple of replacement length**
analysis population R • 668 views
ADD COMMENT

Login before adding your answer.

Traffic: 2230 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6