Issue with DESeq: unable to find an inherited method for function (exprs) for signature DESeqTransform
1
0
Entering edit mode
5.6 years ago
catglen012 ▴ 10

Hello! I am trying to create a heatmap but I am unable to do so because it seems like an object "exprs" is masked:

> heatmap.2(exprs(vsdFull)[select,], col = hmcol, trace="none", margin=c(10, 6))

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘exprs’ for signature ‘"DESeqTransform"’

I was wondering what do I need to type in my console for this error not to occur?

R r DESeq rna-seq • 5.6k views
ADD COMMENT
2
Entering edit mode
5.6 years ago

The error is quite descriptive of what is wrong. The function exprs() doesn't work because it does not recognise the vsdFull object, which is a "DESeqTransform". You need to access the counts inside that object:

heatmap.2(assay(vsdFull)[select,], col = hmcol, trace="none", margin=c(10, 6))
ADD COMMENT
0
Entering edit mode

To add, exprs() is applied to ExpressionSet objects, which usually contain gene expression microarray data.

ADD REPLY
0
Entering edit mode

I was not sure of what it meant since I am following a tutorial/ beginner, but thank you so much! This solved my problem!

ADD REPLY
0
Entering edit mode

If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.
Upvote|Bookmark|Accept

ADD REPLY

Login before adding your answer.

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