Replies: 1 comment
-
Hello! Have you been able to resolve this issue? I'm running in to the same error with my own dataset. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I encountered an issue while using the "Load10X_Spatial" function from Seurat to load spatial transcriptomics data.Here are the detailed error messages and the troubleshooting process:
localdir <- "D:/Visium_HD_Mouse_Brain_binned_outputs"
object <- Load10X_Spatial(data.dir = localdir, bin.size = c(8, 16))
Error in png::readPNG(source = file.path(image.dir, image.name)) :
file is not in PNG format
The structure of my data directory is as follows:
我的数据目录结构如下:
D:/Visium_HD_Mouse_Brain_binned_outputs
├── binned_outputs/
├── square_002um/
│ ├── square_008um/
│ │ └── spatial/
│ │ ├── tissue_lowres_image.png
│ │ ├── tissue_positions_list.csv
│ │ ├── tissue_positions.parquet
│ │ ├── scalefactors_json.json
│ │ ├── filtered_feature_bc_matrix.h5
│ └── square_016um/
│ └── spatial/
│ │ ├── tissue_lowres_image.png
│ │ ├── tissue_positions_list.csv
│ │ ├── tissue_positions.parquet
│ │ ├── scalefactors_json.json
│ │ ├── filtered_feature_bc_matrix.h5
Initially,I found that the
spatial/tissue_lowres_image.png
file existed and was located at the correct path,but it was corrupted and could not be opened properly.I downloaded the Visium_HD_Mouse_Brain_spatial.tar.gz from the 10x Genomics official website and replaced the corrupted PNG file with a valid one from the same source.However,the error persisted.Environment information:
• Seurat version:Seurat v5.2.0
• R version:R 4.3.3
• Operating System:Windows 10
Despite trying various methods to fix the PNG file,I still could not resolve the error with
Load10X_Spatial
.I suspect the issue might be due to one of the following reasons:• Seurat has specific requirements for the PNG file format,and the repaired file does not meet these requirements.
• There might be issues with the data directory structure or file naming.
I am providing the following files for further analysis:
• The repaired PNG file
Thank you very much for your help!If there is any further information needed,please feel free to contact me at any time.

Beta Was this translation helpful? Give feedback.
All reactions