R/mri_info.R

Defines functions mri_info.help mri_info

Documented in mri_info mri_info.help

#' @title MRI information
#' @description This calls Freesurfer's \code{mri_info} 
#'
#' @param file File to pass to \code{mri_info} 
#' @param ... Additional arguments to pass to \code{\link{fs_cmd}}
#'
#' @return Result of \code{fs_cmd}, which type depends on 
#' arguments to \code{...}
#' @export
#' @examples 
#' if (have_fs()){
#'    img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5)))  
#'    mri_info(img)
#' }
mri_info = function(file, 
                    ...){
  fs_cmd(func = "mri_info",
    file = file,
    samefile = TRUE,
    ...)
}

#' @title MRI information Help
#' @description This calls Freesurfer's \code{mri_info} help 
#'
#' @return Result of \code{fs_help}
#' @export
mri_info.help = function(){
  fs_help(func_name = "mri_info")
}
neuroconductor/freesurfer documentation built on Aug. 9, 2019, 2:53 a.m.