swederik / pvelab

PVElab: Software for correction of functional images for partial volume errors
http://nru.dk/pveout
Other
9 stars 1 forks source link

SPM12 Does Not Work With PVElab Atlas Step #1

Closed Ianyliu closed 1 year ago

Ianyliu commented 1 year ago

https://github.com/swederik/pvelab/blob/8380a0d0729688992b58a0ede152967bd0d04bc2/IBB_wrapper/Atlas2_wrapper.m#L138 In this line (and the following lines) of code, only SPM versions 2, 5, and 8 are allowed, but not 12.... is there a reason for this?

Ianyliu commented 1 year ago

Also, it seems that SPM12 does not have an apriori directory, which is required for PVE correction?

Is there a way for me to use PVE correction without reinstalling SPM8?

ChristophePhillips commented 1 year ago

Well, those bits of code date from around 2014, and the first full release of SPM12 dates from October 2014, see the announcement email and list of tagged versions (from the old SVN server). So my best guess is that SPM12 was not there yet or widely used when the code was released, then no one updated it afterwards...

And indeed, there is no apriori folder in SPM12. The tissue prior maps are all bundled into the TPM.nii file in the tpm folder.

So to use this code with SPM12, you'd need to update the code in at least 2 places

Best.

Ianyliu commented 1 year ago

Got it, thank you so much @ChristophePhillips