-
Notifications
You must be signed in to change notification settings - Fork 272
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
replace the old _BC block with MyelinMap_BC #259
Conversation
Should we also edit the _1res version while we are at it? |
I didn't find lines in |
I said that before I looked at it, yes it seems _1res it just resamples the existing native mesh maps, which makes sense. |
@@ -63,12 +63,15 @@ opts_AddMandatory '--lowresmesh' 'LowResMeshes' 'number' "usually '32', the stan | |||
opts_AddMandatory '--subcortgraylabels' 'SubcorticalGrayLabels' 'file' "location of FreeSurferSubcorticalLabelTableLut.txt" | |||
opts_AddMandatory '--freesurferlabels' 'FreeSurferLabels' 'file' "location of FreeSurferAllLut.txt" | |||
opts_AddMandatory '--refmyelinmaps' 'ReferenceMyelinMaps' 'file' "high-resolution group myelin map to use for bias correction" | |||
opts_AddMandatory '--msm-all-templates' 'MSMAllTemplates' 'path' "path to directory containing MSM All template files, e.g. 'YourFolder/global/templates/MSMAll'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an odd variable name for PostFreeSurfer that precedes MSMAll by quite a few lines. I am not a huge fan of tying the myelin target file to a specific folder either. I would have preferred a full path and a single argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the myelin target as a single argument with an absolute path wherever the MyelinMap_BC is involved.
I didn't write the 1res code. That is a patch for if someone does not want to rerun PostFreeSurfer but wants to add a new lowres mesh resolution. |
tested without error: |
Looks reasonable to me, and I think @glasserm's comment was addressed. |
Background
There remain several legacy _BC code block that is not replaced by the module
MyelinMap_BC.sh
.Main changes
MSMAll.sh
withMyelinMap_BC.sh
CreateMyelinMaps.sh
used gifti based _BC which is now replaced by the cifti-basedMyelinMap_BC.sh
, while the gifti files are keptPostFreeSurferPipeline.sh
to adapt the moduleMyelinMap_BC.sh
PostFreeSurferPipelineBatch.sh
--myelin-target-file
as a single argument with absolute file path that doesn't depend on--msm-all-templates
Evaluation
MSMAllPipeline logs with no error:
/media/myelin/alex/MSMAll_optimization/MSMAllPipeline.sh.e49165
/media/myelin/alex/MSMAll_optimization/MSMAllPipeline.sh.o49165
PostFreeSurferPipeline logs with no error:
/media/myelin/alex/MSMAll_optimization/PostFreeSurferPipeline.sh.e162416
/media/myelin/alex/MSMAll_optimization/PostFreeSurferPipeline.sh.o162416