Closed AmelZulji closed 2 months ago
Can you try the version on github? I believe these issues are fixed here.
devtools::install_github("edward130603/BayesSpace")
Will be pushing these changes to Bioconductor in the near future.
Thank you, Edward!
I can confirm that readVisium()
works as expected.
Regards, Amel
Just to add: by default spaceranger v2 runs with --reorient-images
flag. If the image is not in the orientation spaceranger expects (hourglass fiducial on top left + possible mirror orientation), spaceranger will reorient the image and will possibly cause coordinate missmatching as mentioned above.
Problem
Reprex
Download data
try to read the visium data
it seems like the problem is
tissue_positions_list.csv
which is renamed totissue_positions.csv
However the problem persists even after renaming the problematic file, now with different error (perhaps column names were renamed as well, I dont know how was it in previous versions...)
One way to overcome the problem is to manually load the files or as workaround use seurat (which takes care of loading the data) and from there construct the SCE object
However, sometimes the problem described here occurs https://github.com/edward130603/BayesSpace/issues/77 (not in this sample though)
is there a programatic way to check if the missmatching is occuring? Currently i use following way but was wondering if that can be cought somewhere upstream …
Created on 2024-04-16 with reprex v2.1.0