DessimozLab / read2tree

a tool for inferring species tree from sequencing reads
MIT License
144 stars 18 forks source link

RuntimeError: generator raised StopIteration #45

Open bernard-kim opened 1 year ago

bernard-kim commented 1 year ago

A test run with long read data and the following read splitting options resulted in an error:

read2tree [ ... options ... ] --read_type long --split_reads --split_len 20000 --split_overlap 1000
RuntimeError: generator raised StopIteration

This appears to be an issue with FastxReader.py caused by Python>=3.7, as detailed in https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app

Recoding FastxReader.py (on my local machine) to handle the StopIteration as described in that post seems to fix the issue.