crested.tl.modisco.find_pattern#
- crested.tl.modisco.find_pattern(pattern_id, pattern_dict)#
Find the index of a pattern by its ID.
- Parameters:
- Return type:
- Returns:
The index of the pattern if found, otherwise None.
Notes
The
instancesof each merged pattern contain every ID folded into it, including its own representative and class-representative IDs, so a single scan ofinstancesmatches representatives, class representatives, and instance members alike. Instance IDs are unique across merged patterns.