5
$\begingroup$

I have a dataset of single cell count data and I want to regress out the variation caused by the number of UMI's and the percentage of mitochondrial genes.

I know that count data is discrete data, and commonly follows a negative binomial distribution. To regress out these two confounders, should I use a linear model or GLM (poisson/negative binomial)? And how can I determine the optimal choice?

$\endgroup$
3
  • $\begingroup$ What do you mean by single cell count data? If you mean mRNA counts, then your data are compositional and should be treated as such. $\endgroup$ Commented Apr 19, 2018 at 9:59
  • $\begingroup$ yes mRNA counts, as I mentioned in the title. What regression technique is applicable for compositional data? $\endgroup$
    – DCZ
    Commented Apr 19, 2018 at 10:02
  • $\begingroup$ If I understand you correctly, "I want to regress out the variation caused by the number of UMI's and the percentage of mitochondrial genes" means that you want to mitigate the constrained geometry arising from multinomial sampling (aka the unit-sum problem). There are multiple transforms that can alleviate certain effects of compositionality (alr, clr, iqlr) or project the data into an unconstrained Euclidean space (ilr). The choice depends on subsequent analyses and their properties. ALDEx2, a widely used RNA-seq package, uses clr and iqlr. Take note, that they all assume certain properties. $\endgroup$ Commented Apr 19, 2018 at 10:10

3 Answers 3

2
$\begingroup$

Cleaning data before doing analysis can be more important than the method of data analysis. For UMIs, there's an obvious cleaning step that can be done: it would be better to filter out duplicates (prior to generating counts) than to try to incorporate that information in the count analysis.

I'm not familiar with single cell analysis, but I am aware that DESeq2 can be adapted to work with single cells, and incorporating additional variation is just a matter of adding an additional covariate into the DESeq2 formula model.

$\endgroup$
1
  • $\begingroup$ Thank you for your answer. In the meantime i found out that a linear regression is commonly used, but a negative binomial would be the favorable way to go. $\endgroup$
    – DCZ
    Commented Apr 19, 2018 at 9:44
2
$\begingroup$

Seurat has as part of its protocol a step where you filter based on UMI counts and percent mitochondrial

http://satijalab.org/seurat/pbmc3k_tutorial.html

$\endgroup$
1
  • $\begingroup$ Yes, but it uses a linear regression as a default. My question is specifically why a linear or a negative binomial regression. $\endgroup$
    – DCZ
    Commented Apr 25, 2018 at 13:13
0
$\begingroup$

If you just want to filter UMI related problems and cells with high mitochondrial to nuclear ratio, maybe there is no need to use modeling.

  • For UMIs: You can filter UMIs that are not supported by at least x reads (for instance 3 reads) and that probably arise from sequencing errors.

  • For high mitochondrial to nuclear ratio: You can compute (number of molecules of mitochondrial genes / number of molecules of nuclear genes) and plot this ratio for all the cells and try to put a threshold value for cells that have high values for this ratio. Thus, filter these cells that behave strange compared to the rest.

$\endgroup$
3
  • 1
    $\begingroup$ Thank you for your reply. I know these are standard threshold protocols, mostly dealing with badly sequenced cells or dying cells, however, this is not a correction for amplifcation bias. So I don't think this answer is what i'm looking for. $\endgroup$
    – DCZ
    Commented Apr 19, 2018 at 9:40
  • $\begingroup$ @DCZ I was following the Seurat tutorial for clustering cells (satijalab.org/seurat/pbmc3k_tutorial.html) when I found something very similar to your question. Literally, in the removing unwanted source of variation step: "In this simple example here for post-mitotic blood cells, we regress on the number of detected molecules per cell as well as the percentage mitochondrial gene content." It seems that they used a linear model, extracted from Buettner et al., 2015 (nature.com/articles/nbt.3102). Is this what you are looking for?. They even have an implemented function. $\endgroup$
    – jxx_fa
    Commented Apr 19, 2018 at 12:36
  • $\begingroup$ That's correct. The Seurat tutorial indeed does this, but the scaleData function uses a linear regression by default. As count data follows a negative binomial distribution, this seemed a peculiar choice to me. $\endgroup$
    – DCZ
    Commented Apr 19, 2018 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.