Effects of genetic variation on the structure of biological macromolecules