add code to collapse across phenotypes