A system of mechanical genetics with applications to pulmonary fibrosis