Load and merge multiple coordinate tables
LoadSpatialCoordinates.Rd
Load coordinates from 'tissue_positions_list.csv' files and merge them into a tibble
.
Details
The merging process makes sure that all genes detected are present in the merged output. This means that if a gene is missing in a certain dataset, the spots in that dataset will be assigned with 0 expression.
See also
Other pre-process:
LoadAndMergeMatrices()
,
LoadAnnotationCSV()
,
LoadImageInfo()
,
LoadImages()
,
LoadScaleFactors()
,
ReadVisiumData()
,
UpdateImageInfo()
Examples
library(semla)
# Load and merge coordinates from two samples
coordinatefiles <-
c(system.file("extdata/mousebrain/spatial",
"tissue_positions_list.csv",
package = "semla"),
system.file("extdata/mousecolon/spatial",
"tissue_positions_list.csv",
package = "semla"))
coordinates <- LoadSpatialCoordinates(coordinatefiles)
#> ℹ Loading coordinates:
#> → Finished loading coordinates for sample 1
#> → Finished loading coordinates for sample 2
#> ℹ Collected coordinates for 5164 spots.