zheminzhou / PEPPAN

Phylogeny Enhanded Prediction of PAN-genome
https://doi.org/10.1101/2020.01.03.894154
GNU General Public License v3.0
39 stars 10 forks source link

Error with PEPPAN_parser related to the captured group #18

Open matrs opened 3 years ago

matrs commented 3 years ago

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

Detective-moneill commented 2 years ago

Hello. I am getting the same error. Did you ever get a response? Thanks!

matrs commented 2 years ago

Hello. I am getting the same error. Did you ever get a response? Thanks!

Hello, I didn't receive a response and I really don't remember if I fix it in someway, because I did run it sucessfully a few times.