Skip to main content
. 2021 Dec 8;13(12):2117. doi: 10.3390/pharmaceutics13122117
Algorithm 1 Find the parameter λ, such that the clustering C of nodes/drugs Di in G with modularity resolution λ (i.e., ClusteringG,λ) produces the biggest number of repositionings confirmed with the level 1 ATC codes in DrugBank 5.1.8.
  • Input: Drug-drug similarity network G=VD,E based on drug-gene interaction data from DrugBank 5.0.9., ATC codes for drugs in DrugBank versions 5.0.9 and 5.1.8

  • Output: The λ value that generates the highest number of confirmed repositionings.

  • 1:

    forλ in range (0.1 to 5), with 0.1 steps do

  • 2:

        CClusteringG,λ

  • 3:

        for all CiC do

  • 4:

            PiA1Ci

  • 5:

            Ric

  • 6:

            for all DjCi do

  • 7:

               if thenPiA1Dj & PiAc1Dj

  • 8:

                   RicRicDj

  • 9:

               end if

  • 10:

            end for

  • 11:

        end for

  • 12:

        Rc=iRic

  • 13:

    end for

  • 14:

    Return the value of λmax corresponding to max|ʹRc|