Lositan: problems reading genepop files
1
0
Entering edit mode
9.5 years ago
baumsib • 0

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!

software-error lositan • 2.8k views
ADD COMMENT
0
Entering edit mode
9.5 years ago
baumsib • 0

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 COMMENT

Login before adding your answer.

Traffic: 3199 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