From sequence to structure : determinants of functional and non-functional protein aggregation