Genetic and biochemical analysis of in vivo protein folding and subunit assembly