I’m working right now on a loop workflow for reading in Images (e.g. tif, czi). Right now I am stuck and I wanted to ask if it’s at least theoretical possible what I am trying to achieve.
My intension is that when you perform very long term experiments, like 3+ days you’re getting a lot of data from your Microscope. So after waiting 4 days for the experiment to be finished you can start your KNIME workflow and analyze the images. That will cost again maybe many hours or even a few days. Now I’m trying to shorten that.
Let’s say you have a folder which is continuously filled with the Images from the Microscope software (e.g. 50 Images per minute).
Is it possible to create a KNIME workflow which is continuously checking that folder for new Images (e.g. every minute or so), loads the new ones in, performs some Image analysis (e.g. Segmentation, Watershed,...), and collects the results (adding the new columns to a table). And maybe even seeing the results live while the experiment/workflow is running ???
Martin and me were also curios if this is doable ;-) So we decided to give it a try and compose such a workflow: The good new is: Yes, it works. The more or less bad news is: It involves a little trick.
Attached you find the workflow. Just put whatever you want after the image reader and connect it to the in-ports to which the image reader is currently connected. If you run the workflow it will run forever (to be precise it runs min-number iterations, see configuration of loop end). Now the tricky part: If you want to stop the workflow you have to delete the file "DELETE_ME" in the directoy you specified (see annotations for details). We are pretty sure there will be more elegant ways to do all this stuff in the future, but hey... it works and does hopefully exactly what you want.
If you face any problems, let us know. This was really fun creating the workflow and we are happy to improve it :-)
Thanks karelman I have also a Mac so I will look into that too.
Martin and Christian,
it seems to work. All Images I am putting into the folder are loaded and analyzed. But I can’t spot the delte_me file. It should be in the same folder I am using for the Images right ? It does not appear :(
do some of the nodes in the workflow complain about something? can you check node CREATE MARKER FILE and maybe replace "directory" with manual path and see if a file was created?
Seems to be FileSystem related. I will try it on a MAC as soon as possible!