This protocol describes rectal organoid morphology analysis (ROMA), a novel diagnostic assay for cystic fibrosis (CF). Morphological characteristics, namely the roundness (circularity index, CI) and the presence of a lumen (intensity ratio, IR), are a measure of CFTR function. Analysis of 189 subjects showed perfect discrimination between CF and non-CF.