Upload folder using huggingface_hub
Browse files- .gitattributes +8 -0
- GSE275131/.sentinel_report.json +230 -0
- GSE275131/GSM8471249/.standardization_success +1 -0
- GSE275131/GSM8471249/alignment_strict_qc.png +3 -0
- GSE275131/GSM8471249/color_verification_qc.png +3 -0
- GSE275131/GSM8471249/spatial.h5ad +3 -0
- GSE275131/GSM8471249/wsi.tif +3 -0
- GSE275131/GSM8471250/.standardization_success +1 -0
- GSE275131/GSM8471250/alignment_strict_qc.png +3 -0
- GSE275131/GSM8471250/color_verification_qc.png +3 -0
- GSE275131/GSM8471250/spatial.h5ad +3 -0
- GSE275131/GSM8471250/wsi.tif +3 -0
- GSE275131/GSM8471251/.standardization_success +1 -0
- GSE275131/GSM8471251/alignment_strict_qc.png +3 -0
- GSE275131/GSM8471251/color_verification_qc.png +3 -0
- GSE275131/GSM8471251/spatial.h5ad +3 -0
- GSE275131/GSM8471251/wsi.tif +3 -0
- GSE275131/GSM8471252/.standardization_success +1 -0
- GSE275131/GSM8471252/alignment_strict_qc.png +3 -0
- GSE275131/GSM8471252/color_verification_qc.png +3 -0
- GSE275131/GSM8471252/spatial.h5ad +3 -0
- GSE275131/GSM8471252/wsi.tif +3 -0
- GSE275131/audit_report.json +50 -0
- GSE275131/standardize_GSE275131.py +125 -0
- GSE275131/tree_scan.txt +46 -0
.gitattributes
CHANGED
|
@@ -504,3 +504,11 @@ GSE274059/GSM8442780/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
|
| 504 |
GSE274059/GSM8442780/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 505 |
GSE274059/GSM8442781/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 506 |
GSE274059/GSM8442781/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
GSE274059/GSM8442780/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 505 |
GSE274059/GSM8442781/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 506 |
GSE274059/GSM8442781/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 507 |
+
GSE275131/GSM8471249/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 508 |
+
GSE275131/GSM8471249/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 509 |
+
GSE275131/GSM8471250/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 510 |
+
GSE275131/GSM8471250/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 511 |
+
GSE275131/GSM8471251/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 512 |
+
GSE275131/GSM8471251/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
| 513 |
+
GSE275131/GSM8471252/spatial.h5ad filter=lfs diff=lfs merge=lfs -text
|
| 514 |
+
GSE275131/GSM8471252/wsi.tif filter=lfs diff=lfs merge=lfs -text
|
GSE275131/.sentinel_report.json
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gse_id": "GSE275131",
|
| 3 |
+
"scan_time": "2026-04-14T18:05:39",
|
| 4 |
+
"assets": [
|
| 5 |
+
{
|
| 6 |
+
"path": "GSE275131_RAW/GSM8471249_WTvehicule_tissue_hires_image.png.gz",
|
| 7 |
+
"type": "File",
|
| 8 |
+
"file_size_mb": 4.53,
|
| 9 |
+
"status": "OK",
|
| 10 |
+
"category": "Image",
|
| 11 |
+
"shape": [
|
| 12 |
+
1992,
|
| 13 |
+
2000
|
| 14 |
+
],
|
| 15 |
+
"mode": "RGB",
|
| 16 |
+
"channels": 3,
|
| 17 |
+
"is_compressed": true
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"path": "GSE275131_RAW/GSM8471252_3xTgSCDi_aligned_fiducials.jpg.gz",
|
| 21 |
+
"type": "File",
|
| 22 |
+
"file_size_mb": 1.27,
|
| 23 |
+
"status": "OK",
|
| 24 |
+
"category": "Image",
|
| 25 |
+
"shape": [
|
| 26 |
+
1875,
|
| 27 |
+
2000
|
| 28 |
+
],
|
| 29 |
+
"mode": "RGB",
|
| 30 |
+
"channels": 3,
|
| 31 |
+
"is_compressed": true
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"path": "GSE275131_RAW/GSM8471251_WTSCDi_detected_tissue_image.jpg.gz",
|
| 35 |
+
"type": "File",
|
| 36 |
+
"file_size_mb": 0.69,
|
| 37 |
+
"status": "OK",
|
| 38 |
+
"category": "Image",
|
| 39 |
+
"shape": [
|
| 40 |
+
1893,
|
| 41 |
+
2000
|
| 42 |
+
],
|
| 43 |
+
"mode": "RGB",
|
| 44 |
+
"channels": 3,
|
| 45 |
+
"is_compressed": true
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"path": "GSE275131_RAW/GSM8471252_3xTgSCDi_detected_tissue_image.jpg.gz",
|
| 49 |
+
"type": "File",
|
| 50 |
+
"file_size_mb": 0.66,
|
| 51 |
+
"status": "OK",
|
| 52 |
+
"category": "Image",
|
| 53 |
+
"shape": [
|
| 54 |
+
1875,
|
| 55 |
+
2000
|
| 56 |
+
],
|
| 57 |
+
"mode": "RGB",
|
| 58 |
+
"channels": 3,
|
| 59 |
+
"is_compressed": true
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"path": "GSE275131_RAW/GSM8471250_3xTgvehicule_detected_tissue_image.jpg.gz",
|
| 63 |
+
"type": "File",
|
| 64 |
+
"file_size_mb": 0.64,
|
| 65 |
+
"status": "OK",
|
| 66 |
+
"category": "Image",
|
| 67 |
+
"shape": [
|
| 68 |
+
1863,
|
| 69 |
+
2000
|
| 70 |
+
],
|
| 71 |
+
"mode": "RGB",
|
| 72 |
+
"channels": 3,
|
| 73 |
+
"is_compressed": true
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"path": "GSE275131_RAW/GSM8471249_WTvehicule_aligned_fiducials.jpg.gz",
|
| 77 |
+
"type": "File",
|
| 78 |
+
"file_size_mb": 1.46,
|
| 79 |
+
"status": "OK",
|
| 80 |
+
"category": "Image",
|
| 81 |
+
"shape": [
|
| 82 |
+
1992,
|
| 83 |
+
2000
|
| 84 |
+
],
|
| 85 |
+
"mode": "RGB",
|
| 86 |
+
"channels": 3,
|
| 87 |
+
"is_compressed": true
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"path": "GSE275131_RAW/GSM8471251_WTSCDi_aligned_fiducials.jpg.gz",
|
| 91 |
+
"type": "File",
|
| 92 |
+
"file_size_mb": 1.33,
|
| 93 |
+
"status": "OK",
|
| 94 |
+
"category": "Image",
|
| 95 |
+
"shape": [
|
| 96 |
+
1893,
|
| 97 |
+
2000
|
| 98 |
+
],
|
| 99 |
+
"mode": "RGB",
|
| 100 |
+
"channels": 3,
|
| 101 |
+
"is_compressed": true
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"path": "GSE275131_RAW/GSM8471249_WTvehicule_tissue_lowres_image.png.gz",
|
| 105 |
+
"type": "File",
|
| 106 |
+
"file_size_mb": 0.35,
|
| 107 |
+
"status": "OK",
|
| 108 |
+
"category": "Image",
|
| 109 |
+
"shape": [
|
| 110 |
+
598,
|
| 111 |
+
600
|
| 112 |
+
],
|
| 113 |
+
"mode": "RGB",
|
| 114 |
+
"channels": 3,
|
| 115 |
+
"is_compressed": true
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"path": "GSE275131_RAW/GSM8471252_3xTgSCDi_tissue_lowres_image.png.gz",
|
| 119 |
+
"type": "File",
|
| 120 |
+
"file_size_mb": 0.31,
|
| 121 |
+
"status": "OK",
|
| 122 |
+
"category": "Image",
|
| 123 |
+
"shape": [
|
| 124 |
+
563,
|
| 125 |
+
600
|
| 126 |
+
],
|
| 127 |
+
"mode": "RGB",
|
| 128 |
+
"channels": 3,
|
| 129 |
+
"is_compressed": true
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"path": "GSE275131_RAW/GSM8471250_3xTgvehicule_tissue_lowres_image.png.gz",
|
| 133 |
+
"type": "File",
|
| 134 |
+
"file_size_mb": 0.31,
|
| 135 |
+
"status": "OK",
|
| 136 |
+
"category": "Image",
|
| 137 |
+
"shape": [
|
| 138 |
+
559,
|
| 139 |
+
600
|
| 140 |
+
],
|
| 141 |
+
"mode": "RGB",
|
| 142 |
+
"channels": 3,
|
| 143 |
+
"is_compressed": true
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"path": "GSE275131_RAW/GSM8471251_WTSCDi_tissue_hires_image.png.gz",
|
| 147 |
+
"type": "File",
|
| 148 |
+
"file_size_mb": 4.1,
|
| 149 |
+
"status": "OK",
|
| 150 |
+
"category": "Image",
|
| 151 |
+
"shape": [
|
| 152 |
+
1893,
|
| 153 |
+
2000
|
| 154 |
+
],
|
| 155 |
+
"mode": "RGB",
|
| 156 |
+
"channels": 3,
|
| 157 |
+
"is_compressed": true
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"path": "GSE275131_RAW/GSM8471251_WTSCDi_tissue_lowres_image.png.gz",
|
| 161 |
+
"type": "File",
|
| 162 |
+
"file_size_mb": 0.32,
|
| 163 |
+
"status": "OK",
|
| 164 |
+
"category": "Image",
|
| 165 |
+
"shape": [
|
| 166 |
+
568,
|
| 167 |
+
600
|
| 168 |
+
],
|
| 169 |
+
"mode": "RGB",
|
| 170 |
+
"channels": 3,
|
| 171 |
+
"is_compressed": true
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"path": "GSE275131_RAW/GSM8471250_3xTgvehicule_tissue_hires_image.png.gz",
|
| 175 |
+
"type": "File",
|
| 176 |
+
"file_size_mb": 3.94,
|
| 177 |
+
"status": "OK",
|
| 178 |
+
"category": "Image",
|
| 179 |
+
"shape": [
|
| 180 |
+
1863,
|
| 181 |
+
2000
|
| 182 |
+
],
|
| 183 |
+
"mode": "RGB",
|
| 184 |
+
"channels": 3,
|
| 185 |
+
"is_compressed": true
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"path": "GSE275131_RAW/GSM8471252_3xTgSCDi_tissue_hires_image.png.gz",
|
| 189 |
+
"type": "File",
|
| 190 |
+
"file_size_mb": 4.02,
|
| 191 |
+
"status": "OK",
|
| 192 |
+
"category": "Image",
|
| 193 |
+
"shape": [
|
| 194 |
+
1875,
|
| 195 |
+
2000
|
| 196 |
+
],
|
| 197 |
+
"mode": "RGB",
|
| 198 |
+
"channels": 3,
|
| 199 |
+
"is_compressed": true
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"path": "GSE275131_RAW/GSM8471249_WTvehicule_detected_tissue_image.jpg.gz",
|
| 203 |
+
"type": "File",
|
| 204 |
+
"file_size_mb": 0.72,
|
| 205 |
+
"status": "OK",
|
| 206 |
+
"category": "Image",
|
| 207 |
+
"shape": [
|
| 208 |
+
1992,
|
| 209 |
+
2000
|
| 210 |
+
],
|
| 211 |
+
"mode": "RGB",
|
| 212 |
+
"channels": 3,
|
| 213 |
+
"is_compressed": true
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"path": "GSE275131_RAW/GSM8471250_3xTgvehicule_aligned_fiducials.jpg.gz",
|
| 217 |
+
"type": "File",
|
| 218 |
+
"file_size_mb": 1.26,
|
| 219 |
+
"status": "OK",
|
| 220 |
+
"category": "Image",
|
| 221 |
+
"shape": [
|
| 222 |
+
1863,
|
| 223 |
+
2000
|
| 224 |
+
],
|
| 225 |
+
"mode": "RGB",
|
| 226 |
+
"channels": 3,
|
| 227 |
+
"is_compressed": true
|
| 228 |
+
}
|
| 229 |
+
]
|
| 230 |
+
}
|
GSE275131/GSM8471249/.standardization_success
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Success
|
GSE275131/GSM8471249/alignment_strict_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471249/color_verification_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471249/spatial.h5ad
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94307cbd4647e36c15e1c55283c0906fa2ecd5db8b579c5f468c76722f856865
|
| 3 |
+
size 104536930
|
GSE275131/GSM8471249/wsi.tif
ADDED
|
|
Git LFS Details
|
GSE275131/GSM8471250/.standardization_success
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Success
|
GSE275131/GSM8471250/alignment_strict_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471250/color_verification_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471250/spatial.h5ad
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b8527050ef7d8bf25b0928da8fe89a8336ffa7568e621472c254ee4be0a31fc
|
| 3 |
+
size 99533234
|
GSE275131/GSM8471250/wsi.tif
ADDED
|
|
Git LFS Details
|
GSE275131/GSM8471251/.standardization_success
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Success
|
GSE275131/GSM8471251/alignment_strict_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471251/color_verification_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471251/spatial.h5ad
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:981fe42f11d5cf506e1cf58b25f0d40ceb7358d1d94b4bff8644618486727a18
|
| 3 |
+
size 94199458
|
GSE275131/GSM8471251/wsi.tif
ADDED
|
|
Git LFS Details
|
GSE275131/GSM8471252/.standardization_success
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Success
|
GSE275131/GSM8471252/alignment_strict_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471252/color_verification_qc.png
ADDED
|
Git LFS Details
|
GSE275131/GSM8471252/spatial.h5ad
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3af6b84923af5a51ca2bd71165e099536f7a4cbaa57a12a8de7568feae1ca99b
|
| 3 |
+
size 116261714
|
GSE275131/GSM8471252/wsi.tif
ADDED
|
|
Git LFS Details
|
GSE275131/audit_report.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"gse_id": "GSE275131",
|
| 3 |
+
"global_score": 100.0,
|
| 4 |
+
"threshold_limit": 0.03,
|
| 5 |
+
"summary": {
|
| 6 |
+
"total_samples": 4,
|
| 7 |
+
"passed_samples": 4,
|
| 8 |
+
"structural_fail_samples": 0,
|
| 9 |
+
"alignment_fail_samples": 0,
|
| 10 |
+
"error_samples": 0
|
| 11 |
+
},
|
| 12 |
+
"samples": [
|
| 13 |
+
{
|
| 14 |
+
"sample_id": "GSM8471252",
|
| 15 |
+
"status": "PASS",
|
| 16 |
+
"score": 100,
|
| 17 |
+
"spillover": 0.0,
|
| 18 |
+
"spot_count": 4992,
|
| 19 |
+
"reason": null,
|
| 20 |
+
"weight": 0.2508794853754146
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sample_id": "GSM8471250",
|
| 24 |
+
"status": "PASS",
|
| 25 |
+
"score": 100,
|
| 26 |
+
"spillover": 0.0,
|
| 27 |
+
"spot_count": 4984,
|
| 28 |
+
"reason": null,
|
| 29 |
+
"weight": 0.2504774349180822
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"sample_id": "GSM8471251",
|
| 33 |
+
"status": "PASS",
|
| 34 |
+
"score": 100,
|
| 35 |
+
"spillover": 0.0,
|
| 36 |
+
"spot_count": 4969,
|
| 37 |
+
"reason": null,
|
| 38 |
+
"weight": 0.24972359031058397
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sample_id": "GSM8471249",
|
| 42 |
+
"status": "PASS",
|
| 43 |
+
"score": 100,
|
| 44 |
+
"spillover": 0.0,
|
| 45 |
+
"spot_count": 4953,
|
| 46 |
+
"reason": null,
|
| 47 |
+
"weight": 0.24891948939591918
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
GSE275131/standardize_GSE275131.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
import glob
|
| 4 |
+
import json
|
| 5 |
+
import gzip
|
| 6 |
+
import io
|
| 7 |
+
import pandas as pd
|
| 8 |
+
import scanpy as sc
|
| 9 |
+
import numpy as np
|
| 10 |
+
from PIL import Image
|
| 11 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 12 |
+
|
| 13 |
+
# Inject Expert Scripts Path
|
| 14 |
+
sys.path.append("/cpfs01/projects-HDD/cfff-afe2df89e32e_HDD/jjh_19301050235/.agents/skills/ara-evolutionary-standardizer/scripts")
|
| 15 |
+
import registry_utils
|
| 16 |
+
|
| 17 |
+
GSE_ID = "GSE275131"
|
| 18 |
+
INPUT_DIR = "/cpfs01/projects-HDD/cfff-afe2df89e32e_HDD/jjh_19301050235/my_data/preprint_data/Spatial-Clip/data/auto_standardize_react/data/2026_unzip_v4/GSE275131/GSE275131_RAW"
|
| 19 |
+
OUTPUT_DIR = "/cpfs01/projects-HDD/cfff-afe2df89e32e_HDD/jjh_19301050235/my_data/preprint_data/Spatial-Clip/data/auto_standardize_react/data/2026_standardized/GSE275131"
|
| 20 |
+
|
| 21 |
+
def process_gsm(gsm_id, files):
|
| 22 |
+
try:
|
| 23 |
+
sample_name = gsm_id
|
| 24 |
+
target_path = os.path.join(OUTPUT_DIR, sample_name)
|
| 25 |
+
os.makedirs(target_path, exist_ok=True)
|
| 26 |
+
|
| 27 |
+
# 1. Load Matrix
|
| 28 |
+
h5_path = files.get('matrix_h5')
|
| 29 |
+
if not h5_path:
|
| 30 |
+
return f"{gsm_id}: Missing H5"
|
| 31 |
+
adata = sc.read_10x_h5(h5_path)
|
| 32 |
+
adata.var_names_make_unique()
|
| 33 |
+
|
| 34 |
+
# 2. Load Coordinates
|
| 35 |
+
pos_path = files.get('positions')
|
| 36 |
+
# Handle .csv.gz
|
| 37 |
+
if pos_path.endswith('.gz'):
|
| 38 |
+
with gzip.open(pos_path, 'rt') as f:
|
| 39 |
+
pos_df = pd.read_csv(f, header=None, index_col=0)
|
| 40 |
+
else:
|
| 41 |
+
pos_df = pd.read_csv(pos_path, header=None, index_col=0)
|
| 42 |
+
|
| 43 |
+
# Visium tissue_positions.csv format: barcode, in_tissue, array_row, array_col, pxl_row_in_fullres, pxl_col_in_fullres
|
| 44 |
+
pos_df.columns = ["in_tissue", "array_row", "array_col", "pxl_row_in_fullres", "pxl_col_in_fullres"]
|
| 45 |
+
|
| 46 |
+
# 3. Load Scaling
|
| 47 |
+
scaling_path = files.get('scalefactors')
|
| 48 |
+
with (gzip.open(scaling_path, 'rt') if scaling_path.endswith('.gz') else open(scaling_path, 'r')) as f:
|
| 49 |
+
scalefactors = json.load(f)
|
| 50 |
+
|
| 51 |
+
# 4. Load Image (Supporting .png.gz)
|
| 52 |
+
img_path = files.get('hires_image')
|
| 53 |
+
if img_path.endswith('.gz'):
|
| 54 |
+
with gzip.open(img_path, 'rb') as f:
|
| 55 |
+
img_data = f.read()
|
| 56 |
+
img = Image.open(io.BytesIO(img_data))
|
| 57 |
+
else:
|
| 58 |
+
img = Image.open(img_path)
|
| 59 |
+
|
| 60 |
+
img.save(os.path.join(target_path, "wsi.tif"))
|
| 61 |
+
|
| 62 |
+
# 5. Align Coordinates to Image Space
|
| 63 |
+
scale = scalefactors['tissue_hires_scalef']
|
| 64 |
+
|
| 65 |
+
# Align barcodes
|
| 66 |
+
common_barcodes = adata.obs_names.intersection(pos_df.index)
|
| 67 |
+
adata = adata[common_barcodes].copy()
|
| 68 |
+
pos_df = pos_df.loc[common_barcodes]
|
| 69 |
+
|
| 70 |
+
# Calculate scaled coords
|
| 71 |
+
adata.obs['x'] = pos_df['pxl_col_in_fullres'].astype(float) * scale
|
| 72 |
+
adata.obs['y'] = pos_df['pxl_row_in_fullres'].astype(float) * scale
|
| 73 |
+
adata.obs['pxl_col_in_fullres'] = adata.obs['x']
|
| 74 |
+
adata.obs['pxl_row_in_fullres'] = adata.obs['y']
|
| 75 |
+
|
| 76 |
+
# 6. Metadata (9 Fields) - Mandatory Top-level uns keys
|
| 77 |
+
adata.uns['organism'] = "mouse"
|
| 78 |
+
adata.uns['tissue'] = "brain"
|
| 79 |
+
adata.uns['disease'] = "Alzheimer's disease"
|
| 80 |
+
adata.uns['sex'] = "Not Reported (Verified by Source)"
|
| 81 |
+
adata.uns['age'] = "Not Reported (Verified by Source)"
|
| 82 |
+
adata.uns['technology'] = "10X Visium"
|
| 83 |
+
adata.uns['stain_type'] = "H&E"
|
| 84 |
+
adata.uns['publication_doi'] = "10.1101/2024.08.14.607865"
|
| 85 |
+
adata.uns['repository_id'] = f"GEO:{GSE_ID}"
|
| 86 |
+
|
| 87 |
+
# Save H5AD
|
| 88 |
+
adata.write_h5ad(os.path.join(target_path, "spatial.h5ad"))
|
| 89 |
+
|
| 90 |
+
# Sentinel success
|
| 91 |
+
with open(os.path.join(target_path, ".standardization_success"), "w") as f:
|
| 92 |
+
f.write("Success")
|
| 93 |
+
|
| 94 |
+
return f"{gsm_id}: Success"
|
| 95 |
+
except Exception as e:
|
| 96 |
+
import traceback
|
| 97 |
+
traceback.print_exc()
|
| 98 |
+
return f"{gsm_id}: Failed - {str(e)}"
|
| 99 |
+
|
| 100 |
+
def run():
|
| 101 |
+
# Group files by GSM
|
| 102 |
+
gsm_map = {}
|
| 103 |
+
for f in os.listdir(INPUT_DIR):
|
| 104 |
+
if f.startswith("GSM"):
|
| 105 |
+
gsm_id = f.split("_")[0]
|
| 106 |
+
if gsm_id not in gsm_map:
|
| 107 |
+
gsm_map[gsm_id] = {}
|
| 108 |
+
|
| 109 |
+
if f.endswith(".h5"): gsm_map[gsm_id]['matrix_h5'] = os.path.join(INPUT_DIR, f)
|
| 110 |
+
if "positions" in f: gsm_map[gsm_id]['positions'] = os.path.join(INPUT_DIR, f)
|
| 111 |
+
if "scalefactors" in f: gsm_map[gsm_id]['scalefactors'] = os.path.join(INPUT_DIR, f)
|
| 112 |
+
if "hires_image" in f: gsm_map[gsm_id]['hires_image'] = os.path.join(INPUT_DIR, f)
|
| 113 |
+
|
| 114 |
+
with ThreadPoolExecutor(max_workers=128) as executor:
|
| 115 |
+
results = list(executor.map(lambda g: process_gsm(g, gsm_map[g]), gsm_map))
|
| 116 |
+
|
| 117 |
+
for r in results:
|
| 118 |
+
print(r)
|
| 119 |
+
|
| 120 |
+
# Update Registry
|
| 121 |
+
status = "success" if any("Success" in r for r in results) else "failed"
|
| 122 |
+
registry_utils.update_gse_registry(GSE_ID, status)
|
| 123 |
+
|
| 124 |
+
if __name__ == "__main__":
|
| 125 |
+
run()
|
GSE275131/tree_scan.txt
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
[TREE SCAN] /cpfs01/projects-HDD/cfff-afe2df89e32e_HDD/jjh_19301050235/my_data/preprint_data/Spatial-Clip/data/auto_standardize_react/data/2026_unzip_v4/GSE275131
|
| 3 |
+
--------------------------------------------------
|
| 4 |
+
├── GSE275131_RAW
|
| 5 |
+
├── .extraction_success
|
| 6 |
+
├── GSM8471249_WTvehicule_aligned_fiducials.jpg.gz
|
| 7 |
+
├── GSM8471249_WTvehicule_barcodes.tsv.gz [1;32m[CELL_BARCODES][0m
|
| 8 |
+
├── GSM8471249_WTvehicule_detected_tissue_image.jpg.gz
|
| 9 |
+
├── GSM8471249_WTvehicule_features.tsv.gz [1;32m[GENE_FEATURES][0m
|
| 10 |
+
├── GSM8471249_WTvehicule_matrix.mtx.gz [1;32m[RAW_MATRIX][0m
|
| 11 |
+
├── GSM8471249_WTvehicule_raw_feature_bc_matrix.h5 [1;32m[MATRIX_H5][0m
|
| 12 |
+
├── GSM8471249_WTvehicule_scalefactors_json.json.gz
|
| 13 |
+
├── GSM8471249_WTvehicule_tissue_hires_image.png.gz
|
| 14 |
+
├── GSM8471249_WTvehicule_tissue_lowres_image.png.gz
|
| 15 |
+
├── GSM8471249_WTvehicule_tissue_positions.csv.gz
|
| 16 |
+
├── GSM8471250_3xTgvehicule_aligned_fiducials.jpg.gz
|
| 17 |
+
├── GSM8471250_3xTgvehicule_barcodes.tsv.gz [1;32m[CELL_BARCODES][0m
|
| 18 |
+
├── GSM8471250_3xTgvehicule_detected_tissue_image.jpg.gz
|
| 19 |
+
├── GSM8471250_3xTgvehicule_features.tsv.gz [1;32m[GENE_FEATURES][0m
|
| 20 |
+
├── GSM8471250_3xTgvehicule_matrix.mtx.gz [1;32m[RAW_MATRIX][0m
|
| 21 |
+
├── GSM8471250_3xTgvehicule_raw_feature_bc_matrix.h5 [1;32m[MATRIX_H5][0m
|
| 22 |
+
├── GSM8471250_3xTgvehicule_scalefactors_json.json.gz
|
| 23 |
+
├── GSM8471250_3xTgvehicule_tissue_hires_image.png.gz
|
| 24 |
+
├── GSM8471250_3xTgvehicule_tissue_lowres_image.png.gz
|
| 25 |
+
├── GSM8471250_3xTgvehicule_tissue_positions.csv.gz
|
| 26 |
+
├── GSM8471251_WTSCDi_aligned_fiducials.jpg.gz
|
| 27 |
+
├── GSM8471251_WTSCDi_barcodes.tsv.gz [1;32m[CELL_BARCODES][0m
|
| 28 |
+
├── GSM8471251_WTSCDi_detected_tissue_image.jpg.gz
|
| 29 |
+
├── GSM8471251_WTSCDi_features.tsv.gz [1;32m[GENE_FEATURES][0m
|
| 30 |
+
├── GSM8471251_WTSCDi_matrix.mtx.gz [1;32m[RAW_MATRIX][0m
|
| 31 |
+
├── GSM8471251_WTSCDi_raw_feature_bc_matrix.h5 [1;32m[MATRIX_H5][0m
|
| 32 |
+
├── GSM8471251_WTSCDi_scalefactors_json.json.gz
|
| 33 |
+
├── GSM8471251_WTSCDi_tissue_hires_image.png.gz
|
| 34 |
+
├── GSM8471251_WTSCDi_tissue_lowres_image.png.gz
|
| 35 |
+
├── GSM8471251_WTSCDi_tissue_positions.csv.gz
|
| 36 |
+
├── GSM8471252_3xTgSCDi_aligned_fiducials.jpg.gz
|
| 37 |
+
├── GSM8471252_3xTgSCDi_barcodes.tsv.gz [1;32m[CELL_BARCODES][0m
|
| 38 |
+
├── GSM8471252_3xTgSCDi_detected_tissue_image.jpg.gz
|
| 39 |
+
├── GSM8471252_3xTgSCDi_features.tsv.gz [1;32m[GENE_FEATURES][0m
|
| 40 |
+
├── GSM8471252_3xTgSCDi_matrix.mtx.gz [1;32m[RAW_MATRIX][0m
|
| 41 |
+
├── GSM8471252_3xTgSCDi_raw_feature_bc_matrix.h5 [1;32m[MATRIX_H5][0m
|
| 42 |
+
├── GSM8471252_3xTgSCDi_scalefactors_json.json.gz
|
| 43 |
+
├── GSM8471252_3xTgSCDi_tissue_hires_image.png.gz
|
| 44 |
+
├── GSM8471252_3xTgSCDi_tissue_lowres_image.png.gz
|
| 45 |
+
├── GSM8471252_3xTgSCDi_tissue_positions.csv.gz
|
| 46 |
+
├── filelist.txt
|