CreateStaffliObject: Create a Staffli object

CreateStaffliObjectR Documentation

Create a Staffli object

Description

Create a Staffli object from set of images and associated spot coordinates.

Usage

CreateStaffliObject(imgs = NULL, meta.data, xdim = 400, platforms = NULL)

Arguments

imgs

Character vector specifying paths to images in jpg or png format.

meta.data

Spot-level metadata to add to the Staffli object. Should be a data.frame with required fields 'x' and 'y' which specifies the ST array coorindates and a column calles 'sample' which maps spots to a certain image.

xdim

Specifies the width of the scaled images in pixels [default: 400 pixels]

platforms

Specify the platforms used to generate the ST data [options: 'Visium', '2k', '1k']


jbergenstrahle/STUtility documentation built on March 14, 2023, 7:15 a.m.