Self-assembly of spider silk proteins is controlled by a pH-sensitive relay