crested.tl.modisco.find_pattern_matches

crested.tl.modisco.find_pattern_matches#

crested.tl.modisco.find_pattern_matches(all_patterns, html_paths, q_val_thr=0.05)#

Find and filter pattern matches from the modisco-lite list of patterns to the motif database from the corresponding HTML paths.

Parameters:
  • all_patterns (dict) – A dictionary of patterns with metadata.

  • html_paths (list[str]) – A list of file paths to HTML files containing motif databases.

  • q_val_thr (float (default: 0.05)) – The threshold for q-value filtering. Default is 0.05.

Return type:

dict[int, dict[str, list[str]]]

Returns:

A dictionary with pattern indices as keys and a dictionary of matches as values.