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  September 2010

FSL September 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: analysis of EPI acquired sagittally (orientation problems)

From:

Mark Jenkinson <[log in to unmask]>

Reply-To:

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

Date:

Tue, 28 Sep 2010 16:34:19 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (402 lines)

Hi,

I suggest you look at:
   http://www.fmrib.ox.ac.uk/fsl/avwutils/index.html
and specifically the "Orientation-related Utilities".

This explains the relationship between FSLView
display and orientation information in the NIfTI
file.  It also explains how to use the new tool
"fslreorient2std" which is a much easier tool and
I believe is just what you need.

All the best,
	Mark



On 28 Sep 2010, at 09:00, Linev FSL wrote:

> --00151750d89c2434e604915245ce
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Hi,
>
> thank you for your quick reply!
>
> Sorry, my explanations were a bit confusing.
> While looking at the display in FSLview the brain was displayed in a  
> strang=
> e
> way. The labels (RL, AP and IS) were correctly placed around the  
> brain but
> the sagittal view was displayed at the bottom left of the window  
> (z), the
> coronal view at the top right (x) and the axial view at the top left  
> (y).
>
> If I use this file to do a registration to a standard space, the
> registration does not work properly. That is why I thought using  
> fslswapdim
> on the file I have.
> I looked at #7 in the FSL FAQ you mentioned. It is not completely  
> clear in
> my head how I should use fslorient on my data.
>
> While looking at the header of my original file that comes out from  
> dcm2nii
> I have:
> qform_name     Unknown
> qform_code     0
> qto_xyz:1      1.000000  0.000000  0.000000  0.000000
> qto_xyz:2      0.000000  1.000000  0.000000  0.000000
> qto_xyz:3      0.000000  0.000000  1.000000  0.000000
> qto_xyz:4      0.000000  0.000000  0.000000  1.000000
> qform_xorient  Left-to-Right
> qform_yorient  Posterior-to-Anterior
> qform_zorient  Inferior-to-Superior
> sform_name     Scanner Anat
> sform_code     1
> sto_xyz:1      0.000000  0.000000  1.000000  -88.105324
> sto_xyz:2      -1.000000  0.000000  0.000000  138.895889
> sto_xyz:3      0.000000  1.000000  0.000000  -131.237289
> sto_xyz:4      0.000000  0.000000  0.000000  1.000000
> sform_xorient  Anterior-to-Posterior
> sform_yorient  Inferior-to-Superior
> sform_zorient  Left-to-Right
>
> Then, I apply fslswapdim original_file -z -x y new_file
>
> If I look at the header info of the new file I have
> qform_name     Scanner Anat
> qform_code     1
> qto_xyz:1      -1.000000  0.000000  -0.000000  86.894676
> qto_xyz:2      0.000000  1.000000  -0.000000  -116.104111
> qto_xyz:3      0.000000  0.000000  1.000000  -131.237289
> qto_xyz:4      0.000000  0.000000  0.000000  1.000000
> qform_xorient  Right-to-Left
> qform_yorient  Posterior-to-Anterior
> qform_zorient  Inferior-to-Superior
> sform_name     Scanner Anat
> sform_code     1
> sto_xyz:1      -1.000000  0.000000  0.000000  86.894676
> sto_xyz:2      0.000000  1.000000  0.000000  -116.104111
> sto_xyz:3      0.000000  0.000000  1.000000  -131.237289
> sto_xyz:4      0.000000  0.000000  0.000000  1.000000
> sform_xorient  Right-to-Left
> sform_yorient  Posterior-to-Anterior
> sform_zorient  Inferior-to-Superior
>
> How should I apply fslorient on my new file to make sure the header  
> info ar=
> e
> appropriate? Should I copy the sform of the original file (since the  
> qform
> is unknown)? If yes, how should I copy it?
>
> Thank you!
> Best,
>
> C=E9cile
>
>
>
> On Mon, Sep 27, 2010 at 11:13 PM, Michael Harms <[log in to unmask] 
> >wro=
> te:
>
>> What do you mean by "not well oriented while looking at them in  
>> fslview"?
>> Is the brain just sideways or upside-down in the display, or are the
>> orientation labels shown within fslview actually in the wrong  
>> position?
>>
>> You might want to read #7 in the FSL FAQ, which makes clear that  
>> using
>> fslswapdim in the fashion that you appear to be doing (i.e., without
>> fslorient) will mess up the orientation if you are starting with a  
>> valid
>> nifti file (i.e., one in the which the R/L, A/P, and S/I labels  
>> show up i=
> n
>> the proper locations within fslview).
>>
>> Best,
>> -MH
>>
>>
>>> Hi,
>>>
>>> I am using feat to run analyses on fMRI data that were acquired
>> sagittally
>>> (anatomical and EPI runs).
>>>
>>> Because of the direction of the acquisitions, the nifti files  
>>> created
>> from
>>> the dicom with dcm2nii were not well oriented while looking at  
>>> them in
>>> fslview and the registration step did not work properly  
>>> (everything was
>>> flipped 180=B0. The frontal lobe of the example_function was in the
>>> occipital
>>> of the standard images etc...).
>>>
>>> I then decided to re-orient the nifti files using:
>>> fslswapdim input.nii.gz -z -x y output.nii.gz
>>> But in doing this I am afraid it might be problematic for the slice
>> timing
>>> correction step. Am I right? How does feat determine the slice  
>>> order an=
> d
>>> the
>>> direction of slice acquisition?
>>>
>>> So as an other solution I kept the run and anatomical we acquired  
>>> in th=
> e
>>> "wrong orientation" and created an icbm152 template (using  
>>> fslswapdim -=
> y
>> z
>>> -x) with the same orientation as our acquisitions. This way, the
>>> registration seems to work properly and I could run a group  
>>> analysis.
>>> My only concern is about the coordinates of my images. Does  
>>> fslswapdim
>>> affect the coordinates of the volume acquired? Are the coordinates  
>>> of t=
> he
>>> cluster list still accurate (as I used a template with different
>>> orientations)?
>>> If I reorient my final group statistic maps in the "right"  
>>> orientation
>>> using
>>> once again fslswapdim (-z -x y), can I use the Atlas tools without  
>>> havi=
> ng
>>> to
>>> worry about the coordinates?
>>>
>>> I went through a lot of anterior posts in the FSL archives. That  
>>> is how=
> I
>>> discovered fslswapdim (thank you for those very useful posts!). I  
>>> did n=
> ot
>>> find any post regarding analysis of data acquired sagittally though
>> (maybe
>>> I
>>> did not use the right keywords...).
>>> Any help and suggestions will be very welcome.
>>>
>>> Thanks in advance!
>>> Best,
>>>
>>> C=E9cile Madjar
>>>
>>
>
> --00151750d89c2434e604915245ce
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Hi,<br><br>thank you for your quick reply!<br><br>Sorry, my  
> explanations we=
> re a bit confusing. <br>While looking at the display in FSLview the  
> brain w=
> as displayed in a strange way. The labels (RL, AP and IS) were  
> correctly pl=
> aced around the brain but the sagittal view was displayed at the  
> bottom lef=
> t of the window (z), the coronal view at the top right (x) and the  
> axial vi=
> ew at the top left (y). <br>
> <br>If I use this file to do a registration to a standard space, the  
> regist=
> ration does not work properly. That is why I thought using  
> fslswapdim on th=
> e file I have.<br>I looked at #7 in the FSL FAQ you mentioned. It is  
> not co=
> mpletely clear in my head how I should use fslorient on my data.<br>
> <br>While looking at the header of my original file that comes out  
> from dcm=
> 2nii I have:<br>qform_name=A0=A0=A0=A0  
> Unknown<br>qform_code=A0=A0=A0=A0 0<=
> br>qto_xyz:1=A0=A0=A0=A0=A0 1.000000=A0 0.000000=A0 0.000000=A0  
> 0.000000<br=
>> qto_xyz:2=A0=A0=A0=A0=A0 0.000000=A0 1.000000=A0 0.000000=A0  
>> 0.000000<br>
> qto_xyz:3=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 1.000000=A0  
> 0.000000<br>qt=
> o_xyz:4=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 0.000000=A0  
> 1.000000<br>qfor=
> m_xorient=A0 Left-to-Right<br>qform_yorient=A0 Posterior-to- 
> Anterior<br>qfo=
> rm_zorient=A0 Inferior-to-Superior<br>
> sform_name=A0=A0=A0=A0 Scanner Anat<br>sform_code=A0=A0=A0=A0  
> 1<br>sto_xyz:=
> 1=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 1.000000=A0  
> -88.105324<br>sto_xyz:=
> 2=A0=A0=A0=A0=A0 -1.000000=A0 0.000000=A0 0.000000=A0  
> 138.895889<br>sto_xyz=
> :3=A0=A0=A0=A0=A0 0.000000=A0 1.000000=A0 0.000000=A0 -131.237289<br>
> sto_xyz:4=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 0.000000=A0  
> 1.000000<br>sf=
> orm_xorient=A0 Anterior-to-Posterior<br>sform_yorient=A0 Inferior-to- 
> Superi=
> or<br>sform_zorient=A0 Left-to-Right<br><br>Then, I apply fslswapdim  
> origin=
> al_file -z -x y new_file<br>
> <br>If I look at the header info of the new file I have  
> <br>qform_name=A0=
> =A0=A0=A0 Scanner Anat<br>qform_code=A0=A0=A0=A0 1<br>qto_xyz: 
> 1=A0=A0=A0=A0=
> =A0 -1.000000=A0 0.000000=A0 -0.000000=A0 86.894676<br>qto_xyz: 
> 2=A0=A0=A0=
> =A0=A0 0.000000=A0 1.000000=A0 -0.000000=A0 -116.104111<br>
> qto_xyz:3=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 1.000000=A0  
> -131.237289<br=
>> qto_xyz:4=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 0.000000=A0  
>> 1.000000<br>q=
> form_xorient=A0 Right-to-Left<br>qform_yorient=A0 Posterior-to- 
> Anterior<br>=
> qform_zorient=A0 Inferior-to-Superior<br>
> sform_name=A0=A0=A0=A0 Scanner Anat<br>sform_code=A0=A0=A0=A0  
> 1<br>sto_xyz:=
> 1=A0=A0=A0=A0=A0 -1.000000=A0 0.000000=A0 0.000000=A0  
> 86.894676<br>sto_xyz:=
> 2=A0=A0=A0=A0=A0 0.000000=A0 1.000000=A0 0.000000=A0  
> -116.104111<br>sto_xyz=
> :3=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 1.000000=A0 -131.237289<br>
> sto_xyz:4=A0=A0=A0=A0=A0 0.000000=A0 0.000000=A0 0.000000=A0  
> 1.000000<br>sf=
> orm_xorient=A0 Right-to-Left<br>sform_yorient=A0 Posterior-to- 
> Anterior<br>s=
> form_zorient=A0 Inferior-to-Superior<br><br>How should I apply  
> fslorient on=
> my new file to make sure the header info are appropriate? Should I  
> copy th=
> e sform of the original file (since the qform is unknown)? If yes,  
> how shou=
> ld I copy it?<br>
> <br>Thank you!<br>Best,<br><br>C=E9cile<br><br><br><br><div  
> class=3D"gmail_=
> quote">On Mon, Sep 27, 2010 at 11:13 PM, Michael Harms <span  
> dir=3D"ltr">&l=
> t;<a href=3D"mailto:[log in to unmask]">[log in to unmask]</ 
> a>&gt;<=
> /span> wrote:<br>
> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt  
> 0.8ex; borde=
> r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">What do  
> you mean =
> by &quot;not well oriented while looking at them in fslview&quot;?<br>
> Is the brain just sideways or upside-down in the display, or are  
> the<br>
> orientation labels shown within fslview actually in the wrong  
> position?<br>
> <br>
> You might want to read #7 in the FSL FAQ, which makes clear that  
> using<br>
> fslswapdim in the fashion that you appear to be doing (i.e.,  
> without<br>
> fslorient) will mess up the orientation if you are starting with a  
> valid<br=
>>
> nifti file (i.e., one in the which the R/L, A/P, and S/I labels show  
> up in<=
> br>
> the proper locations within fslview).<br>
> <br>
> Best,<br>
> <font color=3D"#888888">-MH<br>
> </font><div><div></div><div class=3D"h5"><br>
> <br>
> &gt; Hi,<br>
> &gt;<br>
> &gt; I am using feat to run analyses on fMRI data that were acquired  
> sagitt=
> ally<br>
> &gt; (anatomical and EPI runs).<br>
> &gt;<br>
> &gt; Because of the direction of the acquisitions, the nifti files  
> created =
> from<br>
> &gt; the dicom with dcm2nii were not well oriented while looking at  
> them in=
> <br>
> &gt; fslview and the registration step did not work properly  
> (everything wa=
> s<br>
> &gt; flipped 180=B0. The frontal lobe of the example_function was in  
> the<br=
>>
> &gt; occipital<br>
> &gt; of the standard images etc...).<br>
> &gt;<br>
> &gt; I then decided to re-orient the nifti files using:<br>
> &gt; fslswapdim input.nii.gz -z -x y output.nii.gz<br>
> &gt; But in doing this I am afraid it might be problematic for the  
> slice ti=
> ming<br>
> &gt; correction step. Am I right? How does feat determine the slice  
> order a=
> nd<br>
> &gt; the<br>
> &gt; direction of slice acquisition?<br>
> &gt;<br>
> &gt; So as an other solution I kept the run and anatomical we  
> acquired in t=
> he<br>
> &gt; &quot;wrong orientation&quot; and created an icbm152 template  
> (using f=
> slswapdim -y z<br>
> &gt; -x) with the same orientation as our acquisitions. This way,  
> the<br>
> &gt; registration seems to work properly and I could run a group  
> analysis.<=
> br>
> &gt; My only concern is about the coordinates of my images. Does  
> fslswapdim=
> <br>
> &gt; affect the coordinates of the volume acquired? Are the  
> coordinates of =
> the<br>
> &gt; cluster list still accurate (as I used a template with  
> different<br>
> &gt; orientations)?<br>
> &gt; If I reorient my final group statistic maps in the  
> &quot;right&quot; o=
> rientation<br>
> &gt; using<br>
> &gt; once again fslswapdim (-z -x y), can I use the Atlas tools  
> without hav=
> ing<br>
> &gt; to<br>
> &gt; worry about the coordinates?<br>
> &gt;<br>
> &gt; I went through a lot of anterior posts in the FSL archives.  
> That is ho=
> w I<br>
> &gt; discovered fslswapdim (thank you for those very useful posts!).  
> I did =
> not<br>
> &gt; find any post regarding analysis of data acquired sagittally  
> though (m=
> aybe<br>
> &gt; I<br>
> &gt; did not use the right keywords...).<br>
> &gt; Any help and suggestions will be very welcome.<br>
> &gt;<br>
> &gt; Thanks in advance!<br>
> &gt; Best,<br>
> &gt;<br>
> &gt; C=E9cile Madjar<br>
> &gt;<br>
> </div></div></blockquote></div><br>
>
> --00151750d89c2434e604915245ce--
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

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