You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Read in Xenium, CosMx, or Merscope data as SpatialExperiment object.
12
-
License: MIT
11
+
Description: Read in imaging-based spatial transcriptomics technology data, such as Xenium by 10X Genomics, CosMx by Nanostring, MERSCOPE by Vizgen, or STARmapPLUS from Broad Institute, as a SpatialExperiment or a SingleCellExperiment object.
stop("`coord_names` not in columns of `metadatafpattern`. For CosMx, expect c('CenterX_global_px', 'CenterY_global_px') in the columns of the metadata 'metadata_file.csv'. " )
rownames(countmat) <-countmat$cell+1# fix the indexing to start at 1
80
-
counts<- t(subset(countmat, select=-cell))
98
+
countmat<- t(subset(countmat, select=-cell))
81
99
82
100
# rowData (does not exist)
83
101
84
-
#colData
102
+
#metadata
85
103
rownames(metadata) <-metadata$cell+1
86
-
colData<- subset(metadata, select=-cell)
104
+
metadata<- subset(metadata, select=-cell)
105
+
106
+
if(!all(coord_names%in% colnames(metadata))){
107
+
stop("`coord_names` not in columns of `metadatafpattern`. For MERSCOPE, expect c('center_x', 'center_y') in the columns of the metadata 'cell_metadata.csv'. " )
0 commit comments