crested.tl.modisco.match_h5_files_to_classes

crested.tl.modisco.match_h5_files_to_classes#

crested.tl.modisco.match_h5_files_to_classes(contribution_dir, classes)#

Match .h5 files in a given directory with a list of class names and returns a dictionary mapping.

Parameters:
  • contribution_dir (str) – Directory containing .h5 files.

  • classes (list[str]) – list of class names to match against file names.

Return type:

dict[str, str | None]

Returns:

A dictionary where keys are class names and values are paths to the corresponding .h5 files if matched, None otherwise.