read.SpatialRNA: Creates a SpatialRNA object from a coords and counts file

View source: R/SpatialRNA.R

read.SpatialRNAR Documentation

Creates a SpatialRNA object from a coords and counts file

Description

Warning: this function is provided out of convenience for experienced users, but we can not provide direct support for debugging file input errors. If you are obtaining errors from this method, we recommend a less error-prone procedure of loading in your coords and counts matrices in first and then using the 'SpatialRNA' constructor function, which will systematically check for errors in the inputs.

Usage

read.SpatialRNA(datadir, count_file = "counts.csv", coords_file = "coords.csv")

Arguments

datadir

(character) full path to input directory

count_file

(character) file name of the counts csv file (genes by pixels matrix)

coord_file

(character) file name of the coords csv file (pixels by (barcodes, x, y) matrix)

Details

The coords matrix needs to be formated as columns (barcodes, x, y)

Value

Returns a SpatialRNA object containing the coordinates and counts from the input files


dmcable/RCTD documentation built on Feb. 24, 2024, 11:03 p.m.