Question: Lositan: problems reading genepop files
0
gravatar for baumsib
5.0 years ago by
baumsib0
Germany
baumsib0 wrote:

Hello,

I have installed lositan on Windows (Windows 7, Java vers 8, 64-bit) and the example file runs fine. However, when I load my genepop file I get the following error in Java:

Exception in thread "AWT-EventQueue-2" Traceback (most recent call last):
  File ".lositan\Main.py", line 853, in actionPerformed
    chooseFile()
  File ".lositan\Main.py", line 192, in chooseFile
    updateAll()
  File "\.lositan\Main.py", line 101, in updateAll
    selRec2.remove_loci_by_name(remLoci, lpath + os.sep + "sr.tmp")
  File "\.lositan\Bio\PopGen\GenePop\FileParser.py", line 337, in remove_loci_by_name
    self.remove_loci_by_position(positions, fname)
  File "\.lositan\Bio\PopGen\GenePop\FileParser.py", line 311, in remove_loci_by_position
    l_parser = old_rec.get_individual()
  File "\.lositan\Bio\PopGen\GenePop\FileParser.py", line 183, in get_individual
    indiv_name, allele_list, ignore = get_indiv(line)
  File "\.lositan\Bio\PopGen\GenePop\__init__.py", line 31, in get_indiv
    indiv_name, marker_line = line.split(',')
ValueError: need more than 1 value to unpack

I have tested the genepop file in "genepop on the web" and it runs there without issue. Any ideas what causes this and how to fix it?

 

Thanks!

 

lositan software error • 1.7k views
ADD COMMENTlink modified 5.0 years ago • written 5.0 years ago by baumsib0

Hello,

I found the issue - the individual names were too long. I replaced names of individuals with "Ind1 ... Ind100" and now the file reads fine.

ADD REPLYlink written 5.0 years ago by baumsib0
0
gravatar for baumsib
5.0 years ago by
baumsib0
Germany
baumsib0 wrote:

Hello,

I found the issue - the individual names were too long. I replaced names of individuals with "Ind1 ... Ind100" and now the file reads fine.

ADD COMMENTlink written 5.0 years ago by baumsib0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 972 users visited in the last hour