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

Possible modifications to script or running FIX alone? #1

Closed
Abhijotsinghsidhu opened this issue Nov 26, 2021 · 2 comments
Closed

Possible modifications to script or running FIX alone? #1

Abhijotsinghsidhu opened this issue Nov 26, 2021 · 2 comments

Comments

@Abhijotsinghsidhu
Copy link

Firstly, thank you so much for uploading this. FIX has been an absolute hassle to install, and I can’t seem to get it working on my local machine – your docker image was very helpful in overcoming this.

Is it possible to modify the MELODIC script and/or just run FIX independently if I preprocess my functional data locally? For example, the default parameters of MELODIC don’t include slice-time correction and assume spatial smoothing should be conducted at 5mm. It would be great if the user could modify such parameters to cater to their data or just fun FIX independently of the MELODIC step.

Thanks!
Abhi

@kytk
Copy link
Owner

kytk commented Nov 27, 2021

@Abhijotsinghsidhu

Thank you for asking.

Modifications to script

I prepare individual-fix.sh to set some parameters such as slice timing correction or smoothing fwhm.

In Docker container, please do the following;

cd
cp /usr/local/bin/individual-fix.sh  my_individual-fix.sh

Now you see my_individual-fix.sh in your directory you bind to the docker.
(I did not install any text editors except for vi, so if you are not familiar with vi, please use your editor from your host machine.)

In the beginning of the script, you will see the following lines;

###Configuration#######################################

#Set FWHM
fwhm=5

#Set the number of volumes to be deleted (dummy volume)
delvol=4

#Slice timing correction
# 0 : None
# 1 : Regular up (0, 1, 2, 3, ...)
# 2 : Regular down
# 3 : Use slice order file
# 4 : Use slice timings file
# 5 : Interleaved (0, 2, 4 ... 1, 3, 5 ... )
st=1
######################################################

You can change the parameter as you wish.
For example, if you want to set FWHM=6, change fwhm=5 to fwhm=6

As of slice timing correction, you can choose the number to indicate what kind of slice timing correction should be made.

After editing the script, you can run

bash my_individual-fix.sh F_*.nii.gz

then everything should run with your settings.

running FIX alone

This is very simple. Please run the following command. I suppose you bind the directory which contains *.ica (melodic output)

fix your_data.ica /usr/local/fix/training_files/Standard.RData 20 -m

Hope this helps,

Kiyotaka

@Abhijotsinghsidhu
Copy link
Author

@kytk Thank you so much! This helps immensely.

Abhi

@kytk kytk closed this as completed Dec 8, 2021
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

No branches or pull requests

2 participants