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  2005

FSL 2005

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: co-registration

From:

Julius Fridriksson <[log in to unmask]>

Reply-To:

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

Date:

Fri, 11 Mar 2005 14:09:30 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (331 lines)

Mark -- Thanks very much for your help. Sincerely -- Julius

Julius Fridriksson Ph.D.
Assistant Professor
Communication Sciences & Disorders
University of South Carolina
Tel: (803) 777-5931
Fax: (803) 777-3081

>>> [log in to unmask] 03/11/05 02:06PM >>>
OK, it is a difference in the updatefeatreg script.
Sorry about that.  Yours will only work in the reg
subdirectory as it is written and my local one prefers
the feat directory but will probably work in both.
It appears that the version I have here has been updated
and isn't the same as our distributed version.

So you should use yours in the reg subdirectory and
forget what I said about going to the feat directory.
Once again, apologies for any inconvenience.

All the best,
        Mark


On 11 Mar 2005, at 18:37, Julius Fridriksson wrote:

> The two commands below do not work:  dirnm=`pwd`; > command not
found;
> cd ${dirnm}/reg > undefined variable. I am attaching a copy of my
> updatefeatreg, anyway. Any suggestions? Thanks -- Julius
>
> Julius Fridriksson Ph.D.
> Assistant Professor
> Communication Sciences & Disorders
> University of South Carolina
> Tel: (803) 777-5931
> Fax: (803) 777-3081
>
>>>> [log in to unmask] 03/11/05 01:03PM >>>
> Hi,
>
> The script is written so that the variable dirnm is set to the
> argument.
> It then tries to do "cd ${dirnm}/reg" internally.
> For this reason the argument should be the feat directory.
>
> It is true that I could have written it to run from the reg
> subdirectory,
> but I didn't.  I tried to keep it more consistent with other feat
> scripts
> that run from the top level feat directory.
>
> So I'm slightly concerned that it does not work from the feat
> directory
> but does work from the reg subdirectory.  This doesn't really make
> sense and makes me wonder if it is an indication of some other
> problem which may cause headaches in the future.  For this reason
> I'm reluctant to just say run it from the reg subdirectory and don't
> worry about the problem.  I'd rather track down the cause of the
> problem
> now in case it affects something else later.
>
> It is also true that it probably will work from the reg
subdirectory,
> as
> the "cd ${dirnm}/reg" will fail and you'll just stay in the current
> directory, which is fine.  But I can't see why it fails to work from
> the
> feat directory.  Maybe it is because `pwd` is returning something
> strange.  Try the following commands at the prompt, from the
> feat directory:
>   dirnm=`pwd`;
>   cd ${dirnm}/reg
> Does this get you to the reg subdirectory?
>
> If not then that is the problem.  If is does work though, then I'm
> still quite confused as to why the script isn't working as it
should.
>
> So, could you please run the lines above, and also send me a copy
> of $FSLDIR/bin/updatefeatreg so that I can check that it is the
> same version as the one here?
>
> Thanks,
>     Mark
>
>
>
> Julius Fridriksson wrote:
>
>> It script does not seem to continue into /reg when run from the
feat
>> dir. It fails everytime I run this from the feat dir. Why is it
>> necessary to run this from the feat dir rather from /reg? Thanks --
>> Julius
>>
>> Julius Fridriksson Ph.D.
>> Assistant Professor
>> Communication Sciences & Disorders
>> University of South Carolina
>> Tel: (803) 777-5931
>> Fax: (803) 777-3081
>>
>>
>>
>>>>> [log in to unmask] 03/11/05 12:37PM >>>
>>>>>
>>>>>
>> Hi,
>>
>> This is strange because in step 4 you should have copied a matrix
>> into the reg directory and called it example_func2highres.mat
>> Therefore it should be able to find this file.
>>
>> As for where to run the command - it needs to be run in the
>> feat directory, rather than the reg subdirectory.  Part of the
>> script will cd into the reg subdirectory, and this will fail if it
>> is in the reg subdirectory already (although it make continue
>> on and work otherwise, I'd be happier if it ran as expected).
>>
>> Does it always fail to find example_func2highres.mat when you
>> run it from the feat directory?
>>
>>    Mark
>>
>>
>> Julius Fridriksson wrote:
>>
>>
>>
>>> Mark -- I ran this and it seems to work with one exception: In
step
> 6.
>>>
>>>
>> I
>>
>>
>>> get a "could not find example_fun2highres.mat". Isn't it enough to
>>>
>>>
>> run
>>
>>
>>> "updatefeatreg . -gifs" under /reg? All updates seem to occur when
>>>
>>>
>> run
>>
>>
>>> as such. Thanks for your help on this. Best -- Julius
>>>
>>> Julius Fridriksson Ph.D.
>>> Assistant Professor
>>> Communication Sciences & Disorders
>>> University of South Carolina
>>> Tel: (803) 777-5931
>>> Fax: (803) 777-3081
>>>
>>>
>>>
>>>
>>>
>>>>>> [log in to unmask] 03/10/05 09:53AM >>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>> Hi,
>>>
>>> The best way to do this analysis is still to analyse each session
>>> individually
>>> and then combine them later in a higher level analysis.  This
allows
>>> both
>>> the within-session and between-session variances to be modelled
>>> better.
>>> However, you are right in that you need to make the registrations
>>>
>>>
>> work
>>
>>
>>> specially, as the default in FEAT certainly won't work.
>>>
>>> What I recommend is the following:
>>> 1 - pick a reference image (e.g. an anatomical scan from that
>>>
>>>
>> subject)
>>
>>
>>> 2 - run FEAT on each individual session, but deselect all
>>> registrations
>>>   except the one to standard space, but use the reference image
>>> you've
>>>   selected previously as the filename for the "standard space"
>>>
>>>
>> image
>>
>>
>>> 3 - after FEAT has run, register each session's example_func to
the
>>>   reference image separately using FLIRT with cost function
>>> weighting
>>>   to reduce the effect of the lesions.
>>> 4 - copy the FLIRT matrix from above into the reg sub-directory of
>>>
>>>
>> the
>>
>>
>>>   appropriate FEAT folder, but call the matrix
>>> example_func2highres.mat.
>>>   Also create a highres2standard.mat file which contains the
>>> identity
>>>   transformation -  that is the following 4 lines:
>>>   1 0 0 0
>>>   0 1 0 0
>>>   0 0 1 0
>>>   0 0 0 1
>>>
>>> 5 - in the reg subdirectory do "imln standard highres"
>>> 6 - do "cd .." (to get to the main .feat directory) and run
>>>   "updatefeatreg . -gifs" here
>>>   This will regenerate the example_func2standard.mat file and
>>>   all appropriate matrices and images along with it.
>>> 7 - Now you can run higher level analyses as normal.
>>>
>>> Note that steps 4 and 5 are necessary in this case to trick
>>> updatefeatreg
>>> into dealing with just an example_func to standard space
>>>
>>>
>> registration.
>>
>>
>>> The key is that if you replace key matrices in the reg
subdirectory
>>> then
>>> updatefeatreg will fix everything else in this subdirectory to
>>> incorporate
>>> them correctly, allowing higher level analysis to proceed
correctly.
>>>
>>> I hope this makes sense to you, and let me know if you have any
>>> trouble
>>> with this.
>>>
>>> All the best,
>>>   Mark
>>>
>>>
>>> Julius Fridriksson wrote:
>>>
>>>
>>>
>>>
>>>
>>>> Hi -- I have a question regarding co-registration for stroke
>>>>
>>>>
>>>>
>>>>
>>> patients:
>>>
>>>
>>>
>>>
>>>> We employed three pre- and three post-treatment scanning sessions
> in
>>>> several persons with large unilateral brain lesions.  The plan is
> to
>>>>
>>>>
>>>>
>>>>
>>> run
>>>
>>>
>>>
>>>
>>>> a higher level analysis for each subject to get mean activation
>>>>
>>>>
>>>>
>>>>
>>> across
>>>
>>>
>>>
>>>
>>>> the three pre- and three post-treatment scans. My quesion is
this:
>>>> should we co-register the three functional runs using FLIRT
before
>>>>
>>>>
>> we
>>
>>
>>>> run the actual first level analyses? We would like to mask out
the
>>>> lesion in each case for volume weighting. We are not interested
in
>>>> colapsing across the subjects, only across the three pre- and
three
>>>> post-treatment scanning sessions within each participant. Thanks
>>>>
>>>>
>> very
>>
>>
>>>> much in advance -- Julius
>>>>
>>>> Julius Fridriksson Ph.D.
>>>> Assistant Professor
>>>> Communication Sciences & Disorders
>>>> University of South Carolina
>>>> Tel: (803) 777-5931
>>>> Fax: (803) 777-3081
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
> <updatefeatreg>

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