Geometric control and modeling of genome reprogramming