Error in for 'x' has a zero dimension WGCNA
1
0
Entering edit mode
@christopherclarskon15-9965
Last seen 8.0 years ago

I am developing a shiny application to implement a WGCNA pipeline. In my 'server' script I am using the following code:

adjacentmat<-reactive({adjacency(dataInput1(),power=input$num)})
 

Having uploaded the data expression file to the website (of dim, 1:8000,1:200), I get the following error:

Error in cor: 'x' has a dimension zero

However when I implement this in normal R there isn't a problem....

a<-adjacency(t(E.rna[1:8000,1:200]),power=12)

I have searched the error and have not found any similar themes to this error does anyone know how to interpret it?

R wgcna • 2.1k views
ADD COMMENT
0
Entering edit mode

It looks like the adjacency matrix is not being properly passed to the reactive call. Instead of calling `adjacency()` on `dataInput1()`, perhaps first try printing something like `dim(dataInput1())` to confirm this, and then work backwards to see where it goes wrong.

ADD REPLY
0
Entering edit mode
@christopherclarskon15-9965
Last seen 8.0 years ago

Thank you Keith the error that results when I try to print the dim of the file that's being uploaded is: 

Error in UseMethod: no applicable method for 'xtable' applied to an object of class "c('integer', 'numeric')"

ADD COMMENT

Login before adding your answer.

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