An analytical framework of tissue-patch clustering for quantifying phenotypes of whole slide images