Skip to main content
. Author manuscript; available in PMC: 2008 Oct 14.
Published in final edited form as: Bioinformatics. 2007 Oct 12;23(21):2851–2858. doi: 10.1093/bioinformatics/btm480
Algorithm 1: Acmi-PF's algorithm for growing a protein model.

input : density map y, amino-acid marginals k(bk)
output: set of protein models x1:K(i) and weights wK(i)
// start at some AA with high certainty about its location
choose k such that k( bk(i)) has minimum entropy
foreach particle i = 1… N do
 choose bk(i) at random from k( bk(i))
wk(i) ← 1/N
end
foreach residue k do
foreach particle i = 1… N do
  // choose bk+1 (or bk−1) given bk(i)
  { bk+1m } ← choose M samples from φadj( bk(i), bk+1)
  w*m ← belief i ( bk+1m)
   bk+1(i) ← choose bk+1m with probability ∝ w*m
   wk+1(i)wk(i) · m=1M w*m
  // choose skgiven bk1:k+1(i)
  { skl} ← sidechain conformations for amino-acid k
   pnulll ← prob cc( skl, EDM[bk]) occurred by chance
  sk ← choose skl with probability ∝ 1/ pnulll − 1
   wk+1(i)wk(i) · l=1L 1/ pnulll −1
end
end