DESeq2 res remove some genes
2
0
Entering edit mode
Bine ▴ 20
@bine-23912
Last seen 1 day ago
Spain

Dear all,

I hope someone can help me, this is driving me crazy ;).

I am doing a Differential Expression Analysis with DEseq2. I got my results (res) which contains lets say 100 rows of genes. Now I want to remove 5 genes (gene called "fg", gene called "gh", ...). I tried with "select" but it tells me that this function cannot be used for DeSeq.

How can i remove 5 genes in res?

Thank you, Bine

deseq2 res • 219 views
ADD COMMENT
1
Entering edit mode
swbarnes2 ▴ 800
@swbarnes2-14086
Last seen 3 hours ago
San Diego

You can make a data.frame version of your res object, and manipulate that in the usual ways.

ADD COMMENT
0
Entering edit mode

Good point, i will try that, thank you!

ADD REPLY
0
Entering edit mode

Good point, i will try that, thank you!

ADD REPLY
0
Entering edit mode
@mikelove
Last seen 3 hours ago
United States

res[-idx,]

Will remove the rows in idx.

ADD COMMENT
0
Entering edit mode

thank you!i will try that.

ADD REPLY

Login before adding your answer.

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