Initial formatting of CosMx data to work with Seurat and Kandinsky

prepare_cosmx_seurat(
  path = NULL,
  dataset.id = "X",
  pattern = NULL,
  fovs = NULL
)

Arguments

path

character string specifying the path to the CosMx input files directory

dataset.id

character string that will be used to name the output Seurat object identity

pattern

character string that will be used as a key to identify CosMx input file names in case when input files from multiple CosMx samples/slides are stored in the same directory

fovs

vector of FOV identifiers to subset for downstream analysis.

Value

a Seurat object containing CosMx count matrix, metadata, and additional files/file paths to be used for downstream analysis with Kandinsky functions

Details

This function will use NanoString CosMx raw input data to build a new Seurat object. All Cosmx input files must be stored in the same folder that will be specified to call the function