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?
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.