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

Options when subjects fail in crop_aladin stage #207

Open
julfou81 opened this issue Sep 22, 2022 · 1 comment
Open

Options when subjects fail in crop_aladin stage #207

julfou81 opened this issue Sep 22, 2022 · 1 comment
Milestone

Comments

@julfou81
Copy link

julfou81 commented Sep 22, 2022

Inspired from subject sub-032159 in site-mountsinai-S from PRIME-DE, which fail miserably since the first step of macapype.

Here is for instance the image after the first stage:
Capture d’écran 2022-09-22 à 18 03 45

  • option 1
    -- Prepare the data with FSL-FAST:
    fast -l 8 -B sub-032159_ses-001_run-1_T1w.nii.gz
    -- Apply the reg_aladin command used in macapype to the bias corrected image:
reg_aladin -aff sub-032159_ses-001_run-1_T1w_aff.txt -flo sub-032159_ses-001_run-1_T1w_restore.nii.gz -ln 12 -lp 10 -nac -noSym -omp 1  -ref /Users/jsein/Documents/Centre_IRMf/DATA/BIDS/Covoprim/inia19-t1.nii -res sub-032159_ses-001_run-1_T1w_restore_res.nii.gz -rigOnly -smooR 1.000000

-- Apply the calculated transform to the original image

reg_resample -flo sub-032159_ses-001_run-1_T1w.nii.gz -ref /Users/jsein/Documents/Centre_IRMf/DATA/BIDS/Covoprim/inia19-t1.nii  -res test.nii.gz -trans sub-032159_ses-001_run-1_T1w_aff.tx

This is the result:
Capture d’écran 2022-09-22 à 18 09 02

  • option 2 (much faster)
    -- change the parameters of reg_aladin on the original image:
reg_aladin -aff sub-032159_ses-001_run-1_T1w_aff.txt -flo sub-032159_ses-001_run-1_T1w.nii.gz -ln 8 -lp 10 -nac -noSym -omp 1  -ref /Users/jsein/Documents/Centre_IRMf/DATA/BIDS/Covoprim/inia19-t1.nii -res sub-032159_ses-001_run-1_T1w_res.nii.gz -rigOnly -smooR 1.000000

=> same result

@julfou81 julfou81 changed the title additional options for difficult subjects Options when subjects fail in crop_aladin stage Sep 22, 2022
@julfou81
Copy link
Author

julfou81 commented Sep 23, 2022

With a little more exploration, using sites ucdavis and mount sinai-S, I had to choose between two sets of parameters for reg_aladin: (with ref inia19)

  1. reg_aladin -ln 12 -lp 10 -nac -noSym -omp 1 -ref -rigOnly -smooR 1
    => works for all subjects of ucdavis and all but two subjects of mount sinai-S

  2. reg_aladin -ln 5 -lp 10 -nac -noSym -omp 1 -ref -rigOnly -smooR 1
    => works for all subjects of ucdavis, mount sinai-S ( even for the two subjects of mount sinai-S that weren't working)

For INT macaques, option worked for all the one I tried, except Galileo, which needed to be cropped before and use of option 1.

@davidmeunier79 davidmeunier79 added this to the 0.4 milestone Sep 26, 2022
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

2 participants