DGEList remove/exclude rows with entrezgene = 'NA'
1
0
Entering edit mode
belmore • 0
@belmore-15096
Last seen 6.1 years ago

Hello:

I have created and annotated a DGEList from RNA-seq data.

I would like to try EGSEA, however the DGEList$genes$entrezgene column has ~900 'NA' values.

Is there a way to remove rows with entrezgene values of 'NA' from the DGEList?

Thank you

edger dgelist NA egsea • 2.1k views
ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 1 hour ago
WEHI, Melbourne, Australia

You can subset a DGEList as if it was a matrix. For example:

i <- is.na(dge$genes$entrezgene)
dge <- dge[!i, ]

This removes all the rows for which the Entrez Gene ID is NA.

ADD COMMENT

Login before adding your answer.

Traffic: 695 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