Re: [Freesurfer] convert surface-based label to volumetric space...mri_label2vol?

2019-01-15 Thread Greve, Douglas N.,Ph.D.
There should already be two volumes (aparc+aseg.mgz and 
aparc.a2009s+aseg.mgz) which you can simply convert to nifti with 
mri_convert file.mgz file.nii.gz


On 1/15/19 2:14 PM, Stephanie Hare wrote:
>
> External Email - Use Caution
>
> Good afternoon,
>
> I'm new to Freesurfer; my background is resting-state fMRI using SPM. 
> Years back, left and right cortical thickness measures were calculated 
> for our sample of schizophrenia patients using the Desikan-Killiany 
> atlas and were input to an SPSS spreadsheet. In an exploratory 
> analysis of the data, I found that behavioral performance on a skills 
> assessment was correlated with thickness of lh_rostralmiddlefrontal 
> and lh_parstriangularis regions.
>
> I'd like to perform a follow-up resting-state fMRI analysis, using 
> these two surface-based parcellations ( lh_rostralmiddlefrontal and 
> lh_parstriangularis) as seed regions and use those behavioral 
> performance scores as a regressor.  Is there a simple way to convert 
> these two 2D-surface-based atlas measurements to masks in nifti format 
> in 3D-volumetric space? I was doing a quick google search and came 
> across the mri_label2vol command. Would this be helpful? Sorry for 
> my naiveté. I appreciate your time.
>
> Best,
>
> Stephanie Hare
> Postdoctoral Fellow
> Neuroimaging Research Program
> Maryland Psychiatric Research Center
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] preproc-sess mask issue

2019-01-15 Thread Greve, Douglas N.,Ph.D.
Yea, the 5.3 stream used FSL brain masking to make the masks for the 
fmri. Version 6 uses the FS brain mask transferred into fmri space. 
Inevitably, you will have to do a lot of reprocessing. The simplest 
thing to do is to delete the mask files in session/bold/masks and 
sessoin/bold/RRR/masks (where RRR is the run number). When you re-run 
preproc-sess, it will figure out what needs to be re-run. It should not 
rerun motion correction, slice timing correction, or registration

On 1/15/19 1:26 PM, Dowling, Kevin Francis wrote:
>
> Hello FreeSurfer Experts,
>
>
> I'm writing to follow-up on my question about incomplete lhrh cortical 
> and mni305 subcortical masks in preproc-sess. My initial email is 
> copied below, but briefly when running WLS functional analyses via 
> mri_glmfit in FS 5.3, I noticed a number of large regions that were 
> pruned out in my subcortical and cortical analyses. I traced these 
> pruning problems back to subjects' whose raw and fmcpr.siemens.nii.gz 
> data are fine for all functional runs, but for whom some pre-processed 
> runs had brain.mni305.nii.gz, brain.fsaverage.rh.nii.gz, and 
> brain.fsaverage.lh.nii.gz masks that were missing voxels/vertices (0 
> values rather than 1s) that cause the pruning problem later on in 
> mri_glmfit.I tried pre-processing a number of these problematic 
> subjects in FS 6 and noticed that these missing voxels/vertices were 
> all fixed. However, as our analysis has ~200 subjects and is 
> multi-modal in nature, I would like to avoid re-doing all of our 
> analyses in FS 6.0 unless absolutely necessary.
>
>
> Since the fmcpr.siemens.nii.gz functional data looks fine to me for 
> the problematic subject runs (as do the brain.nii.gz and 
> brain.e3.nii.gz masks), I thought something might possibly be amiss 
> with the registration in the mni305 mask generation command (below). 
> Specifically,when I look at the output of this command for the 
> problematic runs relative to the good runs, the mask 
> brain.mni305.2mm.nii.gz looks like it has been rotated away from the 
> normal orientation (see attached image, rotated_mask_questionable.png).
>
>
> mri_vol2vol --mov 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/masks/brain.nii.gz
>  
> --reg 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/022/register.dof6.dat
>  
> --tal --talres 2 --talxfm talairach.xfm --nearest --no-save-reg --o 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/022/masks/brain.mni305.2mm.nii.gz
>
>
> When I look at the analogous surface command (below), there are 
> similar problems, that result in a mask missing 50% of its vertices:
>
>
> mri_vol2surf --mov 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/masks/brain.nii.gz
>  
> --reg 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/022/register.dof6.dat
>  
> --trgsubject fsaverage --interp nearest --projfrac 0.5 --hemi rh --o 
> /autofs/cluster/roffman/users/Stable5_PerRun/GDDA161_Testing/bold/022/masks/brain.fsaverage.rh.nii.gz
>  
> --noreshape --cortex --surfreg sphere.reg
>
>
> Looking at the structural functional alignment for this subject with 
> tkregister-sess -s GDDA161_Testing -per-run -fsd bold, the 
> registration (from register.dof6.dat) seems fine (mincost .57 for this 
> problem run, but looks good visually). Since the use of the 
> register.dof6.dat file is common to these two processes, and since FS 
> 6.0 uses register.dof6.lta rather than the .dat file, my  inclination 
> was to suspect there was a registration issue except that, again, 
> visualizing register.dof6.dat via tkregister-sess is fine.
>
>
> Forgive this somewhat naive question, but beyond checking the input 
> (which seems fine) and output (which is bad) of this command along 
> with the subject's structural/functional registration, is there 
> anything else I could do to further troubleshoot this issue? Is there 
> a different registration file I should be looking at, or alternatively 
> am I looking too far downstream in the preproc-sess pipeline? I would 
> be most grateful for any additional troubleshooting ideas.
>
>
> I have attached a .txt file containing the debug output for the 
> described subject, whom is an extreme example of the pruning/masking 
> issue. The problem run is 022.
>
>
> Thank you again for any thoughts or suggestions you might have!
>
>
> Best wishes,
>
> Kevin
>
>
> *Kevin F. Dowling *
> Clinical Research Coordinator
> Brain Genomics Laboratory
> Division of Psychiatric Neuroimaging
> Martinos Center for Biomedical Imaging
> Massachusetts General Hospital
> 149 13th Street
> Charlestown, MA, 02129
> (p) 617.643.3215
> He / Him / His
>
>
> 
> *From:* Dowling, Kevin Francis
> *Sent:* Tuesday, January 8, 2019 2:40 PM
> *To:* freesurfer@nmr.mgh.harvard.edu
> *Subject:* preproc-sess mask issue
>
> Hello FreeSurfer Experts,
>
>
> I'm writing 

[Freesurfer] convert surface-based label to volumetric space...mri_label2vol?

2019-01-15 Thread Stephanie Hare
External Email - Use Caution

Good afternoon,

I'm new to Freesurfer; my background is resting-state fMRI using SPM. Years
back, left and right cortical thickness measures were calculated for our
sample of schizophrenia patients using the Desikan-Killiany atlas and were
input to an SPSS spreadsheet. In an exploratory analysis of the data, I
found that behavioral performance on a skills assessment was correlated
with thickness of lh_rostralmiddlefrontal and lh_parstriangularis regions.

I'd like to perform a follow-up resting-state fMRI analysis, using these
two surface-based parcellations ( lh_rostralmiddlefrontal and
lh_parstriangularis) as seed regions and use those behavioral performance
scores as a regressor.  Is there a simple way to convert these two
2D-surface-based atlas measurements to masks in nifti format in
3D-volumetric space? I was doing a quick google search and came across the
mri_label2vol command. Would this be helpful? Sorry for my naiveté. I
appreciate your time.

Best,

Stephanie Hare
Postdoctoral Fellow
Neuroimaging Research Program
Maryland Psychiatric Research Center
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

[Freesurfer] QDEC - command not found

2019-01-15 Thread Alba Castells Sánchez
External Email - Use Caution

Dear freesurfer experts,
we installed the last version of freesurfer dev in a centos7 system (8th
january 2019) and the matlab runtime to run segmentHA_T1.sh. We could
obtain all the files without problems.

However, today we tried to open qdec typing qdec like we used to do with
other versions without problem and the answer is "command not found". We
are really surprised, we haven't found any other comment on internet and
the mailing list with this same problem.

We have installed the same last version in a mac and we had the same
problem. qdec doesn't exist.

We have checked the files .sh  in Freesurfersetup  and similar files in the
freesurfer direcotry looking for qdec without success. HOwever, there is a
direcotry called Qdec in freesurfer/matlab/lme

We don't know where is our mistake.
We are also considering that maybe the issue is related with the version.
Is this possible?
Could you help us, please?

Thousand thanks
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

[Freesurfer] mni --> RAS T1

2019-01-15 Thread Krieger, Donald N.
External Email - Use Caution

Is there a 4x4 transformation somewhere to convert mni coordinates to RAS T1 
coordinates,
I.e. something comparable to the transforms provided by mri_info -tkrscanner

Thanks - Don


___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer