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" <mmorenoort...@icloud.com> 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" <glass...@wustl.edu> 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" <hcp-users-boun...@humanconnectome.org on behalf of
>    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 <do...@wustl.edu>
>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
><mmorenoort...@icloud.com>
>    >>>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
>    >>>
>    >>> <image001.png>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>>
>    >>> _______________________________________________
>    >>> HCP-Users mailing list
>    >>> HCP-Users@humanconnectome.org
>    >>> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>    >>>
>    >>> <image001.png>
>    >>
>    >>
>    >> ________________________________
>    >> 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.
>
>


________________________________
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

Reply via email to