Getting this error while trying to use edgeR "Error in as.vector(x, mode) : cannot coerce type 'closure' to vector of type 'any'"
1
0
Entering edit mode
Isa • 0
@0db61ddf
Last seen 2.0 years ago
Brazil

So im trying to detect differentially abundant ASVs with the package edgeR, however when i get to this point i keep getting an error i don't understand:

counts <- as(otu_table(ASV_physeq.filt), "matrix")
y = DGEList(counts=counts)
y <- edgeR::calcNormFactors(y, method="TMM");
y <- estimateDisp(y, design);

Error:

Error in as.vector(x, mode) : 
  cannot coerce type 'closure' to vector of type 'any'

Anyone here that can help me please?

Thanks! Isabella.

edgeR edge • 1.6k views
ADD COMMENT
0
Entering edit mode

What is design ? dput(design)

ADD REPLY
0
Entering edit mode
@gordon-smyth
Last seen 3 hours ago
WEHI, Melbourne, Australia

That doesn't look like an edgeR error. Did the error occur after the last code line or at an earlier stage? If the former, then please show the output from

print(design)

and

summary(y)
ADD COMMENT

Login before adding your answer.

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