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

A better diagnostic during model fitting would be nice #27

Closed
tedgoldstein opened this issue Oct 14, 2016 · 2 comments
Closed

A better diagnostic during model fitting would be nice #27

tedgoldstein opened this issue Oct 14, 2016 · 2 comments

Comments

@tedgoldstein
Copy link

This is not very informative.The problem probably is in the glm package.

glm.nb failed; trying again with glm and family=negative.binomial(theta=0.1)
glm and family=negative.binomial(theta=0.1) failed, falling back to scale(log10(y+1))
|================================================================= | 95%glm.nb failed; trying again with glm and family=negative.binomial(theta=0.1)
glm and family=negative.binomial(theta=0.1) failed, falling back to scale(log10(y+1))
|================================================================== | 95%glm.nb failed; trying again with glm and family=negative.binomial(theta=0.1)
glm and family=negative.binomial(theta=0.1) failed, falling back to scale(log10(y+1))
|=====================================================================| 100%
|=====================================================================| 100%
There were 50 or more warnings (use warnings() to see the first 50)

@ChristophH
Copy link
Collaborator

The problem probably is in the input. For some genes with high variance due to mostly zero counts and very few non-zero counts the theta estimation does not converge. And sometimes, even with a manually specified small theta, the glm function also fails to converge. In the next release the messages will contain more details including the name of the gene.

@andrewwbutler
Copy link
Collaborator

Latest version has incorporated these changes now

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

3 participants