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

Error when NB model doesn't fit: while ((it <- it + 1) < limit && abs(del) > eps) missing value where TRUE/FALSE needed #3

Open
karinkumar opened this issue Nov 1, 2018 · 2 comments

Comments

@karinkumar
Copy link

Hello @walaj and I were trying to run a fishhook on sparse data (very few breakpoints across the binned genome). Sometimes the data is sparse enough that the nb model doesn't fit. In fact, it throws an error that's within glm fitting function : Error in while ((it <- it + 1) < limit && abs(del) > eps) { : missing value where TRUE/FALSE needed

We are switching to a poisson model, but perhaps there is a better way to catch this error and print a message or redirect to a poisson model instead. Right now it just stops the fishhook model from running.

@mskilab
Copy link
Collaborator

mskilab commented Nov 1, 2018 via email

@karinkumar
Copy link
Author

Thanks!!

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