Skip to content

Recursively look for feature files to check type#165

Merged
mducducd merged 1 commit intoKatherLab:mainfrom
fergascod-idibell:fix/rglob-feat-type
Mar 26, 2026
Merged

Recursively look for feature files to check type#165
mducducd merged 1 commit intoKatherLab:mainfrom
fergascod-idibell:fix/rglob-feat-type

Conversation

@fergascod-idibell
Copy link
Copy Markdown
Contributor

@fergascod-idibell fergascod-idibell commented Mar 23, 2026

Fix

When generating the features of a set of WSIs in a folder with the following structure:

  • wsi_folder
    • patient1
      • pat1_slide1.mrxs
      • pat1_slide2.mrxs
    • patient2
      • pat2_slide1.mrxs

the preprocessing pipeline puts the features in the original folder structure. However, when one tries to run cross validation on a task using those features, the pipeline checks for the feature type by inspecting the root folder only. This throws the error: "No .h5 feature files found in feature_dir.".

@mducducd mducducd self-requested a review March 26, 2026 09:33
@mducducd
Copy link
Copy Markdown
Collaborator

Good catch, I agree.
Thank you!

@mducducd mducducd merged commit a9e834d into KatherLab:main Mar 26, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants