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.
Tests were broken because some SegmentationMasks were ingested with the wrong data type (f32). I fixed that in production for the Tomogram that is used in tests here.
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 useshash(Annotation.object_id.split(':')[-1])
to determine consistent colors for annotations of the same objects.