The method could be used to develop a blood test to identify inflammatory-bowel-disease patients most at risk.