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

bwa mem -K hidden option reference? #2

Closed
ryanrichholt opened this issue Feb 13, 2018 · 1 comment
Closed

bwa mem -K hidden option reference? #2

ryanrichholt opened this issue Feb 13, 2018 · 1 comment

Comments

@ryanrichholt
Copy link

ryanrichholt commented Feb 13, 2018

Regarding this line:

Use -K 100000000 to achieve deterministic alignment results (Note: this is a hidden option)

Can you explain which randomness this hidden option eliminates? As far as I know, the alignments are deterministic given identical inputs, but batching or reordering of the reads would cause changes in output. Here is a description of the randomness: https://www.biostars.org/p/238628/#238817

@liuxf09
Copy link

liuxf09 commented Jun 7, 2018

bwa processes reads by chunks, while the default chunk size is threads * 10M bases. This chunk size may affect the bwa results: in bwa, it needs compute the insert size distribution per chunk after initial alignment, which is used in the later algorithm to choose the best alignment. Unless this chunk size is fixed using -K option, it may change with the number of threads, hence not deterministic result.

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