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

lookup features using regex #91

Closed jimrybarski closed 4 years ago

jimrybarski commented 4 years ago

RuleSet and FilterSet should have an optional regex keyword argument for each method which will cause the lookup of the Feature to be done using the given regex. For the most part all of the work can be handled by updating the Operon.get() method to do this. This needs to be backwards compatible so that I don't need to rewrite every test, which would be unbearable.