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

let the feature colors dictionary take regex keys #115

Closed jimrybarski closed 4 years ago

jimrybarski commented 4 years ago

When we re-BLAST with a non-gene_finder-formatted database, the gene labels can't be used to set colors since they will vary widely (as they are just the entire description from the protein database). Having a regex to match against them is probably our best bet if we want to avoid single-color operon figures. This should be backwards compatible without much of a fuss.

alexismhill3 commented 4 years ago

I think that would definitely be useful for us, since we have some idea of what to expect as far as gene annotations go. Also maybe we could have the default be to alternate between 10 colors or something (instead of making everything blue)