Helper function to rank each method
Arguments
- liana_res
liana_results for a single method
- method_name
name of the method
- mode
ranking to be carried out. Accepted modes are `specificity` and `magnitude`. The first is meant to reflect the specificity of interactions across all cell types, while the latter typically reflects how highly expressed is a given interaction.