DiSCo v2
Browse files- README.md +93 -0
- disco/bg_g0.npy +3 -0
- disco/bg_g1.npy +3 -0
- disco/manifest.json +0 -0
- disco/p_d10.2-D16.7.npy +3 -0
- disco/p_d12-D24.npy +3 -0
- disco/p_d17-D30.npy +3 -0
- disco/p_d17.7-D35.8.npy +3 -0
- disco/p_d7.6-D45.9.npy +3 -0
- disco/p_d8-D20.npy +3 -0
- disco/p_ste-d7.6-TM38.3.npy +3 -0
- disco/pool.npy +3 -0
- disco/t_g0.npy +3 -0
- disco/t_g1.npy +3 -0
- disco/tiles.npy +3 -0
- disco/w.npy +3 -0
README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
pretty_name: DiSCo time segments
|
| 4 |
+
tags:
|
| 5 |
+
- diffusion-mri
|
| 6 |
+
- monte-carlo
|
| 7 |
+
- replay-pack
|
| 8 |
+
- tractography-phantom
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# DiSCo time segments
|
| 12 |
+
|
| 13 |
+
The DiSCo replay walk, contracted at DiSCo's own seven gradient timings so that a whole-grid image costs one pass
|
| 14 |
+
over 125 bytes per walker. It comes from the same 321,138,027 walkers as the replay pack in
|
| 15 |
+
[SubstrateCommons/disco-replay](https://huggingface.co/datasets/SubstrateCommons/disco-replay). It was contracted
|
| 16 |
+
from the walk's unquantised coefficients beside each shard, not from the pack.
|
| 17 |
+
|
| 18 |
+
**Choose the dataset by the question.** Use this one for an acquisition at one of the timings below, where every
|
| 19 |
+
other knob stays free. Use the replay pack for any other waveform: another δ or Δ, OGSE, an arbitrary gradient.
|
| 20 |
+
|
| 21 |
+
## What a timing class leaves free
|
| 22 |
+
|
| 23 |
+
Each class fixes the times at which the gradient may switch; its segments are constant-gradient intervals. Within
|
| 24 |
+
a class, everything else is chosen at replay time:
|
| 25 |
+
|
| 26 |
+
- the b-value and direction of every measurement, up to the class's gradient amplitude;
|
| 27 |
+
- the per-voxel delivered gradient (gradient nonlinearity, a background gradient);
|
| 28 |
+
- T₂ and T₁ per pool, and surface relaxivity ρ₂ ≤ 3 µm/s;
|
| 29 |
+
- B₀ of 1.5, 3 or 7 T in any direction, and myelin χ up to 2 × 10⁻⁷, isotropic and anisotropic.
|
| 30 |
+
|
| 31 |
+
| class | timing (ms) | echo |
|
| 32 |
+
|---|---|---|
|
| 33 |
+
| `d7.6-D45.9` | δ 7.6, Δ 45.9 | spin echo, TE 53.5 |
|
| 34 |
+
| `d8-D20` | δ 8, Δ 20 | spin echo, TE 53.5 |
|
| 35 |
+
| `d10.2-D16.7` | δ 10.2, Δ 16.7 | spin echo, TE 53.5 |
|
| 36 |
+
| `d12-D24` | δ 12, Δ 24 | spin echo, TE 53.5 |
|
| 37 |
+
| `d17-D30` | δ 17, Δ 30 | spin echo, TE 53.5 |
|
| 38 |
+
| `d17.7-D35.8` | δ 17.7, Δ 35.8 | spin echo, TE 53.5 |
|
| 39 |
+
| `ste-d7.6-TM38.3` | δ 7.6, mixing time 38.3 | stimulated echo |
|
| 40 |
+
|
| 41 |
+
Each class's widths are derived at the 1.003 % floor. The layout's own error bound is in `disco/manifest.json` under
|
| 42 |
+
`certificate`, term by term. Against the replay pack, 16 voxels in all seven classes agree to 2.2 × 10⁻⁵, against
|
| 43 |
+
a combined bound of 3.0 × 10⁻³.
|
| 44 |
+
|
| 45 |
+
## Use me
|
| 46 |
+
|
| 47 |
+
```
|
| 48 |
+
pip install "git+https://github.com/dmrai-lab/dmipy-sim@main" "huggingface_hub>=0.25"
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
import numpy as np
|
| 53 |
+
from dmipy_sim import sequences
|
| 54 |
+
from dmipy_sim.replay.time_segments import TimeSegmentLayout
|
| 55 |
+
from dmipy_sim.spec.tissue import Tissue
|
| 56 |
+
|
| 57 |
+
layout = TimeSegmentLayout.open("hf://SubstrateCommons/disco-time-segments/disco",
|
| 58 |
+
partitions=["d10.2-D16.7"]) # fetches this class's words and the shared columns
|
| 59 |
+
seq = sequences.pgse([[1, 0, 0], [0, 0, 1]], 0.0102, 0.0167, bvalues=[1e9, 3.094e9], TE=0.0535,
|
| 60 |
+
slew_rate=np.inf) # square lobes: constant on the class's segments
|
| 61 |
+
S, floor = layout.image(seq) # (40, 40, 40, 2) S/S0 and the per-voxel floor
|
| 62 |
+
wm = Tissue(T2={"intra": 0.05, "extra": 0.055, "myelin": 0.01}, rho2=1e-6, chi_iso=-1e-7, chi_aniso=-1e-7)
|
| 63 |
+
S_3T, _ = layout.image(seq, tissue=wm, scanner=3.0) # relaxation, wall contact and the sheath field at 3 T
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
`layout.fit(seq)` names the class a sequence fits, or says why it fits none. `partitions=None` fetches every
|
| 67 |
+
class (40 GB). A whole-grid image keeps the class's
|
| 68 |
+
columns in memory, about 9 GB for bare diffusion and more with the tiers; `resident=False` frees them after the
|
| 69 |
+
call.
|
| 70 |
+
|
| 71 |
+
## Files
|
| 72 |
+
|
| 73 |
+
| path | what |
|
| 74 |
+
|---|---|
|
| 75 |
+
| `disco/manifest.json` | grid, classes and their segments, widths, certificate, provenance |
|
| 76 |
+
| `disco/w.npy`, `disco/tiles.npy`, `disco/pool.npy` | each row's weight, its voxel half, and its pool |
|
| 77 |
+
| `disco/p_<class>.npy` | each class's segment vectors, packed |
|
| 78 |
+
| `disco/t_g0.npy`, `disco/t_g1.npy` | the relaxation, contact and field tiers of the spin-echo and stimulated-echo groups |
|
| 79 |
+
| `disco/bg_g0.npy`, `disco/bg_g1.npy` | the background-gradient term of each group |
|
| 80 |
+
|
| 81 |
+
The rows are in tiles of 128, sorted by voxel. Each voxel's rows are split into two halves, which give the
|
| 82 |
+
split-half floor.
|
| 83 |
+
|
| 84 |
+
## Licence
|
| 85 |
+
|
| 86 |
+
**CC BY-NC-SA 4.0**, or a commercial licence on request. The DiSCo substrate is the DiSCo authors' work, CC BY 4.0.
|
| 87 |
+
|
| 88 |
+
## Citation
|
| 89 |
+
|
| 90 |
+
- Rafael-Patino J, Girard G, Truffet R, Pizzolato M, Caruyer E, Thiran J-P. The diffusion-simulated connectivity
|
| 91 |
+
(DiSCo) dataset. Data in Brief 38 (2021) 107429.
|
| 92 |
+
- Fick RHJ. Replayable Monte Carlo MRI: from persistent tissue microphysics to queryable virtual phantoms (in
|
| 93 |
+
preparation, 2026). dmipy-sim, https://github.com/dmrai-lab/dmipy-sim.
|
disco/bg_g0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce0d37510399b8efa22f5c0dbd523eb8a1d2037a4169dcf91a03bb7768620e6f
|
| 3 |
+
size 1293874304
|
disco/bg_g1.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d899ffb35d7dad9180406b9bc199507e4c63c91ad7692b765d34f1711ce93cb9
|
| 3 |
+
size 1293874304
|
disco/manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
disco/p_d10.2-D16.7.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e60de35d59472758befb0b63b4d6bf9509c54ab2156dec6d5ec1f0d417efef63
|
| 3 |
+
size 3881622656
|
disco/p_d12-D24.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e728ec37e48d8fe1b304dd19beadf24a8573d42878ef5e97b9200584edec53d
|
| 3 |
+
size 3881622656
|
disco/p_d17-D30.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f3d5e3f071a07de3103af7dc37c00b36ca94eaf37b41e06c328ad663a8c4b3d
|
| 3 |
+
size 3881622656
|
disco/p_d17.7-D35.8.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef3e92a006ca7a62a4c27ce96b70e9dd9e8172f1f85982ff593de1a4437f9d7b
|
| 3 |
+
size 3881622656
|
disco/p_d7.6-D45.9.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58211831bd5c7758a133bff6cb166c49ed37f18c75cc3599d46ab6400d94bea1
|
| 3 |
+
size 3881622656
|
disco/p_d8-D20.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da12cb7f19240e558bef9e70e9e425e165529fd460f053cd995f2161de128b53
|
| 3 |
+
size 3881622656
|
disco/p_ste-d7.6-TM38.3.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58211831bd5c7758a133bff6cb166c49ed37f18c75cc3599d46ab6400d94bea1
|
| 3 |
+
size 3881622656
|
disco/pool.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1abed79c646521a40a9b5e60c36ad337db06dca9820b6eca89fb9905d3f13e4
|
| 3 |
+
size 323468672
|
disco/t_g0.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:473e9dcd536dc2161e34d38645da85a5be6dd7f8ecef3097c571f8d9cf28dc8c
|
| 3 |
+
size 5175496832
|
disco/t_g1.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b5374608ec3c18f9d1052de163d5b8331258d5241440e7acb11d01dead1af3f
|
| 3 |
+
size 3881622656
|
disco/tiles.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f0ea0aec3d14dfaf6f5ec3b70b80b999312cdc43d487e4c5d4e211f2370ed0d
|
| 3 |
+
size 10108520
|
disco/w.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f672d4cc6875e2259e72a256e4b98a28a609ba3c2f78fb667f73ac3303a17eab
|
| 3 |
+
size 1293874304
|