Giter Site home page Giter Site logo

Comments (2)

LTLA avatar LTLA commented on June 9, 2024

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 NAs (and nor should they be; the NAs 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.

marcRDM avatar marcRDM commented on June 9, 2024

More stringent QC did the job ! Thanks Aaron !

from scran.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.