crested.tl.modisco.find_pattern_matches

crested.tl.modisco.find_pattern_matches#

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

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.

  • p_val_thr (float (default: 0.05)) – The threshold for p-value filtering if a q-value or p-value column is present. 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.