How to extract genes with greatest BCV?
1
0
Entering edit mode
Mich • 0
@mich-16269
Last seen 5.8 years ago
Singapore

Hi,

I am analyzing RNAseq data using the EdgeR package and have made the MDS plot using the following code.

y<-DGEList(counts=data, group=Source)

keep<- rowSums(cpm(y)>1) >= 1

y<- y[keep, , keep.lib.sizes=FALSE]

y<-calcNormFactors(y)

plotMDS(y, method="bcv",dim= c(1,2), top=1000)

I am wondering if it is possible to obtain the gene names of the top 1000 genes with the greatest biological coefficient of variation.

Many thanks! 

edger • 690 views
ADD COMMENT
1
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 16 hours ago
The city by the bay

The BCV is just the square root of the tagwise dispersion, so just take the top 1000 genes with the largest tagwise dispersions:

order(y$tagwise.dispersion, decreasing=TRUE)[1:1000]

... after you've run estimateDisp.

ADD COMMENT
0
Entering edit mode

Thanks Aaron!

ADD REPLY

Login before adding your answer.

Traffic: 703 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6