Download and Manage Template Subjects

download_template_subject(
  subject_code = "N27",
  url = "https://github.com/dipterix/threeBrain-sample/releases/download/1.0.0/N27.zip",
  template_dir = default_template_directory()
)

download_N27(make_default = FALSE, ...)

set_default_template(
  subject_code,
  view = TRUE,
  template_dir = default_template_directory()
)

threebrain_finalize_installation(
  upgrade = c("ask", "always", "never"),
  async = TRUE
)

Arguments

subject_code

character with only letters and numbers (Important). Default is `N27`

url

zip file address

template_dir

parent directory where subject's `FreeSurfer` folder should be stored

make_default

logical, whether to make `N27` default subject

...

more to pass to download_template_subject

view

whether to view the subject

upgrade

whether to check and download 'N27' brain interactively. Choices are 'ask', 'always', and 'never'

async

whether to run the job in parallel to others; default is true

Details

To view electrodes implanted in multiple subjects, it's highly recommended to view them in a template space The detail mapping method is discussed in function freesurfer_brain.

To map to a template space, one idea is to find someone whose brain is normal. In our case, the choice is subject `N27`, also known as `Colin 27`. function download_N27 provides a simple and easy way to download a partial version from the Internet.

If you have any other ideas about template brain, you can use function set_default_template(subject_code, template_dir) to redirect to your choice. If your template brain is a `Zip` file on the Internet, we provide function download_template_subject to automatically install it.

Author

Zhengjia Wang