Combine Nanostring Digital Spatial Profile read count and annotation files into a GeoMX object

studyDesign(
  dcc.files,
  pkc.files,
  pheno.data.file,
  pheno.data.sheet = "Template",
  pheno.data.dcc.col.name = "Sample_ID",
  protocol.data.col.names = c("aoi", "roi"),
  experiment.data.col.names = c("panel"),
  slide.name.col = "slide name",
  class.col = "class",
  region.col = "region",
  segment.col = "segment",
  area.col = "area",
  nuclei.col = "nuclei",
  sankey.exclude.slide = FALSE,
  segment.id.length = 4
)

Arguments

dcc.files

A character vector containing the paths to the DCC files.

pkc.files

A character vector representing the path to the corresponding PKC file

pheno.data.file

An optional character string representing the path to the corresponding phenotypic excel data file. It is recommended to use the Lab Worksheet in the exact order samples are provided in.

pheno.data.sheet

An optional character string representing the excel sheet name containing the phenotypic data.

pheno.data.dcc.col.name

Character string identifying unique sample identifier column in phenoDataFile.

protocol.data.col.names

Character list of column names from phenoDataFile containing data about the experimental protocol or sequencing data.

experiment.data.col.names

Character list of column names from phenoDataFile containing data about the experiment's meta-data.

slide.name.col

The name of the field that contains the slide names

class.col

The name of the field that contains the class annotation

region.col

The name of the field that contains the region annotation

segment.col

The name of the field that contains the segment name

area.col

The name of the field that contains the segment area

nuclei.col

The name of the field that contains the nuclei number

sankey.exclude.slide

A toggle for including the slide name in the Sankey plot

segment.id.length

The number of characters to use from each of the annotation fields class, region, and segment to create the segment ID

Value

A list containing the NanoString Object and the Sankey plot.

Details

studyDesign returns a Sankey Plot and a GeoMX object. For the function to run properly the annotation excel file must have the specific field names: slide name', class, segment, region and the corresponding fields that can be renamed: Sample_ID, aoi, roi, panel