wiki

preparing for FSL

You will need a number of things to run a FEAT analysis, and this section describes how to create these things. This documentation was modified from the Huettel Lab wiki, thank you! \

What You Need

Instructions

bxh2analyze --niftihdr -s -v run004_01.bxh run01 

This will create one very large file (e.g., run01.img) that contains all of your data in 4D format, a NIFTI-format header (run01.hdr), a BXH header pointing to the 4D data (run01.bxh), and a .mat file for your data (run01.mat).

bxh2analyze --niftihdr -s -v series002.bxh anat01

This will create the same sorts of files as for the functionals above. \

Run BET on your anatomicals. On the main FSL GUI, click BET Brain Extraction. Then, select the anatomical you just created as your input image. For the output image, copy and paste the text in the Input image text box into the Output image text box, and append a b at the end. Generate image with non-brain matter removed should be checked. Generate image… overlaid on original should be unchecked. For this, you do not need any of the advanced options. Click OK. It will quickly (within a minute) generate a file like “anatb.nii”.

Batching File Conversion

If you have several subjects to do, you can use bash and python scripts to do multiple subjects. See FSL First Level for details!

Adding Melodic

cd feat_output_directory.feat
melodic -i filtered_func_data --mix=../run1.ica/melodic_mix --filter="1,2,3,4,5,6,7,8,9,11,13,14"

where you should replace the comma-separated list of component numbers with the list that you previously recorded when viewing the MELODIC report. This only takes 1-2 minutes.