Materials and methods for treating a patient with severe combined immunodeficiency (SCID) or Omenn Syndrome, both ex vivo and in vivo, and materials and methods for editing to modulate the expression, function, or activity of an lnterleukin-7 receptor (IL7R) gene in a cell by genome editing.