crested.tl.modisco.pattern_similarity

crested.tl.modisco.pattern_similarity#

crested.tl.modisco.pattern_similarity(all_patterns, idx1, idx2)#

Compute the similarity between two patterns.

Parameters:
  • all_patterns (dict) – dictionary containing all patterns.

  • idx1 (int) – Index of the first pattern.

  • idx2 (int) – Index of the second pattern.

Return type:

float

Returns:

Similarity score between the two patterns.