Skip to content
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

save checkpoint to a designated directory? #290

Open
LiQian-XC opened this issue Sep 26, 2023 · 5 comments
Open

save checkpoint to a designated directory? #290

LiQian-XC opened this issue Sep 26, 2023 · 5 comments

Comments

@LiQian-XC
Copy link

Hi,

Thank you for developing this useful tool.

When I run cellbender (v.0.3.0), I found that the checkpoint file (ckpt.tar.gz) was saved under the current directory, not in the same directory as output (I saved output in a different directory). I'm wondering whether I can specify a path for the checkpoint.

Thank you in advance.

Best,
Qian

@shahrozeabbas
Copy link

Having a similar problem, Cellbender needs to be run/called in the directory with your data as you can't provide a path to the checkpoint. Not a major issue, but it hinders usage in a workflow.

@ergonyc
Copy link

ergonyc commented Nov 18, 2023

+1
This is a crucial feature for running this in most workflows.

@nfancy
Copy link

nfancy commented Feb 13, 2024

+1
I agree, my array jobs on PBSpro are failing due to a mismatch between the ckpt.tar.gz hashes. I am using the singularity image of cellbender and the default directory is my home dir. So, each new job is replacing the ckpt.tar.gz of a previous job.

@esrice
Copy link

esrice commented Feb 26, 2024

I'm also having this issue. Would be great if there were an argument to choose where to save this file.

@nfancy
Copy link

nfancy commented Feb 27, 2024

If it is helpful to anyone, I've managed to save the ckpt.tar.gz in the sample directory using singularity var $HOME in the following way:

singularity exec \
--nv -B ${in_dir}:$HOME \
us.gcr.io-broad-dsde-methods-cellbender-0.3.0.img \
cellbender remove-background \
--input $input_file \
--output $output_dir/output.h5

This way, the cpkt.tar.gz are saved in the individual sample directory thus are not overwritten by another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants