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

If executed multiple times, will the result of the data generated be the same each time? #52

Open
123xyl opened this issue Mar 16, 2023 · 5 comments

Comments

@123xyl
Copy link

123xyl commented Mar 16, 2023

If executed multiple times, will the result of the data generated be the same each time?

@jonassibbesen
Copy link
Contributor

If you use the same seed (option --random-seed) the results should be the same between each run.

@123xyl
Copy link
Author

123xyl commented Mar 23, 2023

But I have the same data, and each time I execute it, the file is different.

@jonassibbesen
Copy link
Contributor

Strange. Did you use the same seed for each run? Are you able to share the command line you are using?

@123xyl
Copy link
Author

123xyl commented Mar 23, 2023

image

@jonassibbesen
Copy link
Contributor

In order to get the same results each run you need to use the same seed for the pseudo-random number generator. By default, the seed will be set using the Unix time when you started the run. It will therefore be different between each run except if you started the runs at exactly the same time. You can provide a seed to both bayesTyper cluster and bayesTyper genotype using the option random-seed.

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