This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Issue with DESeq: unable to find an inherited method for function (exprs) for signature DESeqTransform

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

1 answer

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))

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

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

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

Log in to answer this question.