ome / omero-cli-transfer

An OMERO CLI plugin for creating transfer packets between OMERO servers.
https://pypi.org/project/omero-cli-transfer/
GNU General Public License v2.0
16 stars 14 forks source link

object references in tables broken after unpack #64

Open juliomateoslangerak opened 1 year ago

juliomateoslangerak commented 1 year ago

Hi, Awesome job!

While using cli-transfer, I realized that the links to the different objects in a reimported table were broken. Presumably because the object ids are different after reimport.

Would it be an option to reprocess tables to get the new ids according to image name?

erickmartins commented 1 year ago

right now we are not touching tables at all - by design. they are fiddly and not trivial to use and, especially, to edit. Internally, the code has access to the mapping between (image) source and destination IDs, so this should be possible. Right now, the priority would be to edit Figures in a similar way.

for the moment, a possible workaround is using metadata included in the provenance MapAnnotation - that can include source IDs for images, so you can query images after transfer to see what their original IDs were and replace them where necessary.