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

Error in restrictCorpus() in default settings. #61

Open
lelandwilliams opened this issue Oct 24, 2024 · 0 comments
Open

Error in restrictCorpus() in default settings. #61

lelandwilliams opened this issue Oct 24, 2024 · 0 comments

Comments

@lelandwilliams
Copy link

Following the blog post "10x Visium spatial transcriptomics data analysis with STdeconvolve in R" with my own data, I created gexp2.

This code fails:

> corpus <- restrictCorpus(gexp2)
Removing 2 genes present in 100% or more of pixels...
18083 genes remaining...
Removing 6422 genes present in 5% or less of pixels...
11661 genes remaining...
Restricting to overdispersed genes with alpha = 0.05...
Calculating variance fit ...
Using gam with k=5...
1272 overdispersed genes ... 
 Using top 1000 overdispersed genes.

Error in .subscript.2ary(x, i, , drop = TRUE) : subscript out of bounds

But when I set nTopOD, it succeeds:

> corpus <- restrictCorpus(gexp2, nTopOD = NA)
Removing 2 genes present in 100% or more of pixels...
18083 genes remaining...
Removing 6422 genes present in 5% or less of pixels...
11661 genes remaining...
Restricting to overdispersed genes with alpha = 0.05...
Calculating variance fit ...
Using gam with k=5...
1272 overdispersed genes ... 
Genes in corpus > 1000 (1272). This may cause model fitting to take a while. Consider reducing the number of genes.
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

1 participant