Skip to main content
. 2017 Jun 6;7:2855. doi: 10.1038/s41598-017-03141-w

Algorithm 1.

The iterative estimation procedure of sample indicator vector and gene score vector in mCGfinder.

Algorithm 1 mCGfinder: iterative estimation procedure
Input: mutation matrix Xn×p; graph Laplacian matrix L;
Output: sample indicator vector s 1; gene score vector g 1.
  1: set λ L ← 0.1
  2: s1(0)1n and g1(0)(nIp+λLL)1(XT1n)
  3: repeat
  4: g1(k+1)(s1(k)22Ip+λLL)1(XTs1(k))
  6: s1(k+1)I[0,)(2Xg1(k+1)g1(k+1)22)
  6: k ← k + 1
  7: until Convergence
  8: return s1s1() and g1g1()
Note:1 n is an n × 1 vector with all coefficients being 1; Indicator function I A(x) returns a logical vector if x i ∈ A.