Skip to content

Commit

Permalink
Merge pull request #11 from BIDS-Apps/fliem-cpfsav
Browse files Browse the repository at this point in the history
copy instead of linking fsaverage folders
  • Loading branch information
fliem authored Oct 18, 2017
2 parents 9659912 + f1835c6 commit 17165de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baracus/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def run_prepare_all(bids_dir, freesurfer_dir, out_dir, subjects_to_analyze, sess
fsav_dir = os.path.join(os.environ["FREESURFER_HOME"], "subjects")
for fsav in ["fsaverage", "fsaverage4"]:
if not os.path.exists(os.path.join(freesurfer_dir, fsav)):
os.symlink(os.path.join(fsav_dir, fsav), os.path.join(freesurfer_dir, fsav))

cmd = "cp -rf {} {}".format(os.path.join(fsav_dir, fsav), os.path.join(freesurfer_dir, fsav))
run(cmd)
# check if freesurfer is available and run if missing
freesurfer_subjects = []
for subject in subjects_to_analyze:
Expand Down

0 comments on commit 17165de

Please sign in to comment.