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

Warning message in theta.ml(y = y, mu = fit$fitted) #25

Closed
jkanbar opened this issue May 21, 2019 · 2 comments
Closed

Warning message in theta.ml(y = y, mu = fit$fitted) #25

jkanbar opened this issue May 21, 2019 · 2 comments

Comments

@jkanbar
Copy link

jkanbar commented May 21, 2019

"iteration limit reached"Warning message in theta.ml(y = y, mu = fit$fitted):
iteration limit reached"Warning message in theta.ml(y = y, mu = fit$fitted):
iteration limit reached"Warning message in theta.ml(y = y, mu = fit$fitted):
.......
"iteration limit reached"

After running the SCTransform I keep getting this above error.
Final matrix is: 12935 Genes x 12192 Cells
Control_1 (3223 cells), Control_2 (2692 cells), Gene_1 (3062 cells), Gene_2 (3215 cells)

This is how I set up the Seurat Object:
samples = c('Control_1', 'Control_2', 'Gene_1', 'Gene_2')
gene_bc_matrix=list()

for(i in 1:length(tagdir)){
counts[[i]]=na.omit(Read10X(tagdir[i]))
gene_bc_matrix[[i]] <- CreateSeuratObject(counts = counts[[i]],
project = samples[i],
min.cells = 3,
min.features = 200)
}

geneKO <- merge(gene_bc_matrix[[1]],
y = c(gene_bc_matrix[[2]],
gene_bc_matrix[[3]],
gene_bc_matrix[[4]]),
add.cell.ids = c('Control_1',
'Control_2',
'Gene_1',
'Gene_2'),
project = "KO")

geneKO <- SCTransform(geneKO, verbose = FALSE)

@ChristophH
Copy link
Collaborator

These warnings are showing that there are some genes for which it is hard to reliably estimate theta (presumably because of very few non-zero observations). Usually we don't worry about these warnings too much, since we regularize the parameters in a later step, thus averaging out uncertainty of individual gene parameters.

@jkanbar
Copy link
Author

jkanbar commented May 22, 2019

Great to know, thank you for your response and tool you've shared. Best Regards

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