Research Article

Resolution-Free Accurate DNA Contour Length Estimation from Atomic Force Microscopy Images

Algorithm 1 : ID number derived from shape number.

Require: shapes, j = 1 ∼ 12 and their respective SESN or ESSN skj = s1s2s3
Ensure: Unique ID numbers for all k1 ∼ k12 shapes.
1: forj = 1 ∼ 12 do
2:  take the kj’s SN: s = {s1, s2, s3}
3:  ifs1 ≥ 4 then
4:   take 8’s complement for this sequence of s, for bi-direction and mirroring re-ordering, but
5:   ifs2 = 0 or s3 = 0 then
6:    keep s2 or s3 zero
7:   else
8:    s2 = 8 − s2 and s3 = 8 − s3
9:  end if
10: end if
11: Take the new S (with s1 ≤ 4), and further re-order s2 and s3, to match the rotational varieties, by
12: ifs2 > s3then
13:  switch s2 with s3
14: else
15:  retain original order
16: end if
17: Find final ID number for given SN skj
18: end for
Algorithm 1 : ID number derived from shape number.