I am new to bioinformatics and PCA. What I am trying to do is to remove bad cells from a dataset that was obtained with scRNA-seq for 46 000 of genes (rows) vs 68 000 of cells that are of different types of C. Elegans that was generated in the following paper.

After running PCA:

fontsize <- theme(axis.text=element_text(size=12), 
plotPCA(sce, pca_data_input="pdata") + fontsize

I see the following chart:

enter image description here

I suppose that the cells that are going to the left bottom corner are the bad ones since they do not fall into some restricted region. Are there any R program that can automatically remove the bad cells leaving me with just the majority of cells clustered within an ellipse? I know there is identify method that allows for clicking and labelling manually cells that I think may be outliers (see this) but I do not like it. I would prefer some program that would do that for me, giving some statistical output of the reliability of the removal of the cells.

  • 6
    $\begingroup$ I suspect something has gone wrong if 96% of your gene expression variance is in the first two components (and 87% in the first component). Have you normalised counts for each cell? Do you have the gene expression matrix oriented correctly? Have you transformed the expression to be in log space? Are you scaling the PCA such that each gene contributes the same amount to the variance? $\endgroup$
    – gringer
    Commented Dec 17, 2017 at 23:56
  • $\begingroup$ Thank you very much for the advice! I eliminated low-count genes, normalized the dataset, eliminated the low-count cells and PCA started to look much better in terms of PC1 and PC2 percentages, although still far from perfect and there is no separation into unique groups: bioinformatics.stackexchange.com/questions/3232/… $\endgroup$ Commented Jan 7, 2018 at 19:20
  • $\begingroup$ I still do not know the answer to this question $\endgroup$ Commented Jan 7, 2018 at 19:21
  • $\begingroup$ It is not an easy task to automatically identify outliers in a multivariate space. Have you tried to look at this or this ? $\endgroup$ Commented Jan 15, 2018 at 17:22


Your Answer

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

Browse other questions tagged or ask your own question.