-
Notifications
You must be signed in to change notification settings - Fork 2
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
Stability issues and warnings in 10x Genomics Visium data #17
Comments
I have also checked that these are not genes with all zero counts, since this was one idea I had (e.g. insufficient filtering of low-expressed genes). |
Hm, that's interesting and unfortunately, I don't know what's causing it. It seems to be a problem with the binomial model, because running it with
And the same set of 677 genes end up with 0s for the residuals (along with a couple I shared your suspicion that these might be low-count genes, but it actually looks like they are the genes with the largest counts. All the genes with zero residuals have more than 1 count per cell (ie. more than 3582 total counts). Interestingly, the two I'm gonna ping @willtownes, to see if he has any insights. |
Hi! I'll look at this more carefully next week (sorry, am facing some deadlines at the moment). Is it possible that some of the cells have one gene that constitutes all the counts? Ie, there is some gene j whose count in that cell equals the total count across all genes, and all the other genes have a zero count for that cell. In that unlikely scenario it would trigger an error condition I originally handled but commented out for speed since I assumed it wouldn't happen in real data: https://github.com/kstreet13/scry/blob/master/R/nullResiduals.R#L21 |
No problem, thank you! I just checked and no, I don't think this is the issue, at least for a few of the values where it breaks down that I just looked at now. |
Hi, I have been using
scry::devianceResiduals()
for preprocessing and transformation in 10x Genomics Visium data, and have been running into some possible stability issues and warnings.I am running the following code:
and getting the following warning:
If this warning occurs, then I see that
scry::nullResiduals()
has returned zeros for some genes, e.g. see this screenshot showing values for the first 20 genes in one dataset:Here is some complete reproducible code, using a
SpatialExperiment
object that I have saved on Dropbox here (30 MB download). This requiresSpatialExperiment
version >1.5.3, which can be installed from GitHub:Have you seen this error before, and do you have any ideas what might be causing it? Thank you!
The text was updated successfully, but these errors were encountered: