im_sort: A function to sort image paths for large imaging datasets

Description Usage Arguments Details Value

View source: R/im_sort.R

Description

User friendly way to sort images from the registration channel. Asks for user input to account for flexible naming conventions for images.

Usage

1
im_sort(setup, extension = "tif", separator = "_", position = NULL)

Arguments

setup

(required) Argument used to access registration and segmentation folders.

extension

(optional, default = "tif") File extension of the imaging data.

separator

(optional, default = "_") Separator character to parse filename.

position

(optional) Position of z number in filename. If this argument is called, the user input is skipped.

Details

Compared to the list.files() function, this function will sort 100+ files in their appropriate order by z plane.

Value

setup is returned with setup$image_paths filled as a list of sorted paths. The first element is a sorted character vector of registration channel paths. The second element is a sorted character vector of segmentation channel paths.


mjin1812/SMART documentation built on Oct. 30, 2021, 7:25 p.m.