The most common approach to sorting an oncoplot is a hierarchical sort, which follows these steps:
The X axis is sorted based on the Y axis.
Rank each sample such that samples with mutations in the most recurrently mutated gene appear furthest left on the oncoplot. This is followed by samples with mutations in the second most recurrently mutated gene, and so on. Within each group of samples with mutations in a specific gene, we want to sort based on whether the next most mutated gene is mutated, and continue this process hierarchically.
The X axis hierarchical sort is achieved using a base-2 scoring system. If we display the top 5 recurrently mutated genes on the Y axis, we allocate a weighting for each gene based on its ranking in order of recurrence:
Each sample’s X axis sorting rank is calculated by summing the weights of all genes mutated in that sample.