Pathway-based classification of cancer subtypes