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

downsampling by sambamba with seed #471

Open
dulunar opened this issue Apr 21, 2021 · 1 comment
Open

downsampling by sambamba with seed #471

dulunar opened this issue Apr 21, 2021 · 1 comment

Comments

@dulunar
Copy link

dulunar commented Apr 21, 2021

I have checked the source code of sambamba view in view.d file. And I found that there has some codes:

160 subsampling_seed = unpredictableSeed;
161 subsampling_seed <<= 32;
162 subsampling_seed += unpredictableSeed;

I have some questions:

  1. Does it mean that seed doesn't need to be set?
  2. When I set the seed from 1-100, I found that the kept reads number is very different. Sometimes, the difference is an order of magnitude at 10^6.

Please tell us how to ste the seed number. Thanks.

@dulunar dulunar added the bug label Apr 21, 2021
@pjotrp
Copy link
Member

pjotrp commented Apr 21, 2021

There is a command line parameter for setting the seed

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

No branches or pull requests

2 participants