inst/shell-templates/rave-ants-mri-to-template.R

#!/usr/bin/env Rscript --no-save --no-restore

# check if rpyANTs is configured
if( !isTRUE(rpyANTs::ants_available()) ) {
  rpyANTs::install_ants()
}

subject <- raveio::as_rave_subject("{{ subject$subject_id }}", strict = FALSE)
template_subject <- "{{ template_subject }}"
verbose <- TRUE

raveio::ants_mri_to_template(subject = subject, template_subject = template_subject, preview = FALSE, verbose = TRUE)

## END OF RAVE Script: morph MRI to template via rpyANTs (essentially ANTs)

Try the raveio package in your browser

Any scripts or data that you put into this service are public.

raveio documentation built on July 26, 2023, 5:29 p.m.