IDR / idr-utils

Utility scripts for managing IDR submissions
BSD 2-Clause "Simplified" License
2 stars 6 forks source link

Add script to find images #44

Closed dominikl closed 3 years ago

dominikl commented 3 years ago

Script to get a list of image IDs which names match a certain regular expression. Based on (just slightly modified): https://github.com/IDR/idr0108-sabinina-nuclearporecomplex/blob/main/scripts/find_images.py) Apart from idr0108 I used it for a few other studies. Often images which need particular rendering settings, pixel sizes, etc. set after import, can be distingushed by a common name pattern. The output can be used to successively call omero render etc. in for loop or used with parallel.

joshmoore commented 3 years ago

Makes sense, and we certainly don't have anything that would do this today (other than listing all and using grep). Thinking about where we might want to have this one day, two things occur to me:

joshmoore commented 3 years ago
./scripts/annotate/find_images.py:3:1: F401 'os' imported but unused
dominikl commented 3 years ago

Btw, I thought as well, ideally that should be done on the server side. But simply doing some regex matching on the client side for now, is just easier and quicker than going through the whole stack.

joshmoore commented 3 years ago

But simply doing some regex matching on the client side for now, is just easier and quicker :+1: