Skip to main content
. Author manuscript; available in PMC: 2011 Mar 29.
Published in final edited form as: IEEE Symp Comput Intell Bioinforma Comput Biol Proc. 2009 Mar 30;2009:298–305. doi: 10.1109/CIBCB.2009.4925742

Algorithm 1.

Modulation of voxel values for an ROI r.

  1. Let a(r) be the association model assigned for ROI r in Table I and l(r) be the corresponding SNP locus

  2. Let GT(s, l(r)) be the genotype of subject s at SNP locus l(r)

  3. for each subject s do

  4. Calculate PT(s, r), the phenotype group of its ROI r, using GT(s, l(r)), a(r) and Table II

  5. Let m be the total number of subjects whose ROI r's are in phenotype group P+, i.e., m = |{s|PT(s, r) = P+}|

  6. Let n be the total number of subjects whose ROI r's are in phenotype group P, i.e., n = |{s|PT(s,r) = P}|

  7. Let f(x) be the modulation function defined in Fig. 5.

  8. for each voxel x in the ROI r of each subject s do

  9. Let Iorig(x) be the original voxel value

  10. if PT(s, r) = P+ then

  11. Inew(x)=Iorig(x)(1+nmf(x))

  12. else if PT(s, r) = Pthen

  13. Inew(x) = Iorig(x) * (1 − f(x))

  14. Let Inew(x) be the new voxel value after modulation