A weird behavior of linkAnnotation
Posted: Sun Jul 01, 2018 7:37 pm
I'm just experiencing a weird behavior of OMERO. Maybe I've been overlooking something simple, but I can't figure it out. I've got 11 images with imageIDs 14 to 24.
omero_xlsIHC2MapAnnotation() takes out data in a specified Exel file and turn it into a MapAnnotationI object. The first two operations of linkAnnotation worked as expected; Only the specified images get MapAnnotations. However, the third use of linkAnnotation somehow added all the images in Dataset, and I can't figure out the logic behind it. This has been reproducible in my environment.
Can you guess anything?
omero_xlsIHC2MapAnnotation() takes out data in a specified Exel file and turn it into a MapAnnotationI object. The first two operations of linkAnnotation worked as expected; Only the specified images get MapAnnotations. However, the third use of linkAnnotation somehow added all the images in Dataset, and I can't figure out the logic behind it. This has been reproducible in my environment.
Can you guess anything?
- Code: Select all
% imageIDs 14:24
k3 = [19:22,24]
k2 = [17:18]
k1 = [14:16]
ma30 = getObjectAnnotations(session, 'map', 'image', 19)
unlinkAnnotations(session,'image',[k1,k2,k3,23],ma30)
ma1 = omero_xlsIHC2MapAnnotation(xlsfile,sheet,[128,130]);
linkAnnotation(session,ma1,'image',k1)
ma2 = omero_xlsIHC2MapAnnotation(xlsfile,sheet,[132,134]);
linkAnnotation(session,ma2,'image',k2)
ma3 = omero_xlsIHC2MapAnnotation(xlsfile,sheet,[137,140]);
linkAnnotation(session,ma3,'image',k3)