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

Depth assertion fail #16

Open
Thatguy027 opened this issue May 12, 2019 · 1 comment
Open

Depth assertion fail #16

Thatguy027 opened this issue May 12, 2019 · 1 comment

Comments

@Thatguy027
Copy link

Hello,
I am running ALE on a number of samples and am getting this error for one sample:

ALE: ALElike.c:1678: computeDepthStats: Assertion `tempLogLike <= 0.0' failed.

Any idea how to go about fixing this issue?

Thanks

@robegan21
Copy link
Collaborator

robegan21 commented May 13, 2019

Hi Stefan,
So I've never seen it throw that error before. If you want to share your data I can step through it in the debugger and see what in your data would be causing the problem (my best guess is an integer overflow somewhere, or the negative binomial function is returning NotANumber, but I do not see any obvious candidates. Otherwise you could replace line 1678 with a print statement to output the invalid values and continue:

if (tempLogLike <= 0.0) { printf("j=%d len=%d, depth=%f, GCpct=%d, negBinomParam_r[GCPct]=%f\n", j, contig->seqLen, contig->depth[j], GCPct, negBinomParam_r[GCpct]); continue; }

I might be able to figure out what is wrong with that print statement, and I imagine your results would not be too far off if there is just one or two lines that print.

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