Skip to main content
. 2015 Mar 25;10(3):e0119294. doi: 10.1371/journal.pone.0119294

Table 1. Algorithm 1.

The pseudocode procedure for the parallel communications of the LSGPA.
for Slave i = 1 to i = M in Parrallel
.Let Slave(i) MPI_Rev dataset(i) from Master, C i;
→.MPI_Brocast C i to all Slaves for 1 to M;
→.Compute I(x,y) for every pair of genes (x,y);
→.Give the threshold of MI values λ, if I(x,y)<λ then I(x,y) = 0,
    else I(x,y) = 1 and edge (x,y) will be selected into C i (Candidate_set(i));
→.MPI_Rev C i from Slaves1 to M
   Compute MI values for every pair of edges (x,y j) xC i, y jC k,k = 1 to M, ki;
   Rank all the MI values, selected top 5% value for every pair of edges into Candidate_set of C i.
→.Give the paameter threshold θ(**)
for j = 1 to T i
  Solving the normal equations HiTHiPij=HiTDij(t) or using the QR factorization;
  to obtain parameters Pij=(ai1j,ai2j,L,aiTij,bi1j,bi2j,L,biHij)T=(β1,β2,L,β1,βTi+Hi)T;
for l = 1 to T i +H i
   if β l > θ
     β l = 1 and edge(y k,x l) = 1;
   else
     β l = 1 and edge(y k,x l) = 0;
Endfor
Net(i).Matrix (K,:)=(β1,β2,L,βTi+Hi)T;
Endfor
MPI_Send Net(i).Matrix to Master;
Endfor