Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-17 Thread Leah
Dear Matt and David,

 

I just found what the problem was. The zmaps I was using are in functional 
space, not in highres space as FS. That is why my fMRI volume and T1w image are 
not aligned. Problem solved after converting my zmaps to highres space I got my 
surface maps now without problem.

 

Thank you very much for all your help and support. I really appreciate it. Very 
useful.

 

Best regards,

 

-L

 

From: "Glasser, Matthew" 
Date: Tuesday, January 17, 2017 at 4:15 PM
To: Leah Moreno , "Van Essen, David" 

Cc: "hcp-users@humanconnectome.org" 
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

 

Your fMRI volume and T1w image are not aligned.  I have no idea why that is…

 

Peace,

 

Matt.

 

From: Leah Moreno 
Date: Tuesday, January 17, 2017 at 10:34 AM
To: Matt Glasser , "Van Essen, David" 
Cc: "hcp-users@humanconnectome.org" 
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

 

Dear David and Matt,

 

Thank you for the specification. Please find attached the right picture now. It 
looks good to me.

 

What is the problem with individual zmap volume and how could I restore the 
misalignment between fMRI volume and T1w image?

 

I really appreciate your help with this.

 

Leah

 

**

Leah Moreno, PhD

Associate Research Scientist

Division of Experimental Therapeutics

Department of Psychiatry

Columbia University Medical Center

1051 Riverside Drive, Unit 21

New York, NY 10032

phone: (646) 774-5404

email: mm4...@cumc.columbia.edu

email: mmor...@nyspi.columbia.edu

 

 

From: "Glasser, Matthew" 
Date: Monday, January 16, 2017 at 10:33 PM
To: "Van Essen, David" , Leah Moreno 
, "hcp-users@humanconnectome.org" 

Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

 

It would appear that your fMRI volume is not aligned with your T1w image.

 

Peace,

 

Matt.

 

From:  on behalf of David Van Essen 

Date: Monday, January 16, 2017 at 9:21 PM
To: Leah Moreno , "hcp-users@humanconnectome.org" 

Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

 

Leah, 

 

I’m not sure exactly what was in your display. But I think what Matt was asking 
for was to see the surface contours for your individual subject surface (e.g., 
midthickness) overlaid on volume slices using the Vol/Surf Outline as in the 
attached screen capture (which is an average surface, but it suffices for the 
point).  That will help determine whether the surfaces you are using are 
aligned with the volume data used for the volume-to-surface mapping.

 

David

 

On Jan 16, 2017, at 10:45 AM, Leah Moreno  wrote:

 

Dear Matt,

Please find attached 2 pictures of individual z-map on brain.finalsurfs and 
averageT1w_restore (template).

Much appreacition.

-L

On 1/16/17, 11:04 AM, "Glasser, Matthew"  wrote:

   What does it look like if you view the volume surface outline of your
   chosen surface on the functional connectivity volume in Connectome
   Workbench?

   Peace,

   Matt.

   On 1/16/17, 12:04 AM, "Leah Moreno"  wrote:




Dear Matt,

Thank you very much. Here you have the output of mri_info
brain.finalsurfs.mgz:

Volume information for brain.finalsurfs.mgz
type: MGH
  dimensions: 256 x 256 x 256
 voxel sizes: 1., 1., 1.
type: UCHAR (0)
 fov: 256.000
 dof: 0
  xstart: -128.0, xend: 128.0
  ystart: -128.0, yend: 128.0
  zstart: -128.0, zend: 128.0
  TR: 1000.00 msec, TE: 0.00 msec, TI: 0.00 msec, flip angle:
0.00 degrees
 nframes: 1
 PhEncDir: UNKNOWN
ras xform present
  xform info: x_r =  -1., y_r =   0., z_r =   0., c_r =
-0.5000
: x_a =   0., y_a =   0., z_a =   1., c_a =
26.
: x_s =   0., y_s =  -1., z_s =   0., c_s =
1.

talairach xfm :
/Volumes/data3/sz/sort/x50001/FS/x50001/mri/transforms/talairach.xfm
Orientation   : LIA
Primary Slice Direction: coronal

voxel to ras transform:
 -1.   0.   0.   127.5000
  0.   0.   1.  -102.
  0.  -1.   0.   129.
  0.   0.   0. 1.

voxel-to-ras determinant -1

ras to voxel transform:
 -1.   0.   0.   127.5000
 -0.  -0.  -1.   129.
 -0.   1.  -0.   102.
  0.   0.   0. 1.



 

PastedGraphic-1.tiff

 

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

 

The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in 

Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-17 Thread Glasser, Matthew
Your fMRI volume and T1w image are not aligned.  I have no idea why that is...

Peace,

Matt.

From: Leah Moreno mailto:mmorenoort...@icloud.com>>
Date: Tuesday, January 17, 2017 at 10:34 AM
To: Matt Glasser mailto:glass...@wustl.edu>>, "Van Essen, 
David" mailto:vanes...@wustl.edu>>
Cc: "hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>" 
mailto:hcp-users@humanconnectome.org>>
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

Dear David and Matt,

Thank you for the specification. Please find attached the right picture now. It 
looks good to me.

What is the problem with individual zmap volume and how could I restore the 
misalignment between fMRI volume and T1w image?

I really appreciate your help with this.

Leah

**
Leah Moreno, PhD
Associate Research Scientist
Division of Experimental Therapeutics
Department of Psychiatry
Columbia University Medical Center
1051 Riverside Drive, Unit 21
New York, NY 10032
phone: (646) 774-5404
email: mm4...@cumc.columbia.edu<mailto:mm4...@cumc.columbia.edu>
email: mmor...@nyspi.columbia.edu<mailto:mmor...@nyspi.columbia.edu>
[cid:image001.jpg@01D270AD.37C0A1B0]


From: "Glasser, Matthew" mailto:glass...@wustl.edu>>
Date: Monday, January 16, 2017 at 10:33 PM
To: "Van Essen, David" mailto:vanes...@wustl.edu>>, Leah 
Moreno mailto:mmorenoort...@icloud.com>>, 
"hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>" 
mailto:hcp-users@humanconnectome.org>>
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

It would appear that your fMRI volume is not aligned with your T1w image.

Peace,

Matt.

From: 
mailto:hcp-users-boun...@humanconnectome.org>>
 on behalf of David Van Essen mailto:vanes...@wustl.edu>>
Date: Monday, January 16, 2017 at 9:21 PM
To: Leah Moreno mailto:mmorenoort...@icloud.com>>, 
"hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>" 
mailto:hcp-users@humanconnectome.org>>
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

Leah,

I'm not sure exactly what was in your display. But I think what Matt was asking 
for was to see the surface contours for your individual subject surface (e.g., 
midthickness) overlaid on volume slices using the Vol/Surf Outline as in the 
attached screen capture (which is an average surface, but it suffices for the 
point).  That will help determine whether the surfaces you are using are 
aligned with the volume data used for the volume-to-surface mapping.

David

On Jan 16, 2017, at 10:45 AM, Leah Moreno 
mailto:mmorenoort...@icloud.com>> wrote:

Dear Matt,

Please find attached 2 pictures of individual z-map on brain.finalsurfs and 
averageT1w_restore (template).

Much appreacition.

-L

On 1/16/17, 11:04 AM, "Glasser, Matthew" 
mailto:glass...@wustl.edu>> wrote:

   What does it look like if you view the volume surface outline of your
   chosen surface on the functional connectivity volume in Connectome
   Workbench?

   Peace,

   Matt.

   On 1/16/17, 12:04 AM, "Leah Moreno" 
mailto:mmorenoort...@icloud.com>> wrote:


Dear Matt,

Thank you very much. Here you have the output of mri_info
brain.finalsurfs.mgz:

Volume information for brain.finalsurfs.mgz
type: MGH
  dimensions: 256 x 256 x 256
 voxel sizes: 1., 1., 1.
type: UCHAR (0)
 fov: 256.000
 dof: 0
  xstart: -128.0, xend: 128.0
  ystart: -128.0, yend: 128.0
  zstart: -128.0, zend: 128.0
  TR: 1000.00 msec, TE: 0.00 msec, TI: 0.00 msec, flip angle:
0.00 degrees
 nframes: 1
 PhEncDir: UNKNOWN
ras xform present
  xform info: x_r =  -1., y_r =   0., z_r =   0., c_r =
-0.5000
: x_a =   0., y_a =   0., z_a =   1., c_a =
26.
: x_s =   0., y_s =  -1., z_s =   0., c_s =
1.

talairach xfm :
/Volumes/data3/sz/sort/x50001/FS/x50001/mri/transforms/talairach.xfm
Orientation   : LIA
Primary Slice Direction: coronal

voxel to ras transform:
 -1.   0.   0.   127.5000
  0.   0.   1.  -102.
  0.  -1.   0.   129.
  0.   0.   0. 1.

voxel-to-ras determinant -1

ras to voxel transform:
 -1.   0.   0.   127.5000
 -0.  -0.  -1.   129.
 -0.   1.  -0.   102.
  0.   0.   0. 1.


PastedGraphic-1.tiff


___
HCP-Users mailing list
HCP-Users@humanconnectome.org<mailto:HCP-Users@humanconnectome.org>
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


The materials in this message are private and may contain Protected Healthcare 
Informa

Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-16 Thread Glasser, Matthew
It would appear that your fMRI volume is not aligned with your T1w image.

Peace,

Matt.

From: 
mailto:hcp-users-boun...@humanconnectome.org>>
 on behalf of David Van Essen mailto:vanes...@wustl.edu>>
Date: Monday, January 16, 2017 at 9:21 PM
To: Leah Moreno mailto:mmorenoort...@icloud.com>>, 
"hcp-users@humanconnectome.org<mailto:hcp-users@humanconnectome.org>" 
mailto:hcp-users@humanconnectome.org>>
Subject: Re: [HCP-Users] map data between FreeSurfer and HCP

Leah,

I'm not sure exactly what was in your display. But I think what Matt was asking 
for was to see the surface contours for your individual subject surface (e.g., 
midthickness) overlaid on volume slices using the Vol/Surf Outline as in the 
attached screen capture (which is an average surface, but it suffices for the 
point).  That will help determine whether the surfaces you are using are 
aligned with the volume data used for the volume-to-surface mapping.

David

On Jan 16, 2017, at 10:45 AM, Leah Moreno 
mailto:mmorenoort...@icloud.com>> wrote:

Dear Matt,

Please find attached 2 pictures of individual z-map on brain.finalsurfs and 
averageT1w_restore (template).

Much appreacition.

-L

On 1/16/17, 11:04 AM, "Glasser, Matthew" 
mailto:glass...@wustl.edu>> wrote:

   What does it look like if you view the volume surface outline of your
   chosen surface on the functional connectivity volume in Connectome
   Workbench?

   Peace,

   Matt.

   On 1/16/17, 12:04 AM, "Leah Moreno" 
mailto:mmorenoort...@icloud.com>> wrote:

Dear Matt,

Thank you very much. Here you have the output of mri_info
brain.finalsurfs.mgz:

Volume information for brain.finalsurfs.mgz
type: MGH
  dimensions: 256 x 256 x 256
 voxel sizes: 1., 1., 1.
type: UCHAR (0)
 fov: 256.000
 dof: 0
  xstart: -128.0, xend: 128.0
  ystart: -128.0, yend: 128.0
  zstart: -128.0, zend: 128.0
  TR: 1000.00 msec, TE: 0.00 msec, TI: 0.00 msec, flip angle:
0.00 degrees
 nframes: 1
 PhEncDir: UNKNOWN
ras xform present
  xform info: x_r =  -1., y_r =   0., z_r =   0., c_r =
-0.5000
: x_a =   0., y_a =   0., z_a =   1., c_a =
26.
: x_s =   0., y_s =  -1., z_s =   0., c_s =
1.

talairach xfm :
/Volumes/data3/sz/sort/x50001/FS/x50001/mri/transforms/talairach.xfm
Orientation   : LIA
Primary Slice Direction: coronal

voxel to ras transform:
 -1.   0.   0.   127.5000
  0.   0.   1.  -102.
  0.  -1.   0.   129.
  0.   0.   0. 1.

voxel-to-ras determinant -1

ras to voxel transform:
 -1.   0.   0.   127.5000
 -0.  -0.  -1.   129.
 -0.   1.  -0.   102.
  0.   0.   0. 1.



PastedGraphic-1.tiff


___
HCP-Users mailing list
HCP-Users@humanconnectome.org<mailto:HCP-Users@humanconnectome.org>
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited. If you have received this email in error, please 
immediately notify the sender via telephone or return mail.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-16 Thread Glasser, Matthew
What does it look like if you view the volume surface outline of your
chosen surface on the functional connectivity volume in Connectome
Workbench?

Peace,

Matt.

On 1/16/17, 12:04 AM, "Leah Moreno"  wrote:

>Dear Matt,
>
>Thank you very much. Here you have the output of mri_info
>brain.finalsurfs.mgz:
>
>Volume information for brain.finalsurfs.mgz
>  type: MGH
>dimensions: 256 x 256 x 256
>   voxel sizes: 1., 1., 1.
>  type: UCHAR (0)
>   fov: 256.000
>   dof: 0
>xstart: -128.0, xend: 128.0
>ystart: -128.0, yend: 128.0
>zstart: -128.0, zend: 128.0
>TR: 1000.00 msec, TE: 0.00 msec, TI: 0.00 msec, flip angle:
>0.00 degrees
>   nframes: 1
>   PhEncDir: UNKNOWN
>ras xform present
>xform info: x_r =  -1., y_r =   0., z_r =   0., c_r =
>-0.5000
>  : x_a =   0., y_a =   0., z_a =   1., c_a =
>26.
>  : x_s =   0., y_s =  -1., z_s =   0., c_s =
>1.
>
>talairach xfm :
>/Volumes/data3/sz/sort/x50001/FS/x50001/mri/transforms/talairach.xfm
>Orientation   : LIA
>Primary Slice Direction: coronal
>
>voxel to ras transform:
>   -1.   0.   0.   127.5000
>0.   0.   1.  -102.
>0.  -1.   0.   129.
>0.   0.   0. 1.
>
>voxel-to-ras determinant -1
>
>ras to voxel transform:
>   -1.   0.   0.   127.5000
>   -0.  -0.  -1.   129.
>   -0.   1.  -0.   102.
>0.   0.   0. 1.
>
>
>
>
>On 1/16/17, 12:07 AM, "Glasser, Matthew"  wrote:
>
>Can you post the output of the mri_info command without the grep and
>such?
>
>Peace,
>
>Matt.
>
>On 1/15/17, 10:11 PM, "Leah Moreno"  wrote:
>
>>Dear Matt and experts,
>>
>>Thank you for your help. Here you have the code from 1 subject and
>left
>>hemisphere:
>>
>>MatrixX=`mri_info brain.finalsurfs.mgz | grep "c_r" | cut -d "=" -f
>5 |
>>sed s/" "/""/g`
>>MatrixY=`mri_info brain.finalsurfs.mgz | grep "c_a" | cut -d "=" -f
>5 |
>>sed s/" "/""/g`
>>MatrixZ=`mri_info brain.finalsurfs.mgz | grep "c_s" | cut -d "=" -f
>5 |
>>sed s/" "/""/g`
>>echo "1 0 0 ""$MatrixX" > c_ras.mat
>>echo "0 1 0 ""$MatrixY" >> c_ras.mat
>>echo "0 0 1 ""$MatrixZ" >> c_ras.mat
>>echo "0 0 0 1" >> c_ras.mat
>>
>>mris_convert lh.pial lh.pial.native.surf.gii
>>mris_convert lh.white lh.white.native.surf.gii
>>wb_command -set-structure lh.pial.native.surf.gii CORTEX_LEFT
>>-surface-type   ANATOMICAL -surface-secondary-type  PIAL
>>wb_command -set-structure lh.white.native.surf.gii CORTEX_LEFT
>>-surface-type   ANATOMICAL -surface-secondary-type  GRAY_WHITE
>>wb_command -surface-apply-affine lh.pial.native.surf.gii
>../mri/c_ras.mat
>>lh.pial.native.surf.gii
>>wb_command -surface-apply-affine lh.white.native.surf.gii
>>../mri/c_ras.mat lh.white.native.surf.gii
>>wb_command -surface-average LH.midthickness.native.surf.gii -surf
>>lh.white.native.surf.gii -surf lh.pial.native.surf.gii
>>wb_command -set-structure LH.midthickness.native.surf.gii CORTEX_LEFT
>>-surface-type   ANATOMICAL -surface-secondary-type MIDTHICKNESS
>>
>>wb_command -volume-to-surface-mapping zstat1.nii.gz
>
>>/Volumes/data3/sz/sort/x50001/FS/x50001/surf/LH.midthickness.native.surf.
>>g
>>ii LH_zstat1.func.gii ­trilinear
>>
>>Please find attached the image of the FCmap -volume-to-surface
>following
>>these steps. The FCmap is an individual z-map in mni space.
>>
>>Any help would be really appreciated.
>>
>>-L
>>
>>
>>
>>
>>On 1/15/17, 2:09 PM, "Glasser, Matthew"  wrote:
>>
>>If you try with the beta version of FreeSurfer the mris_convert
>>command
>>may take care of what Donna was concerned about automatically or
>with
>>an
>>optional flag.  That said, I asked you multiple times to provide
>the
>>exact
>>commands you were running and any error messages and you have
>not done
>>that.  It is hard to provide support without knowing those kind
>of
>>details.
>>
>>Peace,
>>
>>Matt.
>>
>>On 1/15/17, 1:06 PM, "hcp-users-boun...@humanconnectome.org on
>behalf
>>of
>>Marta Moreno" >mmorenoort...@icloud.com> wrote:
>>
>>>Thank you, Dona. I tried that too but I am getting similar
>pictures.
>>Any
>>>other recommendation? I got very nice results from analyses and
>need
>>nice
>>>pictures.
>>>
>>>Thanks,
>>>-L
>>>
>>>
>>>> On Jan 15, 2017, at 10:40 AM, Dierker, Donna 
>>wrote:
>>>>
>>>> Hi Leah,
>>>>
>>>> I wonder if you need to apply an affine transform to 

Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-15 Thread Leah Moreno
Dear Matt,

Thank you very much. Here you have the output of mri_info brain.finalsurfs.mgz:

Volume information for brain.finalsurfs.mgz
  type: MGH
dimensions: 256 x 256 x 256
   voxel sizes: 1., 1., 1.
  type: UCHAR (0)
   fov: 256.000
   dof: 0
xstart: -128.0, xend: 128.0
ystart: -128.0, yend: 128.0
zstart: -128.0, zend: 128.0
TR: 1000.00 msec, TE: 0.00 msec, TI: 0.00 msec, flip angle: 0.00 
degrees
   nframes: 1
   PhEncDir: UNKNOWN
ras xform present
xform info: x_r =  -1., y_r =   0., z_r =   0., c_r =-0.5000
  : x_a =   0., y_a =   0., z_a =   1., c_a =26.
  : x_s =   0., y_s =  -1., z_s =   0., c_s = 1.

talairach xfm : 
/Volumes/data3/sz/sort/x50001/FS/x50001/mri/transforms/talairach.xfm
Orientation   : LIA
Primary Slice Direction: coronal

voxel to ras transform:
   -1.   0.   0.   127.5000
0.   0.   1.  -102.
0.  -1.   0.   129.
0.   0.   0. 1.

voxel-to-ras determinant -1

ras to voxel transform:
   -1.   0.   0.   127.5000
   -0.  -0.  -1.   129.
   -0.   1.  -0.   102.
0.   0.   0. 1.


 

On 1/16/17, 12:07 AM, "Glasser, Matthew"  wrote:

Can you post the output of the mri_info command without the grep and such?

Peace,

Matt.

On 1/15/17, 10:11 PM, "Leah Moreno"  wrote:

>Dear Matt and experts,
>
>Thank you for your help. Here you have the code from 1 subject and left
>hemisphere:
>
>MatrixX=`mri_info brain.finalsurfs.mgz | grep "c_r" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>MatrixY=`mri_info brain.finalsurfs.mgz | grep "c_a" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>MatrixZ=`mri_info brain.finalsurfs.mgz | grep "c_s" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>echo "1 0 0 ""$MatrixX" > c_ras.mat
>echo "0 1 0 ""$MatrixY" >> c_ras.mat
>echo "0 0 1 ""$MatrixZ" >> c_ras.mat
>echo "0 0 0 1" >> c_ras.mat
>
>mris_convert lh.pial lh.pial.native.surf.gii
>mris_convert lh.white lh.white.native.surf.gii
>wb_command -set-structure lh.pial.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type  PIAL
>wb_command -set-structure lh.white.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type  GRAY_WHITE
>wb_command -surface-apply-affine lh.pial.native.surf.gii ../mri/c_ras.mat
>lh.pial.native.surf.gii
>wb_command -surface-apply-affine lh.white.native.surf.gii
>../mri/c_ras.mat lh.white.native.surf.gii
>wb_command -surface-average LH.midthickness.native.surf.gii -surf
>lh.white.native.surf.gii -surf lh.pial.native.surf.gii
>wb_command -set-structure LH.midthickness.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type MIDTHICKNESS
>
>wb_command -volume-to-surface-mapping zstat1.nii.gz
>/Volumes/data3/sz/sort/x50001/FS/x50001/surf/LH.midthickness.native.surf.g
>ii LH_zstat1.func.gii –trilinear
>
>Please find attached the image of the FCmap -volume-to-surface following
>these steps. The FCmap is an individual z-map in mni space.
>
>Any help would be really appreciated.
>
>-L
>
>
>
>
>On 1/15/17, 2:09 PM, "Glasser, Matthew"  wrote:
>
>If you try with the beta version of FreeSurfer the mris_convert
>command
>may take care of what Donna was concerned about automatically or with
>an
>optional flag.  That said, I asked you multiple times to provide the
>exact
>commands you were running and any error messages and you have not done
>that.  It is hard to provide support without knowing those kind of
>details.
>
>Peace,
>
>Matt.
>
>On 1/15/17, 1:06 PM, "hcp-users-boun...@humanconnectome.org on behalf
>of
>Marta Moreno" mmorenoort...@icloud.com> wrote:
>
>>Thank you, Dona. I tried that too but I am getting similar pictures.
>Any
>>other recommendation? I got very nice results from analyses and need
>nice
>>pictures.
>>
>>Thanks,
>>-L
>>
>>
>>> On Jan 15, 2017, at 10:40 AM, Dierker, Donna 
>wrote:
>>>
>>> Hi Leah,
>>>
>>> I wonder if you need to apply an affine transform to your
>white/pial
>>>surfaces to adjust for the offset between Freesurfer¹s origin and
>your
>>>orig.mgz volume¹s origin.  See this script:
>>>
>>>
>
>>>https://github.com/Washington-University/Pipelines/blob/7cc0bf1863cbc8a1
>>>a
>
>>>7ab9c6dd48a25de9be9bae7/PostFreeSurfer/script

Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-15 Thread Glasser, Matthew
Can you post the output of the mri_info command without the grep and such?

Peace,

Matt.

On 1/15/17, 10:11 PM, "Leah Moreno"  wrote:

>Dear Matt and experts,
>
>Thank you for your help. Here you have the code from 1 subject and left
>hemisphere:
>
>MatrixX=`mri_info brain.finalsurfs.mgz | grep "c_r" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>MatrixY=`mri_info brain.finalsurfs.mgz | grep "c_a" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>MatrixZ=`mri_info brain.finalsurfs.mgz | grep "c_s" | cut -d "=" -f 5 |
>sed s/" "/""/g`
>echo "1 0 0 ""$MatrixX" > c_ras.mat
>echo "0 1 0 ""$MatrixY" >> c_ras.mat
>echo "0 0 1 ""$MatrixZ" >> c_ras.mat
>echo "0 0 0 1" >> c_ras.mat
>
>mris_convert lh.pial lh.pial.native.surf.gii
>mris_convert lh.white lh.white.native.surf.gii
>wb_command -set-structure lh.pial.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type  PIAL
>wb_command -set-structure lh.white.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type  GRAY_WHITE
>wb_command -surface-apply-affine lh.pial.native.surf.gii ../mri/c_ras.mat
>lh.pial.native.surf.gii
>wb_command -surface-apply-affine lh.white.native.surf.gii
>../mri/c_ras.mat lh.white.native.surf.gii
>wb_command -surface-average LH.midthickness.native.surf.gii -surf
>lh.white.native.surf.gii -surf lh.pial.native.surf.gii
>wb_command -set-structure LH.midthickness.native.surf.gii CORTEX_LEFT
>-surface-type   ANATOMICAL -surface-secondary-type MIDTHICKNESS
>
>wb_command -volume-to-surface-mapping zstat1.nii.gz
>/Volumes/data3/sz/sort/x50001/FS/x50001/surf/LH.midthickness.native.surf.g
>ii LH_zstat1.func.gii ­trilinear
>
>Please find attached the image of the FCmap -volume-to-surface following
>these steps. The FCmap is an individual z-map in mni space.
>
>Any help would be really appreciated.
>
>-L
>
>
>
>
>On 1/15/17, 2:09 PM, "Glasser, Matthew"  wrote:
>
>If you try with the beta version of FreeSurfer the mris_convert
>command
>may take care of what Donna was concerned about automatically or with
>an
>optional flag.  That said, I asked you multiple times to provide the
>exact
>commands you were running and any error messages and you have not done
>that.  It is hard to provide support without knowing those kind of
>details.
>
>Peace,
>
>Matt.
>
>On 1/15/17, 1:06 PM, "hcp-users-boun...@humanconnectome.org on behalf
>of
>Marta Moreno" mmorenoort...@icloud.com> wrote:
>
>>Thank you, Dona. I tried that too but I am getting similar pictures.
>Any
>>other recommendation? I got very nice results from analyses and need
>nice
>>pictures.
>>
>>Thanks,
>>-L
>>
>>
>>> On Jan 15, 2017, at 10:40 AM, Dierker, Donna 
>wrote:
>>>
>>> Hi Leah,
>>>
>>> I wonder if you need to apply an affine transform to your
>white/pial
>>>surfaces to adjust for the offset between Freesurfer¹s origin and
>your
>>>orig.mgz volume¹s origin.  See this script:
>>>
>>>
>
>>>https://github.com/Washington-University/Pipelines/blob/7cc0bf1863cbc8a1
>>>a
>
>>>7ab9c6dd48a25de9be9bae7/PostFreeSurfer/scripts/FreeSurfer2CaretConvertAn
>>>d
>>>RegisterNonlinear.sh
>>>
>>> Search for c_ras.mat.  This applies to surfaces in subject¹s volume
>>>space.
>>>
>>> If you map MNI FCmaps onto MNI surfaces, I¹d expect better
>alignment,
>>>but if you use a nonlinear method to get FCmaps on MNI, but just
>apply
>>>the talairach.xfm to the surfaces (linear/affine), then that
>alignment
>>>won¹t be as good as if you used the same method for both.
>>>
>>> Donna
>>>
>>>
>>>> On Jan 15, 2017, at 1:40 AM, Leah Moreno
>
>>>>wrote:
>>>>
>>>> Dear experts,
>>>>
>>>> I have individual FCmaps in mni & subject volume space (not using
>HCP
>>>>or FreeSurfer) and individual surface data from FreeSurfer. I want
>to
>>>>map data from individual volumes to individual surfaces to then
>average
>>>>across subjects on the surface and visualize with workbench. But
>the
>>>>volume data is not being well mapped to the surface, please see
>>>>attachment.
>>>>
>>>> I have also tried section B. of document ³How do I map data
>between
>>>>FreeSurfer and HCP?², but either with or without resampling the
>output
>>>>does not look ok.
>>>>
>>>> Any help, please?
>>>>
>>>> Thank you,
>>>>
>>>> -L
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ___
>>>> HCP-Users mailing list
>>>> HCP-Users@humanconnectome.org
>>>> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>>>>
>>>> 
>>>
>>>
>>> 
>>> The materials in this message are private and may contain Protected
>>>Healthcare Information or other information of a sensitive nature.
>If
>>>you are not the intended recipient, b

Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-15 Thread Glasser, Matthew
If you try with the beta version of FreeSurfer the mris_convert command
may take care of what Donna was concerned about automatically or with an
optional flag.  That said, I asked you multiple times to provide the exact
commands you were running and any error messages and you have not done
that.  It is hard to provide support without knowing those kind of
details.

Peace,

Matt.

On 1/15/17, 1:06 PM, "hcp-users-boun...@humanconnectome.org on behalf of
Marta Moreno"  wrote:

>Thank you, Dona. I tried that too but I am getting similar pictures. Any
>other recommendation? I got very nice results from analyses and need nice
>pictures.
>
>Thanks,
>-L
>
>
>> On Jan 15, 2017, at 10:40 AM, Dierker, Donna  wrote:
>>
>> Hi Leah,
>>
>> I wonder if you need to apply an affine transform to your white/pial
>>surfaces to adjust for the offset between Freesurfer¹s origin and your
>>orig.mgz volume¹s origin.  See this script:
>>
>>
>>https://github.com/Washington-University/Pipelines/blob/7cc0bf1863cbc8a1a
>>7ab9c6dd48a25de9be9bae7/PostFreeSurfer/scripts/FreeSurfer2CaretConvertAnd
>>RegisterNonlinear.sh
>>
>> Search for c_ras.mat.  This applies to surfaces in subject¹s volume
>>space.
>>
>> If you map MNI FCmaps onto MNI surfaces, I¹d expect better alignment,
>>but if you use a nonlinear method to get FCmaps on MNI, but just apply
>>the talairach.xfm to the surfaces (linear/affine), then that alignment
>>won¹t be as good as if you used the same method for both.
>>
>> Donna
>>
>>
>>> On Jan 15, 2017, at 1:40 AM, Leah Moreno 
>>>wrote:
>>>
>>> Dear experts,
>>>
>>> I have individual FCmaps in mni & subject volume space (not using HCP
>>>or FreeSurfer) and individual surface data from FreeSurfer. I want to
>>>map data from individual volumes to individual surfaces to then average
>>>across subjects on the surface and visualize with workbench. But the
>>>volume data is not being well mapped to the surface, please see
>>>attachment.
>>>
>>> I have also tried section B. of document ³How do I map data between
>>>FreeSurfer and HCP?², but either with or without resampling the output
>>>does not look ok.
>>>
>>> Any help, please?
>>>
>>> Thank you,
>>>
>>> -L
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> HCP-Users mailing list
>>> HCP-Users@humanconnectome.org
>>> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>>>
>>> 
>>
>>
>> 
>> The materials in this message are private and may contain Protected
>>Healthcare Information or other information of a sensitive nature. If
>>you are not the intended recipient, be advised that any unauthorized
>>use, disclosure, copying or the taking of any action in reliance on the
>>contents of this information is strictly prohibited. If you have
>>received this email in error, please immediately notify the sender via
>>telephone or return mail.
>
>___
>HCP-Users mailing list
>HCP-Users@humanconnectome.org
>http://lists.humanconnectome.org/mailman/listinfo/hcp-users



The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited. If you have received this email in error, please 
immediately notify the sender via telephone or return mail.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-15 Thread Marta Moreno
Thank you, Dona. I tried that too but I am getting similar pictures. Any other 
recommendation? I got very nice results from analyses and need nice pictures.

Thanks, 
-L


> On Jan 15, 2017, at 10:40 AM, Dierker, Donna  wrote:
> 
> Hi Leah,
> 
> I wonder if you need to apply an affine transform to your white/pial surfaces 
> to adjust for the offset between Freesurfer’s origin and your orig.mgz 
> volume’s origin.  See this script:
> 
> https://github.com/Washington-University/Pipelines/blob/7cc0bf1863cbc8a1a7ab9c6dd48a25de9be9bae7/PostFreeSurfer/scripts/FreeSurfer2CaretConvertAndRegisterNonlinear.sh
> 
> Search for c_ras.mat.  This applies to surfaces in subject’s volume space.
> 
> If you map MNI FCmaps onto MNI surfaces, I’d expect better alignment, but if 
> you use a nonlinear method to get FCmaps on MNI, but just apply the 
> talairach.xfm to the surfaces (linear/affine), then that alignment won’t be 
> as good as if you used the same method for both.
> 
> Donna
> 
> 
>> On Jan 15, 2017, at 1:40 AM, Leah Moreno  wrote:
>> 
>> Dear experts,
>> 
>> I have individual FCmaps in mni & subject volume space (not using HCP or 
>> FreeSurfer) and individual surface data from FreeSurfer. I want to map data 
>> from individual volumes to individual surfaces to then average across 
>> subjects on the surface and visualize with workbench. But the volume data is 
>> not being well mapped to the surface, please see attachment.
>> 
>> I have also tried section B. of document “How do I map data between 
>> FreeSurfer and HCP?”, but either with or without resampling the output does 
>> not look ok.
>> 
>> Any help, please?
>> 
>> Thank you,
>> 
>> -L
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> HCP-Users mailing list
>> HCP-Users@humanconnectome.org
>> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>> 
>> 
> 
> 
> 
> The materials in this message are private and may contain Protected 
> Healthcare Information or other information of a sensitive nature. If you are 
> not the intended recipient, be advised that any unauthorized use, disclosure, 
> copying or the taking of any action in reliance on the contents of this 
> information is strictly prohibited. If you have received this email in error, 
> please immediately notify the sender via telephone or return mail.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users


Re: [HCP-Users] map data between FreeSurfer and HCP

2017-01-15 Thread Dierker, Donna
Hi Leah,

I wonder if you need to apply an affine transform to your white/pial surfaces 
to adjust for the offset between Freesurfer’s origin and your orig.mgz volume’s 
origin.  See this script:

https://github.com/Washington-University/Pipelines/blob/7cc0bf1863cbc8a1a7ab9c6dd48a25de9be9bae7/PostFreeSurfer/scripts/FreeSurfer2CaretConvertAndRegisterNonlinear.sh

Search for c_ras.mat.  This applies to surfaces in subject’s volume space.

If you map MNI FCmaps onto MNI surfaces, I’d expect better alignment, but if 
you use a nonlinear method to get FCmaps on MNI, but just apply the 
talairach.xfm to the surfaces (linear/affine), then that alignment won’t be as 
good as if you used the same method for both.

Donna


> On Jan 15, 2017, at 1:40 AM, Leah Moreno  wrote:
>
> Dear experts,
>
> I have individual FCmaps in mni & subject volume space (not using HCP or 
> FreeSurfer) and individual surface data from FreeSurfer. I want to map data 
> from individual volumes to individual surfaces to then average across 
> subjects on the surface and visualize with workbench. But the volume data is 
> not being well mapped to the surface, please see attachment.
>
> I have also tried section B. of document “How do I map data between 
> FreeSurfer and HCP?”, but either with or without resampling the output does 
> not look ok.
>
> Any help, please?
>
> Thank you,
>
> -L
>
> 
>
>
>
>
>
>
>
>
>
>
> ___
> HCP-Users mailing list
> HCP-Users@humanconnectome.org
> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>
> 



The materials in this message are private and may contain Protected Healthcare 
Information or other information of a sensitive nature. If you are not the 
intended recipient, be advised that any unauthorized use, disclosure, copying 
or the taking of any action in reliance on the contents of this information is 
strictly prohibited. If you have received this email in error, please 
immediately notify the sender via telephone or return mail.

___
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users