Skip to content

Commit 457257c

Browse files
committed
vault backup: 2025-11-04 22:31:20
1 parent 49046bc commit 457257c

File tree

4 files changed

+91
-16
lines changed

4 files changed

+91
-16
lines changed

source/content/.obsidian/graph.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"collapse-filter": false,
3-
"search": "",
4-
"showTags": false,
3+
"search": "image",
4+
"showTags": true,
55
"showAttachments": false,
66
"hideUnresolved": false,
77
"showOrphans": false,
@@ -17,6 +17,6 @@
1717
"repelStrength": 10,
1818
"linkStrength": 1,
1919
"linkDistance": 250,
20-
"scale": 1.5604103022524844,
20+
"scale": 1.0402735348349896,
2121
"close": false
2222
}

source/content/.obsidian/workspace.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "Dry/Software Engineering/FASTQ Cheat Sheet - Linux OS.md",
16+
"file": "Dry/Image Processing/Imaris 3D Random Spots Distance Analysis.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "FASTQ Cheat Sheet - Linux OS"
21+
"title": "Imaris 3D Random Spots Distance Analysis"
2222
}
2323
}
2424
]
@@ -142,13 +142,13 @@
142142
"state": {
143143
"type": "outline",
144144
"state": {
145-
"file": "BSGOU-System/RNA-seq Tool Kits/DeVlog/20250729-fenA-processx_convert-theme.md",
145+
"file": "Dry/Image Processing/Imaris 3D Random Spots Distance Analysis.md",
146146
"followCursor": false,
147147
"showSearch": false,
148148
"searchQuery": ""
149149
},
150150
"icon": "lucide-list",
151-
"title": "Outline of 20250729-fenA-processx_convert-theme"
151+
"title": "Outline of Imaris 3D Random Spots Distance Analysis"
152152
}
153153
}
154154
],
@@ -172,12 +172,17 @@
172172
},
173173
"active": "438080deb723bad3",
174174
"lastOpenFiles": [
175+
"Dry/Software Engineering/FASTQ Cheat Sheet - Linux OS.md",
176+
"Dry/Image Processing/Imaris 3D Random Spots Distance Analysis.md",
177+
"Dry/Software Engineering/BAM file Cheat Sheet - Linux OS.md",
178+
"Dry/Image Processing/Untitled.md",
179+
"Dry/Image Processing/index.md",
180+
"Dry/Software Engineering/index.md",
181+
"Dry/Image Processing",
182+
"Dry/index.md",
175183
"Dry/Software Engineering/Extract Tissue CIDs from Stereo-seq.md",
176184
"Dry/Software Engineering/CARLIN Lineage Analysis on Stereo-seq.md",
177185
"Dry/Nucleic Acid/Spatial Transcriptomics.md",
178-
"Dry/Software Engineering/FASTQ Cheat Sheet - Linux OS.md",
179-
"Dry/Software Engineering/index.md",
180-
"Dry/Software Engineering/BAM file Cheat Sheet - Linux OS.md",
181186
"Dry/Software Engineering/TikZ.md",
182187
"BSGOU-System/RNA-seq Tool Kits/DeVlog/20250729-fenA-processx_convert-theme.md",
183188
"BSGOU-System/RNA-seq Tool Kits/BRAP.md",
@@ -194,12 +199,8 @@
194199
"BSGOU-System/Journal Club/JC000016.md",
195200
"BSGOU-System/Journal Club/JC000014.md",
196201
"BSGOU-System/Journal Club/JC000013.md",
197-
"BSGOU-System/Journal Club/Is Inflammaging Really Universal? This Study Says Nope.md",
198202
"BSGOU-System/Journal Club",
199-
"BSGOU-System/RNA-seq Tool Kits/DeVlog/index.md",
200-
"BSGOU-System/RNA-seq Tool Kits/index.md",
201203
"BSGOU-System/RNA-seq Tool Kits/DeVlog",
202-
"BSGOU-System/RNA-seq Tool Kits/GREP1.md",
203204
"BSGOU-System/RNA-seq Tool Kits",
204205
"BSGOU-System",
205206
"Wet/Reagents",
@@ -209,7 +210,6 @@
209210
"Pasted image 20250603224626.png",
210211
"IGV_BAM_Screenshot.png",
211212
"Wet/Nucleic Acid",
212-
"Dry/Nucleic Acid",
213-
"Dry/Software Engineering"
213+
"Dry/Nucleic Acid"
214214
]
215215
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
title: Imaris 3D Random Spots Distance Analysis
3+
draft: false
4+
tags:
5+
- Dry
6+
- ImageProcessing
7+
---
8+
## 🧾 TL;DR — Imaris 3D Random Spots Distance Analysis
9+
This Imaris XT Python workflow performs a 3D null model analysis by randomly generating spots within a masked volume and calculating their shortest distances to a reference structure, based on a precomputed distance-transform channel. It runs Monte Carlo simulations at multiple seed counts (500–4000 and observed N), compares the distribution of random distances to those of observed spots, and outputs statistical summaries including empirical p-values.
10+
11+
### 📄 Required Files
12+
| 📁 File | 🧾 Description |
13+
| ----------------- | -------------------------------------------------- |
14+
| `DistanceMap.ims` | 3D image containing a distance-transform channel |
15+
| `MaskChannel` | Binary mask channel defining valid sampling region |
16+
| ObservedSpots | Real experimental spot set to compare against |
17+
18+
### 🛠 Required Scripts
19+
| ⚙️ Script | 🔧 Purpose |
20+
| ----------------------------------- | ----------------------------------------------- |
21+
| `ImarisLib.py` | Interface to Imaris XT and image access |
22+
| `Imaris_Analysis-RandomSpots.ipynb` | Main script for seeding, sampling, and analysis |
23+
24+
### 🧭 Workflow Summary
25+
1. Connects to an open Imaris application using ImarisLib.
26+
2. Identifies the appropriate distance and mask channels using name hints or indices.
27+
3. Randomly seeds 3D spots within the mask at different `N` values using Monte Carlo simulation.
28+
4. Measures shortest distances from each random spot to the structure (from the distance channel).
29+
5. Repeats the simulation `N_ITER` times to build null distributions of mean distances.
30+
6. Compares observed mean distance to null distribution and computes empirical p-values.
31+
32+
### 📂 Output Files
33+
| 📤 Output | 📌 Content |
34+
| ------------------------------ | ------------------------------------------------------ |
35+
| `Imaris-Spots-Ana_summary.csv` | Mean distances and p-values for each N condition |
36+
| `*.csv` (optional) | Raw distances for each spot per iteration (if enabled) |
37+
38+
```mermaid
39+
flowchart TD
40+
subgraph Input_Files
41+
A1["📁 DistanceMap.ims"]
42+
A2["📁 MaskChannel"]
43+
A3["📁 ObservedSpots"]
44+
end
45+
46+
subgraph Processing_Steps
47+
B1["⚙️ ImarisLib"]
48+
B2["⚙️ Load Distance & Mask Channels"]
49+
B3["⚙️ Random Spot Seeding"]
50+
B4["⚙️ Distance Measurement"]
51+
B5["⚙️ Null Distribution Sampling"]
52+
B6["⚙️ Empirical P-Value Calculation"]
53+
end
54+
55+
subgraph Outputs
56+
C1["📤 Imaris-Spots-Ana_summary.csv"]
57+
C2["📤 RawDistances.csv"]
58+
end
59+
60+
A1 --> B2
61+
A2 --> B2
62+
A3 --> B6
63+
B2 --> B3
64+
B3 --> B4
65+
B4 --> B5
66+
B5 --> B6
67+
B6 --> C1
68+
B4 --> C2
69+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Image Processing
3+
draft: false
4+
aliases:
5+
- Image Processing
6+
---

0 commit comments

Comments
 (0)