The genetic basis of CF lies in the CFTR gene, which regulates the flow of chloride ions across cell membranes. Here, CFTR is linked to cystic fibrosis.