Question: removing outliers from RNA-seq data
gravatar for jfertaj
5.6 years ago by
United Kingdom
jfertaj100 wrote:

Hi all,

I have a data.frame from a rna-seq experiment, and I would like to remove some outliers. The  data is huge with 350 samples and 32291 genes. The data are log2 RPKM values (I did the log2 because I am planning to do WGCNA analysis and the authors recommend to make a log2 transformation of the data).

I am using the PcaHubert function from rrcov package to find outliers, here is the code I am using:

    df <- read.table("/path/to/file/rpkm.txt")
    dim(df) #32291   352
    df <- df[,-c(1,2)] # first 2 columns have accessory data
    pcaHub <- PcaHubert(t(df))
    outliers <- which(pcaHub@flag=='FALSE')

The outliers would be those samples with the flag `FALSE` after doing the RobustPCA, do you think it is appropriate to remove outliers using this method?

Any comments would be greatly appreciated


wgcna rna-seq outliers R • 5.3k views
ADD COMMENTlink modified 5.4 years ago by Manvendra Singh2.1k • written 5.6 years ago by jfertaj100
gravatar for Deepak Tanwar
5.4 years ago by
Deepak Tanwar4.1k
ETH Zürich, Switzerland
Deepak Tanwar4.1k wrote:

If you are going to use WGCNA package for network analysis, than you would be having the option to remove the outliers(samples). Follow the WGCNA Tutorials.

ADD COMMENTlink written 5.4 years ago by Deepak Tanwar4.1k
gravatar for Manvendra Singh
5.4 years ago by
Manvendra Singh2.1k
Berlin, Germany
Manvendra Singh2.1k wrote:

Yes, I think PCA is also a good choice to remove outliers.

you can also hierarchically cluster the samples on spearman's correlation of gene expression. then it would be easy to detect and remove outliers from dendrogram.

ADD COMMENTlink written 5.4 years ago by Manvendra Singh2.1k

Hello There is this parameter "crit.pca.distances" in function PcaHubert what should be the value for this other than default value. And what is this parameter?

ADD REPLYlink written 4.2 years ago by rajeshkumar_vinod30
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1063 users visited in the last hour