Question: Invalid vertex id while running R_igraph_spinglass_my_community on FEM package
gravatar for sirintra
3.5 years ago by
United Kingdom
sirintra0 wrote:


I have used bioconductor package FEM on my 450k methylation and RNAseq data. I followed the instruction described in the vignette. I can manage to run DoEpiMod and DoExpMod functions on the methylation and RNAseq datasets successfully independently. However, when I tried to run DoFEMbi on the same datasets, I got the following error: 

It seems to process through the "Constructing weighted network" step successfully but fails at the "Running Spin-Glass algorithm" step. Any suggestions to overcome this error ? Thanks a lot.


[1] "Running Spin-Glass algorithm"

Error in .Call("R_igraph_spinglass_my_community", graph, weights, as.igraph.vs(graph,  : 
  At clustertool.cpp:472 : Cannot work with unconnected graph, Invalid value


Here is the code that I used:

intFEM.allProbe <- list(,

fembi.allProbe <- DoFEMbi(g1FEM.allProbe,
igraph fem • 932 views
ADD COMMENTlink modified 3.5 years ago by andrew0 • written 3.5 years ago by sirintra0
Answer: Invalid vertex id while running R_igraph_spinglass_my_community on FEM package
gravatar for andrew
3.5 years ago by
andrew0 wrote:


Hi Sirintra,

Your question is easily answered as follows:

The problem you are encountering relates to the fact that the spin-glass algorithm can't be run on an unconnected network. The network that you are passing on
to the function DoFEMbi, specified by the adjacency matrix hprdAsigH.m, has not been correctly integrated with the DNA methylation and gene expression data, so could result in an unconnected network.

You need to do the proper integration first, before running DoFEMbi function. The correct flow is as follows:

statM.o <- GenStatM();
statR.o <- GenStatR();
int.o <- DoIntegFEM450k(statM.o,statR.o,hprdAsigH.m,cM=1,cR=1);
fem.o <- DoFEMbi(int.o,.....)



Andrew T,

ADD COMMENTlink written 3.5 years ago by andrew0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 133 users visited in the last hour