Skip to main content
. Author manuscript; available in PMC: 2020 Feb 5.
Published in final edited form as: Hum Brain Mapp. 2019 Jul 26;40(15):4518–4536. doi: 10.1002/hbm.24718

Algorithm 1:

Difference Degree Test

1: Construct difference network D¯={d¯ij}i,j
2: Obtain first and second moments of D¯, that is, e¯=E(d¯ij) and σ2=Var(d¯ij)
3: Generate U null Difference Networks, C¯m(u=1,,U) based on e¯ and σ2
4: Apply the adaptive threshold selection method to find the threshold, γ
5: Apply threshold to D¯ to obtain the difference adjacency matrix A={a¯ij}i,j and di for node i
6: Generate the null distribution for di~Binomial(N1,pinull). See Equation (7) for the form of pinull
7: Assess the statistical significance of the number of DWEs at node i.