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

Allow custom checkpoint location #406

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cellbender/remove_background/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,11 @@ def run_inference(dataset_obj: SingleCellRNACountsDataset,

logger.info('No checkpoint loaded.')

# If checkpoint is not loaded set output_checkpoint_tarball to checkpoint_filename
# In this way the user can use checkpoint option to set a custom locatio for checkpoint file
output_checkpoint_tarball = args.input_checkpoint_tarball
logger.info(f'New checkpoint file will be saved as {output_checkpoint_tarball}')

# Get the trimmed count matrix (transformed if called for).
count_matrix = dataset_obj.get_count_matrix()

Expand Down