Add BIDS entrypoint, smoke tests, and routing fixes#841
Open
karl-koschutnig wants to merge 2 commits into
Open
Add BIDS entrypoint, smoke tests, and routing fixes#841karl-koschutnig wants to merge 2 commits into
karl-koschutnig wants to merge 2 commits into
Conversation
- Introduced run_fastsurfer_bids.py as a BIDS-App entrypoint for FastSurfer. - Added BIDS dataset discovery and processing logic. - Updated README.md to include usage instructions for BIDS. - Created BIDS.md documentation for detailed BIDS entrypoint information. - Added integration tests for BIDS functionality and fetching OpenNeuro dataset. - Included necessary dependencies in pyproject.toml for BIDS support.
- Added a developer-oriented smoke test for the BIDS add-on. - Updated `test_bids_openneuro.sh` to include new usage options. - Introduced `_requires_cross_sectional_passthrough` function to handle passthrough flags. - Added tests for the new passthrough functionality. - Improved documentation in BIDS.md and README.md for clarity on new options.
Member
|
Hi , thanks, we will take a look. One thing up front, fixes should not be mixed into feature PRs . Can you do a separate PR for the CC numpy 2 fix (and @ClePol can check that). After merging it, we can rebase this one. |
Author
|
Thanks, Martin, for your prompt response. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds initial BIDS support to FastSurfer via a new run_fastsurfer_bids.py entrypoint.
Scope
Tests / developer workflow
Routing fix
During testing, --seg_only exposed an invalid path where multi-session BIDS subjects were still being sent to long_fastsurfer.sh, which does not support --seg_only / --surf_only.
This PR fixes that by forcing cross-sectional routing when those passthrough flags are present.
Additional fix included
While validating cross-sectional runs, the Corpus Callosum pipeline failed under NumPy 2.x because it used np.cross() on 2D vectors. This PR replaces those calls with an explicit signed 2D cross-product and adds a regression test.
Validated
Out of scope / missing