Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mrAnatExtractBrain.m: corrected bugs in calling FSL bet #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julienbesle
Copy link

Hello, I've corrected two bugs when calling FSL BET. I'm not sure how specific this is to my particular Linux set-up, but I tried to make the fixes general.

  • The first bug was that when Matlab uses system('which bet') to get the path to bet. On my system, any call to 'system' prints additional lines before the path to bet (they are printed by .cshrc, which is called by every call to 'system). These extra lines had to be removed. This would be the case for any user whose .cshrc or .bashrc normally prints to the terminal.
  • the second bug is when calling bet and setting FSLOUTPUTTYPE to NIFTI_GZ. It seems that it is not necessary to export the environment variable to set the correct output format for this call to be. In fact exporting will change the default output type for the rest of the matlab session, which is not necessarily what the user wants.

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.

1 participant