Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix color choice based on object ID (#32)
The data portal now also supports UniProtKB accessions as `Annotation.object_id`. UniProtKB accessions can contain letters, so the ID can't be directly converted to an integers anymore. This PR instead uses `hash(Annotation.object_id.split(':')[-1])` to determine consistent colors for annotations of the same objects.
- Loading branch information