Learn R Programming

neurobase

The goal of neurobase is to add functionality to oro.nifti and it is the baseline package for Neuroconductor.

Installation

You can install neurobase from github with:

# install.packages("devtools")
devtools::install_github("muschellij2/neurobase")

Copy Link

Version

Install

install.packages('neurobase')

Monthly Downloads

891

Version

1.33.0

License

GPL-2

Maintainer

John Muschelli

Last Published

July 23rd, 2025

Functions in neurobase (1.33.0)

checkniigz-methods

Force object to filename with .nii.gz extension
datatype

Change Data type for img
copyNIfTIHeader

Copy NIfTI Header to an array
cog

Image Center of Gravity
colorbar

Add a colorbar to an ortho2 object
cut.nifti

Perform Cut on an image
density.nifti

Density of Values in an Image
dicer

Calculate Dice from a Table
dropEmptyImageDimensions

Drop Empty Image Dimensions
double_ortho

Double Orthographic Display
emptyImageDimensionsMask

Make Mask from Empty Image Dimensions
getEmptyImageDimensions

Get Empty Image Dimensions
ensure_array

Ensure an array output
file_imgext

Get Image file extension
fast_dice_tab

Fast Dice Tabulation
finite_img-methods

Finite Image
hist.nifti

Histogram of Values in an Image
flip_img

Flip NifTI Image
images2matrix

Transform set of images to matrix
fast_readnii

Reading NIfTI images through RNifti
img_ts_to_list

Image Time Series to list
img_ts_to_df

Image Time Series to Data.frame
mean.nifti

Mean of Values in an Image
img_colour_df

Convert Image to Data.frame with Colors
img_ts_to_matrix

Image Time Series to Matrix
img_list_to_ts

Image List to Time Series
img_indices

Retrieve Image Indices
maskEmptyImageDimensions-methods

Apply Masking from Empty Image Dimensions
mask_img

Mask Image
mask_vals

Extract or Replace Values Inside a Mask
quantile.nifti

Sample Quantiles
parse_img_ext

Parse Image Extensions
minmax_img-methods

Normalize Image using Range
orient_rpi

Reorient an Image to RPI orientation
ortho_diff

Plot differences for Prediction and Gold Standard
niftiarr

Make new nifti from array
newnii

Resets image parameters for a copied nifti object
quantile_img

Create Quantile Image
ortho2

Orthographic Display, added options
read_rpi

Read NIfTI file reoriented to RPI
nii.stub

Grab nii file stubname
readNIfTI2

readNIfTI with default non-reorientation
multi_overlay

Create Multi-Image Plot with Overlays
replaceEmptyImageDimensions-methods

Replace Subsetting from Empty Image Dimensions
remake_img

Remake Image from Vector
random_nifti

Create Random `nifti` object
randomize_mask

Randomize Image based on Mask
replace_dropped_dimensions

Remake Dropped Dimensions
remap_filename

Build Filename (usually for images)
replace_outside_surface

Replace Values Outside Surface of image
window_img

nifti image windower
subset_dti-methods

Subset DTI data based on b-values #'
same_dims

Check if Objects have Same Dimensions
rescale_img

Image Rescaler
robust_window

Window image based on quantiles of Image
tempimg

Create temporary nii.gz file
reverse_orient_rpi

Reverse Reorientation an Image to RPI orientation
slice_colour_df

Slice a Image Color Data.frame
separate_img-methods

Separate Labeled Image into Multiple Binary Images
zscore_img

Get Z-score over a margin of an img
writeNIfTI2

writeNIfTI with default non-reorientation
zero_pad

Zero pads an image
write_nifti

General NIfTI Writer
xyz

Image Center of Gravity Wrapper
zlimmer

Find Image z-limits
check_nifti_header-methods

Check if nifti image or read in a nifti header
applyEmptyImageDimensions-methods

Apply Subsetting from Empty Image Dimensions
breaker

Find Breaks for nifti Image Plotting
checknii-methods

Force object to filename with .nii extension
check_mask_fail

Check Mask is Binary, Fail otherwise
check_nifti-methods

Check if nifti image or read in a nifti image
check_mask

Check Mask is Binary
boxplot.nifti

Boxplot of Values in an Image
checkimg-methods

Force object to filename
check_outfile

Check output filename