wilkelab / Opfi

A Python package for discovery, annotation, and analysis of gene clusters in genomics or metagenomics data sets.
https://opfi.readthedocs.io/
MIT License
21 stars 5 forks source link

Fix invalid distances #51

Closed jimrybarski closed 4 years ago

jimrybarski commented 4 years ago

I got this error when running on real data:

  File "operon_analyzer/rules.py", line 108, in _must_be_within_n_bp_of_anything
    if min(distances) > distance_bp:
TypeError: 'NoneType' object is not iterable

I'm pretty sure this occurs when there's more than one of the same Feature and it can't be determined which one we're referring to.