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

Problem with splatEstimate() when using a particular dataset #133

Closed
Felitsiya opened this issue Jan 26, 2022 · 3 comments
Closed

Problem with splatEstimate() when using a particular dataset #133

Felitsiya opened this issue Jan 26, 2022 · 3 comments
Labels

Comments

@Felitsiya
Copy link

Hello!

I get an error when running splatEstimate() on a data set (that is actually generated).

cnts <- read.table("mcmcparams1_trn_mod.txt", skip = 1, sep = ",")
cnts <- t(cnts)

library(splatter)

splat_name <- "TAMU1_splat_set.txt"
genes <- nrow(cnts)
samples <- ncol(cnts)
ndiff<- 0.05

params <- splatEstimate(cnts)

Error in qr.solve(QR.B, cc) : singular matrix 'a' in solve
In addition: Warning message:
In value[3L] :
Fitting dropout using the Gauss-Newton method failed, using the Golub-Pereyra algorithm instead

Here is a link to the data set I am using:

https://drive.google.com/drive/folders/1yVHKpm5FNjGcIzvJitJm_4_LFb8rH0HP?usp=sharing

Thank you in advance.

Sincerely,
Felitsiya Shakola

@lazappi
Copy link
Collaborator

lazappi commented Jan 27, 2022

Hi @Felitsiya

Thanks for giving {splatter} a go! The provided dataset was very helpful and I was able to reproduce the error. The part that is failing is fitting the relationship between mean expression and proportion of zeros. I think in this case it is because your generated data doesn't look a lot like real scRNA-seq, for example there are no zero counts in the provided matrix. This is still something we should handle better though.

@lazappi lazappi added the bug label Jan 27, 2022
@Felitsiya
Copy link
Author

I see. Thank you.

@lazappi
Copy link
Collaborator

lazappi commented Jan 28, 2022

This should now work without an error in the development version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants