R-Script vs CellProfiler API

Dear Community,

I just made my first steps with CP3 and have now devised a very robust pipeline which we’re going to use a lot in the near future. Next, i am going to write an R-Script that extracts the values from the output spreadsheets of my pipeline and performs some statistical analyses (+plotting) on them. Ideally, the output would be looped through such that it all runs automatically from the point of selecting the pictures of interest. Is there a way to a) call a cellprofiler pipeline from within R or b) forward the output from within cellprofiler and execute a given Script?

Many thanks in advance!
With kind regards,
H2AX

Hi! Sounds like a great automation you will be setting up.
Maybe this could help? https://github.com/CellProfiler/notebooks
(if not, there are other CellProfiler + Jupyter things in existence if you google them, but I’m unfamiliar with them all myself!)

It looks like a job for a workflow management system.

Maybe have a look at KNIME (https://www.knime.com/) specifically KNIME image processing: https://www.knime.com/community/image-processing.

You can run whole cell profiler pipelines within KNIME and do data processing and analysis directly there. I think it is also possible to run R scripts from knime.

The Knime platform looks indeed very suited for this task. However, i will have to spend quite some time learning how to use it. Initially i was hoping for some API plugin in combination with the frameworks that i already know. However, the Jupyter notebooks are way over my head, so this hits closer to home. I’ll let you know in a couple of months :stuck_out_tongue:

1 Like