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

Inconsistent default values for samplingDepth in wiki and codebase #1631

Open
ajw725 opened this issue Apr 22, 2023 · 1 comment
Open

Inconsistent default values for samplingDepth in wiki and codebase #1631

ajw725 opened this issue Apr 22, 2023 · 1 comment

Comments

@ajw725
Copy link

ajw725 commented Apr 22, 2023

The Alignment Track wiki page says that the default for samplingDepth is 100. (yes, with the period).

In alignmentContainer.js, the default appears to be 1000, not 100. It looks like it used to be 100 several years ago, but was changed to 1000 in 2019. It's also 1000 in Ga4ghAlignmentReader.

In bamUtils.js, the default depth appears to be 500. It was set to 1000 on 7/18/19 along with the one in AlignmentContainer, but then it appears to have been changed again a few days later.

This started out as just a request to update the wiki, but then I got curious about the different values in the code. I'm not familiar with the codebase, but I was poking around a little, and it seems like the same config object gets passed to both BamUtils.setReaderDefaults and new AlignmentContainer (e.g. from BamReader). Does this mean the same user-provided samplingDepth would potentially override both of these things, but if the user doesn't provide a value, they each have different defaults for that parameter?

@jrobinso
Copy link
Contributor

jrobinso commented Apr 22, 2023 via email

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