JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  May 2012

FSL May 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Group Melodic transform matrix

From:

"David V. Smith" <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Wed, 2 May 2012 10:05:44 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (114 lines)

Hi Varina,

That sounds like a memory issue. I'm sure you'll see similar reports on the forums when you look for the error. Either increase your RAM or resampling to a lower resolution (e.g., 3mm).

Generally speaking, I think it's fairly common to see some slight upsampling in fMRI studies (except for those employing MVPA). For most of my own work, I personally haven't noticed much of a difference between resampling to 2mm, 3mm, or 4mm.

The outside-the-brain results could be an issue with registration and/or BET. Using FNIRT will certainly improve the registration. It's main assumption is that you have two versions of the anatomical image in the same folder: one that has been BETed (anat_brain.nii.gz) and one that has not been BETed (anat.nii.gz).

Cheers,
David


On May 2, 2012, at 7:56 AM, Wolf, Varina Louise wrote:

> When I set Melodic to resample at 2mm, I get the following error during the Higher Level Melodic step:
> 
> Melodic Version 3.10
> Melodic results will be in groupmelodic.ica
> Create mask ... done
> Reading data file /mnt/hgfs/melodicdesk/NiftiPatientData/A-AVW030912EL-nifti/A-A_Rest_13sub3gr_2mmResample_MO.ica/reg_standard/filtered_func_data  ...  done
>  Estimating data smoothness ...  done 
>  Removing mean image ... done
> Reading data file /mnt/hgfs/melodicdesk/NiftiPatientData/A-BVW050611-nifti/A-BVW050611_Rest_300_Last_13sub3gr_2mmResample_MO.ica/reg_standard/filtered_func_data  ...  done
>  Removing mean image ... done
> Reading data file /mnt/hgfs/melodicdesk/NiftiPatientData/A-CVW071511-nifti/A-C_Rest_13sub3gr_2mmResample_MO.ica/reg_standard/filtered_func_data  ...  done
>  Removing mean image ...terminate called after throwing an instance of 'std::bad_alloc'
>  what():  St9bad_alloc
> 
> My original voxel size in my data is 3.4 x 3.4 x 4 mm, and the standard MNI 152 is 2mm^3. First, I don't know why I am getting this error (I've run this twice now), and it seems to work fine for the first few subjects then the error occurs at a different subject.  Secondly, are there implications to resampling below the original resolution?  Should I lower my smoothing kernel to help with this?
> 
> I guess I should refer to my original goal of this line of questioning.  When I overlay my statistic images over the registered standard, at first I was not able to do this.  When I performed the following command to the standard, I was able to overlay, but still saw areas outside the brain, as if the standard were about 5 mm to small circumferentially (flirt -ref MNI152_T1_2mm_brain -in MNI152_T1_2mm_brain -out MNI152_T1_4mm_brain -applyisoxfm 4).  So I looked back at my original registration results and see that the linear registration with full search from functional to standard leaves a layer just outside the nice red line of the standard on some of the subjects in some of the areas.  I wondered if this might be the cause of the statistic image problem described above and if it would be improved with nonlinear registration to the standard.  But, when I select the Warp/Nonlinear option, Melodic tells me something about the need for the original non_brain image to be seen.  I know the MNI_152_T1 and T1_brain are in the standards folder, so am not sure why it can't see this, so am not able to try this out. 
> 
> What do you recommend?
> 
> Thanks for your kind attention to this matter, as I have spent now several days trying to sort this out,
> Varina 
> 
> 
> -----Original Message-----
> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf Of David V. Smith
> Sent: Tuesday, May 01, 2012 1:46 PM
> To: [log in to unmask]
> Subject: Re: [FSL] Group Melodic transform matrix
> 
> Hi Varina,
> 
> Yes -- setting the resampling to 2mm would help you avoid this step in the future. However, note that the the memory demands and processing time would also increase (maybe by a factor of 8 considering the increase in resolution).
> 
> Cheers,
> David
> 
> 
> On May 1, 2012, at 11:20 AM, Wolf, Varina Louise wrote:
> 
>> David,
>> 
>> Thank you so much for the help below!
>> 
>> For future reference, would resampling to 2 mm avoid having to do this step?  Or what would work here to avoid this step?
>> 
>> Cheers back at ya,
>> Varina
>> ________________________________________
>> From: FSL - FMRIB's Software Library [[log in to unmask]] On Behalf Of David V. Smith [[log in to unmask]]
>> Sent: Monday, April 30, 2012 9:28 PM
>> To: [log in to unmask]
>> Subject: Re: [FSL] Group Melodic transform matrix
>> 
>> Ah, ok -- you probably resampled to 4mm during your group ICA. The easiest thing to do would be to overlay the results onto the bg_image.nii.gz in your *.gica folder. Alternatively, you could take the standard brain you used during registration and then downsample it to the appropriate resolution with flirt:
>> flirt -ref MNI152_T1_2mm_brain -in MNI152_T1_2mm_brain -out MNI152_T1_4mm_brain -applyisoxfm 4
>> 
>> Cheers,
>> David
>> 
>> 
>> 
>> On Apr 30, 2012, at 5:37 PM, Wolf, Varina Louise wrote:
>> 
>>> Yes, fslview says "dimension is not compatible" between stat image and standard MNI152_T1_brain (the standard used in Melodic registration step).  Fslinfo says stat image dim 1,2,3,4 is 45,54,45,1 - respectively.  I tried and extra flirt between the stat and MNI image, but this did not work, and the stat image looks like it is from a bigger head on top of the standard.  Strangely, the IC_stat images from Melodic and registration look perfect to me, no junk outside brain.
>>> 
>>> Help!
>>> -Varina
>>> 
>>> -----Original Message-----
>>> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf Of David V. Smith
>>> Sent: Monday, April 30, 2012 3:59 PM
>>> To: [log in to unmask]
>>> Subject: Re: [FSL] Group Melodic transform matrix
>>> 
>>> Hi Varina,
>>> 
>>> The dr_stage3_ic# files are already in standard space (or whatever you chose as the reference image in the group ICA). Are you getting an error when you overlay those stat maps onto the MNI image?
>>> 
>>> Cheers,
>>> David
>>> 
>>> 
>>> 
>>> 
>>> On Apr 30, 2012, at 4:49 PM, Varina Wolf wrote:
>>> 
>>>> Hello Experts,
>>>> 
>>>> In order to overlay the stat images (after Concat ICA, dual regression with randomise) onto an MNI image, I think that I need to transform the stat matrix such that it has the same dimensions as the standard.
>>>> 
>>>> I am familar with the single subject transform matrix example_func2standard.mat, but not sure where to find the transform matrix for this group data.
>>>> 
>>>> I believe then the next step would be:
>>>> 
>>>> flirt -in dr_stage3_ic#_tfce_corrp_tstat1.nii -ref MNI_2mm_brain.nii -out stattostandard -init TRANSFORMMATRIX -applyxfm
>>>> 
>>>> Thanks for your teaching,
>>>> Varina

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager