netmap.downstream.markers.calculate_jaccard_scores¶
- netmap.downstream.markers.calculate_jaccard_scores(query_set, reference_dict)[source]¶
Calculate Jaccard similarity between a query set and a dict of reference sets.
- Parameters:
query_set (iterable) – Gene names representing the query gene set.
reference_dict (dict) – Mapping of reference set names to sets (or iterables) of gene names to compare against the query.
- Returns:
Mapping of each key from
reference_dictto its Jaccard similarity score withquery_set. Scores are floats in [0, 1]. A pair with an empty union receives a score of 0.- Return type: