Welcome to the Allen Cell Discussion Forum, the official community site for Allen Institute for Cell Science! This forum is a place for learning, helping, and sharing experiences of using our publicly-available cell lines, plasmids, genomic data, software, and analytic tools.
Get started: read our new user guide and know our community guidelines.
I am trying to batch process my images in the segmenter using the provided template and tutorial. I have followed all the instructions, however, when I try to execute the process I keep getting an error (see attached image). I would please like some assistance resolving this issue.
great! one problem solved! let’s look at this one.
Right now, my current implementation of the error message is not very mature, which needs to be improved in the next release.
The current message could be the results of two things. i will try to help figure it out.
(1) it looks like you have a new workflow called Actin. So, a file called workflow_Actin.py is expected in the folder ‘structure_wrapper’, and a function call Workflow_Actin is expected in the file. The exact string ‘Actin’ is used as the key to identify all these things, so double-checking the string could help to make the file and the function do exist with the correct name
(2) if the above step shows no error, it could be some error in your workflow_Actin.py maybe comment out all lines in the function and run that again and see if you still see the error. If the error is gone, it means some line has errors.
I would love to help. Yes, we do have a more flexible way to run batch processing on customized wrapper now. Could you do a quick check on the following thing?
In your conda environement, can you do pip show aicssegmentation and see what is printed out?
Basically, I just pass in the extra parameter --wrapper_dir to let the program know where I save the wrapper, no matter where.
Note: Suppose you structure is called actin. Then, you will need to name your wrapper script as seg_actin.py and inside seg_actin.py, the function name has to be Workflow_actin. Then, when pass in the --workflow_name, you need to use actin.
Let me know if you have more questions. Hopefully, the extra parameter --wrapper_dir can make the batch_processing much easier. In my case, I usually put all my customized wrapper in the centralized place, and always use that directory for --wrapper_dir to keep my code organized.