PEPPAN icon indicating copy to clipboard operation
PEPPAN copied to clipboard

Error with PEPPAN_parser related to the captured group

Open matrs opened this issue 3 years ago • 2 comments

Hello, Thanks for this free software.
I ran PEPPAN 1.0.6 successfully, but when I try to run the parser I got the following error, related to the captured group:

PEPPAN_parser -g blau_all.PEPPAN_head100.gff

Traceback (most recent call last):
  File "/home/mibu/miniconda3/envs/bif2020/bin/PEPPAN_parser", line 8, in <module>
    sys.exit(PEPPA_parser())
  File "/home/mibu/miniconda3/envs/bif2020/lib/python3.8/site-packages/PEPPAN/PEPPAN_parser.py", line 206, in PEPPA_parser
    ortho = getOrtho(param.gff, param.pseudogene)
  File "/home/mibu/miniconda3/envs/bif2020/lib/python3.8/site-packages/PEPPAN/PEPPAN_parser.py", line 58, in getOrtho
    orthos = [ [o, int(aId) if aId.isdigit() else -1] for o, aId in [ o.split(':')[1:3] for o in ortho.split(',') ]]
  File "/home/mibu/miniconda3/envs/bif2020/lib/python3.8/site-packages/PEPPAN/PEPPAN_parser.py", line 58, in <listcomp>
    orthos = [ [o, int(aId) if aId.isdigit() else -1] for o, aId in [ o.split(':')[1:3] for o in ortho.split(',') ]]
ValueError: not enough values to unpack (expected 2, got 1)

blau_all.PEPPAN_head100.gff contains the first 100 lines from the output gff from PEPPAN. I'm attaching it in case you want to test it (has .txt file type because github complains other way): blau_all.PEPPAN_head100.gff.txt

Hope this is enough information,

Regards

Jose Luis

matrs avatar Jan 19 '21 17:01 matrs