Finding recurrent copy number alterations preserving within-sample homogeneity