Skip to content

Add --seed option#58

Open
ChangqingW wants to merge 1 commit into
COMBINE-lab:mainfrom
ChangqingW:main
Open

Add --seed option#58
ChangqingW wants to merge 1 commit into
COMBINE-lab:mainfrom
ChangqingW:main

Conversation

@ChangqingW
Copy link
Copy Markdown

Added an optional seed option to make output consistent across runs

@ChangqingW
Copy link
Copy Markdown
Author

Looks like --threads only affects the order of the cell barcodes but the counts are otherwise the same when a fixed seed is used, maybe forcing threads = 1 is unnecessary?

    // If a seed is provided force single-threaded execution
    if let Some(seed) = args.seed {
        info!("reproducibility: using seed {seed}; forcing single-threaded execution");
        args.threads = 1;
    }

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

Successfully merging this pull request may close these issues.

1 participant