Skip to content

Conversation

@YiFuiC
Copy link

@YiFuiC YiFuiC commented Aug 12, 2024

Hi, I'm currently working on improving GPcounts and found that removal of sc.pp.log1p(adata) would result in better model performance. This is especially true for lower sigma values and could be possibly due to the logarithm decreasing the dispersion of the counts that are sampled from poisson distribution.

Additionally, we noticed a bug when generating scales for the use of GPcounts. When setting the family parameter of smf.glm() it should be set to sm.families.NegativeBinomial(sm.families.links.identity())).fit() instead of sm.families.NegativeBinomial(sm.families.links.log())).fit(). This fixes the previous errors where most real data counts could not be fitted.

These changes have been edited in the fork accompanying this pull request. I eagerly await for your response.

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

Successfully merging this pull request may close these issues.

1 participant