Skip to contents

Helper function to rank each method

Usage

rank_method(liana_res, method_name, mode = "specificity")

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.

Details

this function makes use of liana's `liana:::.score_specs` and `liana:::.score_housekeep` functions.