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

truncate cluster names for really long operons #156

Closed alexismhill3 closed 4 years ago

alexismhill3 commented 4 years ago

closes #150

In the unlikely event that two distinct clusters have the same truncated name, operon plots from both clusters will be written to the same directory.

jimrybarski commented 4 years ago

Why not add a random string to ensure uniqueness like you had proposed?

alexismhill3 commented 4 years ago

Added a line to append a random 6 character string to the truncated directory name. Tested on some real data and it seems to work fine.