Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Myelin maps from T1 and t2 #120

Open
davidmeunier79 opened this issue Mar 4, 2021 · 3 comments
Open

Myelin maps from T1 and t2 #120

davidmeunier79 opened this issue Mar 4, 2021 · 3 comments
Assignees
Milestone

Comments

@davidmeunier79
Copy link
Contributor

No description provided.

@davidmeunier79 davidmeunier79 added this to the 0.3 milestone Mar 4, 2021
@melinacordeau
Copy link
Collaborator

@melinacordeau
Copy link
Collaborator

#T1/T2:
fslmaths
<.../test_pipeline_single_indiv_params_ANTS/full_ants_subpipes/brain_segment_from_mask_pipe/masked_correct_bias_pipe/_session_01_subject_Moussaka/restore_mask_T1/avg_sub-Moussaka_ses-01_acq-0p5mm_run-01_T1w_roi_corrected_noise_corrected_maths_masked.nii.gz>
-div
<.../test_pipeline_single_indiv_params_ANTS/full_ants_subpipes/brain_segment_from_mask_pipe/masked_correct_bias_pipe/_session_01_subject_Moussaka/restore_mask_T2/sub-Moussaka_ses-01_acq-0p5mm_run-01_T2w_roi_corrected_noise_corrected_flirt_maths_masked.nii>
#GMmask T1/T2:
fslmaths <INPUT_IMAGE(T1/T2)> -mas <GM_mask>
NB: GM_MASK = .../test_pipeline_single_indiv_params_ANTS/full_ants_subpipes/brain_segment_from_mask_pipe/segment_atropos_pipe/_session_01_subject_Moussaka/threshold_gm/ )
#rescale myelinmap masked :
min=fslstats -R | awk '{ print $1 }'
max=fslstats -R | awk '{ print $2 }'
scaling=echo "scale=5; 100.0 / ( $max - $min )" | bc
fslmaths -sub $min -mul $scaling YOURIMAGE_rescaled

@davidmeunier79
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants