slamballais / QDECR

The QDECR package for vertex-wise analyses in R
11 stars 0 forks source link

Add `dir_target` argument to allow target template outside `dir_subj` #1

Closed slamballais closed 5 years ago

slamballais commented 5 years ago

Currently, any target template (argument: target) has to be located inside the subjects directory (argument: dir_subj).

Users can add symbolic links to their target inside dir_subj. However, this is a step outside of R.

Suggestion: Add argument dir_target to specify in which directory the target template is located. By default, dir_target = dir_subj.

slamballais commented 5 years ago

I implemented the above suggestion (path_target <- paste0(dir_target, target)), but ran into a problem for estimating the smoothness. This is currently done using mris_fwhm. I ended up setting --sd (the SUBJECTS_DIR) for mris_fwhm with the directory of the target (dirname(path_target)).

slamballais commented 5 years ago

This issue was solved: https://github.com/slamballais/QDECR/pull/2