Skip to content

Conversation

@Lestropie
Copy link
Member

@Lestropie Lestropie commented Nov 24, 2024

Work In Progress.

Final relevant changeset being extracted from #2330 to allow its closure. I have extracted the code changes relating to addition of the -first_dir option to labelsgmfirst / 5ttgen fsl / 5ttgen hsvs and applied them to dev with authorship to @nicdc. From here I will need to:

  • Resolve against various changes made to dev since edited documentation 5ttgen hsvs -white_stem #2330 was listed. This will include use of f-strings, typed command-line argument variables, ...
  • Re-arrange some code; eg. checking validity of user input before any processing commences
  • Make code more robust to user input; eg. ideally not requiring specific filename prefixes to be used
  • Add tests that manually run FIRST, then run these scripts providing those data as input
  • Replace run.command('cp ...') with shutil

NicDC added 2 commits November 24, 2024 17:27
Original commit message:
"Added option to provide FSL FIRST data to three scripts which would otherwise run that step repeatedly.
Also takes away the FSL dependency in labelsgmfix for Windows users."
Manual cherry-pick of dc6d87b by: Robert E. Smith <robert.smith@florey.edu.au>
Manual application of changes in #2330 by: Robert E. Smith <robert.smith@florey.edu.au>
@Lestropie Lestropie added this to the 3.1.0 updates milestone Nov 24, 2024
@Lestropie Lestropie self-assigned this Nov 24, 2024
@Lestropie Lestropie changed the title Fsl first precalc FSL FIRST pre-calculated inputs Nov 24, 2024
@github-actions
Copy link

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link

clang-tidy review says "All clean, LGTM! 👍"

@Lestropie
Copy link
Member Author

Noting relevance to #3073. For some (not all) MRtrix3 Python commands, it should be possible to take the outputs of third-party software commands as input rather than executing them internally. This would make it possible to utilise an MRtrix3 container that does not encapsulate those third-party softwares; the user would be responsible for generating their derivatives externally.

@github-actions
Copy link

clang-tidy review says "All clean, LGTM! 👍"

Conflicts:
	python/mrtrix3/commands/5ttgen/fsl.py
	python/mrtrix3/commands/5ttgen/hsvs.py
	python/mrtrix3/commands/labelsgmfirst.py
	python/mrtrix3/fsl.py
@github-actions
Copy link

clang-tidy review says "All clean, LGTM! 👍"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants