Comments (2)
The immediate error is caused by the fact that you have zero size factors - positive=TRUE
is a misnomer as it only ensures that the size factors are non-negative. As a result, you end up with undefined log-transformed values in your log-expression matrix, NA
subsequently complains because the internal calculations are not robust against NA
s (and nor should they be; the NA
s are the canary in the coal mine).
The real problem is with the fact that you need positive=TRUE
at all. If you read ?computeSumFactors
, you will see that I don't think particularly highly of positive=TRUE
. The underlying issue is that you're observing cells for which the median count - even after pooling! - is zero. I would argue that there is no way to normalize these cells effectively. The preferred solution is to perform more stringent quality control, as these are typically damaged cells that sneaked through somewhere - see my comments in Section 4.
If you must keep these cells, you can replace their size factors with the scaled library size, see https://github.com/MarioniLab/EmptyDrops2017/blob/master/analysis/pbmc4k/analysis.Rmd as an example. This is not an accurate normalization and just papers over the problem, but it will allow you to proceed to downstream analyses. Keep in mind that log-fold changes involving these cells will not be accurately computed as library size normalization does not resolve composition biases.
from scran.
More stringent QC did the job ! Thanks Aaron !
from scran.
Related Issues (20)
- Different list for findmarker function HOT 1
- scran normalize HOT 1
- Depreciated scran functions and commands. Any updated tutorial?
- Error normalizing Anndata
- Old versions disappeared from bioconductor? HOT 3
- cant load scran HOT 6
- Error in FUN(x, table, nomatch = nomatch, incomparables = incomparables) : 'match' requires vector arguments HOT 2
- DEG results only contain downregulated gene HOT 2
- inter-cluster rescaling factors are not strictly positive HOT 2
- findMarkers produces unexpectedly different results with passing different values to direction HOT 11
- Installation of package ‘scran’ had non-zero exit status HOT 2
- findmarkers summary.logFC values HOT 1
- `pseudoBulkDGE()` intermediates dropped if `row.data` supplied HOT 1
- Installation is failing HOT 6
- error using scaledColRanks HOT 3
- Add lfc= option back to scoreMarkers
- Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘assay’ for signature ‘"dgRMatrix", "character"’ HOT 1
- BiocParallel errror (invalid length of row names) in combineMarkers() with full.stats = TRUE HOT 2
- Cyclone not finishing when using BPPARAM=MulticoreParam(workers = n))
- Receiving 'ref.clust' not in 'clusters' for cluster label that is part of predefined clusters HOT 5
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 scran.