The structure of a folding intermediate provides insight into differences in immunoglobulin amyloidogenicity