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

Reproducible results #43

Open
stevendavis opened this issue Jul 17, 2019 · 2 comments
Open

Reproducible results #43

stevendavis opened this issue Jul 17, 2019 · 2 comments
Assignees

Comments

@stevendavis
Copy link
Contributor

Is there a way to generate identical results when running ttr with identical config files? I'm seeing different results in the seqs_sim.txt, sim.vcf, and var_site_matrix files.

@snacktavish
Copy link
Owner

It is possible to set the random seed, whish should give identical results. What random seed was chosen which should be printed out in your log file. But that isn't in the config, you would have to do it here.

self.seed = random.randint(0, sys.maxsize)

I will update the config file to make it easier to specify the seed.

@snacktavish snacktavish self-assigned this Jul 17, 2019
@snacktavish
Copy link
Owner

I added a random seed in the config on branch dev. Will add tests and merge soon.

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

2 participants