Statistical methods for genomic analysis of heterogeneous tumors