Tumor Heterogeneity Analysis (THetA) is an algorithm that estimates the tumor purity and clonal/subclonal copy number aberrations directly from high-throughput DNA sequencing data.