Dissecting key residues in folding and stability of the bacterial immunity protein 7.