-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaling sopa to run many images #103
Comments
Hello, Have you updated |
I have not updated utils.py, will do that :) To be explicit: SAMPLES = ["/data/input/1.ome.tif", "/data/input/2.ome.tif", "/data/input/3.ome.tif", "/data/input/4.ome.tif"]
rule prepare_image:
input:
raw_image= expand("{sample}", sample=SAMPLES) |
I meant something like |
Hey @quentinblampey, So I have tried a couple of things. Happy to hear your comments. |
Hey, sorry to hear it's still not working. I have to say I still find Snakemake confusing sometimes, so I don't really know how to make this work without many trials and errors. One question: why do you want to run everything at once? I personally prefer to run Sopa on one slide at a time; this way, if one slide fails, it will not make the other images fail. Also, I personally use InquirerPy to prompt and execute the pipeline, which makes it very easy to run multiple slides. See this example here, which asks to choose a config and an existing data directory. With a similar idea, you could also use a multi-select to run multiple snakemake commands at once. I also made this prompt available for other users of my institute, so it's pretty easy for them to run Sopa. |
Dear @quentinblampey
I am in the process of changing the provided Snakefile to run many samples (images) at once.
I am replacing the inputs and outputs paths to include the {sample} wildcard.
I however run into an issue with
get_input_resolve
since it handles all the patches itself.Do you have any suggestions here?
Should I create my own get_input_resolve to include the {sample} wildcard?
I tried replacing the paths to relative paths with wildcards, but the ChildIOException starts appearing..
Any thoughts are welcome, current snakefile below:
Snakefile
The text was updated successfully, but these errors were encountered: