Thank you. I will try that!
DPhil Student (St. Anne's College)
pain&mind research group
Functional Magnetic Resonance Imaging of the Brain (FMRIB)
Nuffield Department of Clinical Neurosciences
Level 6, West Wing
John Radcliffe Hospital
OX3 9DU, Oxford
From: FSL - FMRIB's Software Library [[log in to unmask]] on behalf of Matthew Webster [[log in to unmask]]
Sent: 14 August 2017 17:14
To: [log in to unmask]
Subject: Re: [FSL] Flirt Out of Memory
The best way to register a 4D sequence like this is to first use MCFLIRT for intra-epi registration ( e.g. registering all N scans to the mid-volume in the series ) and then using flirt to register the extracted mid-volume to your structural image. You can then concatenate all the output matrices from MCFLIRT and use applywarp to transform the original EPI image to structural space ( to minimise interpolation steps ). If you want to keep the EPI in native space, then you can use the motion-corrected EPI output from MCFLIRT for analysis, and the midVolume-to-structural transform for co-ordinate lookups.
1) Run MCFLIRT on EPI, save transforms
2) Run FLIRT with EPI mid-volume and structural, save transform
cat myMCFLIRToutput.mat/MAT* > myConcatenatedMatricies.cat
applywarp <options> --premat=myConcatenatedMatricies --postmat=midVolume2Structural.mat
Hope this helps,
Dr Matthew Webster
John Radcliffe Hospital
University of Oxford
> On 14 Aug 2017, at 11:56, Ondrej Zika <[log in to unmask]> wrote:
> I recently ran into a memory issues while running flirt. I try to co-register a T1 1mm, 192x192x174 to a functional EPI image (2mm)108x108x72xN, 1.2-1.8 GB. The N number of volumes varies between 430 and 750;
> The exact command I run would be something like:
> fsl5.0-flirt -in sbbrain_pl1_1.nii -ref images_002_t1mprax1mmiso64chv21001.nii -dof 6 -omat sub1/session_1/epi2struct_transmat.mat
> I am mainly interested in generating the transformation matrix to be later used in AROMA.
> When I turn htop on to watch what happens when I run this, it slowly eats up all memory (16 GB) and then keeps munching into the entire 16 GB of swap. This seems to exceed the memory requirement as per below (Mark's guidance).
> I thought it might be due to flirt parallelizing the process but I am not sure about that since only one of the 8 cores is actually being used, and only at about 60-70%.
> Any ideas what might be going on? It's a Ubuntu 16.04 based OS.
> Thank you,