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  October 2012

FSL October 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Running probtrackx using surfaces

From:

Saad Jbabdi <[log in to unmask]>

Reply-To:

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

Date:

Fri, 12 Oct 2012 20:37:06 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (246 lines)

Hi

There are two problems here. 

1) FSL does not read .mgz files. You need to first convert the brain.mgz into brain.nii.gz with the following freesurfer command:

	mri_convert brain.mgz brain.nii.gz

2) the label2surf command takes as input a text file with a bunch of labels in it. So in your case, you need to do:
	
	echo lh.V1.label >  label_list.txt
	label2surf -l label_list.txt -s lh.white.asc -o lh_V1.gii


You don't need to work with the Caret conventions, just stick to freesurfer so that everything else is easier for you.

cheers
Saad

On 12 Oct 2012, at 20:29, Monica G. Chica wrote:

> Hi Saad, sorry so many questions. I am following the wiki and it says
> that I must have all my surfaces using the same convention and that
> prefer format is GIFTI. I want to use the L_LGN.nii.gz or L_LGN.mgh
> (both are in conformed space - left LGN) as seed and lh.V1.label and
> lh.V2.label as targets. I want all in caret convention and gifti
> format at it is said is the prefered.
> 
> So, I first try to transform my label files to a surface, as the
> manual indicates, using label2surf. This way:
> label2surf -s brain.mgz -o lh_V1  -l lh.V1.label
> It tells me that brain.mgz is unknown format. so I try typing this command:
> label2surf -s brain.nii.gz -o lh_V1  -l lh.V1.label
> Still, unknown format.
> So, I try this:
> label2surf -s lh.white.asc -o lh_V1  -l lh.V1.label
> Then, it says: Could not open label file #!ascii
> 
> So, I really don't know what to put as input surface. Sorry, Im new
> with this files formats and conventions.
> 
> Then I try to switch conventions for my LGN using surf2surf:
> 
> surf2surf -i L_LGN2freesurfer.mgh -o median2freesurfer.gii
> --convin=freesurfer --convout=caret --volin=brain.mgz
> and I get the following error:
> Image Exception : #22 :: ERROR: Could not open image
> /Volumes/FreeAgentGoFlexDrive/dyslexia/p2/freesurfer/mri/brain.mgz
> So again I try using the brain.nii.gz and neither work, I get the same error.
> 
> Please, help.... thanks.
> 
> 2012/10/12, Saad Jbabdi <[log in to unmask]>:
>> Hi Monica
>> 
>> The new documentation is a wiki :
>> http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FDT/UserGuide#Using_surfaces
>> 
>> And note that you need to download FSL5 in order to use these new features.
>> 
>> I am not entirely sure how mri_label2vol works, but my guess is that the
>> reference volume is simply the brain in conformed space (e.g.
>> $SUBJECTS_DIR/subject/mri/brain.mgz)
>> 
>> But note that you don't need to convert your labels to volumes if you follow
>> the instructions on the wiki page.
>> 
>> Cheers
>> Saad
>> 
>> 
>> On 12 Oct 2012, at 06:31, Monica G. Chica wrote:
>> 
>>> Hello Saad, ok I realize that labels were only available in probtrackx
>>> older version. So now I try to convert my labels to a volume using
>>> mri_label2vol:
>>> 
>>> 1. I'm using as input to --reg a file that is created like this:
>>> printf "p2\n1 \n1 \n1 \n1 0 0 0\n0 1 0 0 .... Etc, creating an identity
>>> matrix.
>>> Is that correct?
>>> 
>>> 2. but now it asks me for a template volume. What should be that volume?
>>> 
>>> Thank you very much.
>>> 
>>> Le jeudi 11 octobre 2012, Monica G. Chica a écrit :
>>> Hello, in FSL web page, in the documentation "Running probtrackx from free
>>> surfer cortical surfaces" (fsl.fmrib.ox.ac.uk/fsl/fdt/fdt_surface.html) it
>>> says just one paragraph before point 3 "this will create a file called
>>> myroilabel.label that you can use directly in probtrackx ....etc"
>>> 
>>> And in section 3 the command that is given as example on how to run
>>> probtrackx with surfaces  says "probtrackx -x myroilabel.label ....etc"
>>> 
>>> So it means there is an error in documentation and .label files can't be
>>> really used directly in probtrackx? Or is that they can only be used with
>>> probtrackx and not with probtrackx2? Because in probtrackx it says in
>>> section 3 the surface information is in the parameter --mesh.
>>> 
>>> Thanks,
>>> 
>>> Le jeudi 11 octobre 2012, Saad Jbabdi a écrit :
>>> Hi
>>> 
>>> 
>>>> Hello, thanks for the response. You mean with probtrackx2 I don't have to
>>>> enter the --mesh parameter?
>>> 
>>> Yes that's right.
>>> 
>>>> 
>>>> I want to use as seed a ROI in the left heliosphere and as classification
>>>> targets one ROI of the left and one of the right. As I understand to
>>>> include the targets I write their paths in a file and give it as
>>>> --targetmasks parameter. Do I need to include that file with my targets
>>>> also in the parameter --waypoints?? or I don't need to pass it twice?
>>> 
>>> Use waypoint if you want to use an inclusion mask. the --targetmasks
>>> option will only do the counting, it will not exclude streamlines that do
>>> not pass through the targets.
>>> 
>>>> Oh, I thought I could enter for the paremeter -x a .label file. So it
>>>> needs to be a .mgh file?
>>> 
>>> You can't use the label file, as these do not contain surface information.
>>> You can't use .mgh either. Please have a look at the doc to see which file
>>> formats are available.
>>> 
>>> Cheers
>>> Saad
>>> 
>>>> 
>>>> Thank you,
>>>> 
>>>> Le lundi 8 octobre 2012, Saad Jbabdi a écrit :
>>>> Hi
>>>> 
>>>> I would recommend using probtrackx2 for this, as unlike probtrackx, you
>>>> don't need a surface description: probtrackx2 does not assume that you
>>>> are using just one surface, but instead each ROI mask defines its own
>>>> surface.
>>>> 
>>>> If you need both hemispheres (e.g. one where the seed is and one where
>>>> the waypoint mask is) then you should use both surfaces.
>>>> 
>>>> I am assuming your seed/target masks are freesurfer label files? In this
>>>> case, you will need to transform these into surface files using
>>>> label2surf (seed the doc)
>>>> 
>>>> Cheers
>>>> Saad
>>>> 
>>>> 
>>>> On 8 Oct 2012, at 05:38, Monica Giraldo wrote:
>>>> 
>>>>> Dear FSL experts, I'm trying to run tracktography between a region in
>>>>> left hemisphere to a region in the right one using freesurfer surfaces.
>>>>> I don't know what file to put as a description of the whole cortical
>>>>> surface. In FSL page you recommend lh.white.asc if Left hemisphere and
>>>>> rh...etc if right hemisphere .... But if I'm tracking in both
>>>>> hemispheres then what file I put? I see in the folder mri (from the
>>>>> output of freesurfer) a wm.mgz file but is not a label file.
>>>>> Sorry, I'm new with freesurfer. I was thinking on passing that .mgz to
>>>>> nifti as you tell to do with the brain.mgz in tutorial and use that but
>>>>> I'm not sure.
>>>>> 
>>>>> Thanks,
>>>>> 
>>>> 
>>>> --
>>>> Saad Jbabdi
>>>> University of Oxford, FMRIB Centre
>>>> 
>>>> JR Hospital, Headington, OX3 9DU, UK
>>>> (+44)1865-222466  (fax 717)
>>>> www.fmrib.ox.ac.uk/~saad
>>>> 
>>>> 
>>>> --
>>>> Mónica Giraldo Chica
>>>> PhD student in Biomedicine
>>>> University of Barcelona (Spain) - York University (Canada)
>>>> Neuroimaging Laboratory
>>>> 1008 Sherman Health Science Research Center. Toronto, Canada
>>>> www.monicagiraldochica.com
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Mónica Giraldo Chica
>>> PhD student in Biomedicine
>>> University of Barcelona (Spain) - York University (Canada)
>>> Neuroimaging Laboratory
>>> 1008 Sherman Health Science Research Center. Toronto, Canada
>>> www.monicagiraldochica.com
>>> 
>>> 
>>> 
>>> --
>>> Mónica Giraldo Chica
>>> PhD student in Biomedicine
>>> University of Barcelona (Spain) - York University (Canada)
>>> Neuroimaging Laboratory
>>> 1008 Sherman Health Science Research Center. Toronto, Canada
>>> www.monicagiraldochica.com
>>> 
>> 
>> --
>> Saad Jbabdi
>> University of Oxford, FMRIB Centre
>> 
>> JR Hospital, Headington, OX3 9DU, UK
>> (+44)1865-222466  (fax 717)
>> www.fmrib.ox.ac.uk/~saad
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> -- 
> *Mónica Giraldo Chica
> PhD student in Biomedicine
> University of Barcelona (Spain) - York University (Canada)
> Neuroimaging Laboratory
> 1008 Sherman Health Science Research Center. Toronto, Canada*
> *www.monicagiraldochica.com*
> 

--
Saad Jbabdi
University of Oxford, FMRIB Centre

JR Hospital, Headington, OX3 9DU, UK
(+44)1865-222466  (fax 717)
www.fmrib.ox.ac.uk/~saad

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