Motif-Informed Analysis Of Phenotype Heterogeneity In Cancer