Comments (4)
I get the cholmod error, so I attempted your solution, but then got the error message:
expr_matrix <- cbl_dev_clean@assays$RNA@counts #sparsematrix
expr_matrix <- expr_matrix[tabulate(summary(expr_matrix)$i) != 0, , drop = FALSE] #remove any feature without a single count
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'i' in selecting a method for function '[': $ operator is invalid for atomic vectors
Any ideas?
Thanks for providing this tool.
Andrew
from escape.
Hey Andrew,
Sorry for the delay - I actually forgot to put in the nessecary library
library(Matrix) #Here is the problem
expr_matrix <- integrated@assays$RNA@counts #sparsematrix
expr_matrix <- expr_matrix[tabulate(summary(expr_matrix)$i) != 0, , drop = FALSE] #remove any feature without a single count
expr_matrix <- as.matrix(expr_matrix) #convert to matrix
Hopefully that helps, I did check the code with and without the library(Matrix) and I was able to reproduce the error you saw. So I am hoping that is all the fix, but please let me know if you have any other issues.
Thanks
Nick
from escape.
Hello Nick,
Thanks for getting back to me.
That resolved the error message as you expected unfortunately my dataset still seems to big, so I get the same Cholmod when running the as.matrix step.
I guess 70k cells must be too many and I don't want to split my seurat object into different samples.
Andrew
from escape.
If any user is still having this problem - there is no longer a conversion from a sparse matrix to a full matrix - this eliminates the error (will be in the dev branch of escape committing this afternoon).
from escape.
Related Issues (20)
- plotpathway() : sort by seurat clusters? Also, can I just keep the violin plot, but not the individual dots. HOT 1
- masterPCAPlot HOT 2
- Subsetting objects by cluster for visualization HOT 1
- I have problem with the format of my input data HOT 14
- Contour lines on tSNE/UMAP HOT 1
- Visualization of Enrichment HOT 1
- Improve computational time for EnrichIt(), performPCA(), and masterPCAplot HOT 1
- Median of getSignificance and multi_dittoPlot() don't match HOT 2
- masterPCAplot bug HOT 1
- Saving heatmap HOT 1
- enrichmentPlot did not finish HOT 3
- enrichIT values-negative scores HOT 3
- Differentially expressed genes in enrichment pathways HOT 3
- getSignificance very memory intensive when fit = ANOVA HOT 3
- about using a subset of groups in visualization HOT 8
- Batch effect correction HOT 2
- About ANOVA results viz HOT 3
- How to add significant differences between groups of variables in a figure HOT 1
- enrichIT fails due to " file names with spaces do not work properly on this platform" HOT 1
- Leading edge subset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from escape.