read.SpatialRNA | R Documentation |
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.
read.SpatialRNA(datadir, count_file = "counts.csv", coords_file = "coords.csv")
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) |
The coords matrix needs to be formated as columns (barcodes, x, y)
Returns a SpatialRNA
object containing the coordinates and counts
from the input files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.