The proportion of KRAS and BRAF mutations and CIMP-positive status in serrated polyps in colitis-affected segments tended to be higher in invasive cancer in colitis-affected segments in this study. This evidence concerns the gene KRAS and colitis.