An algorithm for molecular dissection of tumor progression