The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
t: string
kind: string
producer: string
resumed: bool
name: string
wanted: int64
elapsed_s: double
rss_bytes: int64
host_available_bytes: int64
cgroup_bytes: null
cgroup_max_bytes: null
devices: list<item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64> (... 1 chars omitted)
child 0, item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64>
child 0, device: string
child 1, bytes_in_use: int64
child 2, peak_bytes_in_use: int64
child 3, bytes_limit: int64
where: list<item: string>
child 0, item: string
n_walkers: int64
adaptive_steps: bool
diffusivity: double
geometry: string
T_max: double
dt_save: double
walker_batch_size: int64
phase: string
done: double
total: double
unit: string
rate_per_s: double
eta_s: double
bytes: int64
status: string
seed: int64
scale: double
pools: list<item: int64>
child 0, item: int64
floor_max: double
n_t: int64
run: struct<pack: struct<id: string, code: struct<version: string, commit: string>>, walk: struct<id: str (... 272 chars omitted)
child 0, pack: struct<id: string, code: struct<version: string, commit: string>>
child 0, id: string
child 1, code: struct<version: string, commit: string>
child 0, version: string
child 1, commit: string
child 1, walk: struct<id: string, producer: string, status: string, started: string, wall_s: double, phases_s: stru (... 185 chars omitted)
child 0, id: string
...
ng extra: double, seeding intra: double, walk extra: double, walk intra: double>
child 0, seeding extra: double
child 1, seeding intra: double
child 2, walk extra: double
child 3, walk intra: double
child 6, peak_rss_bytes: int64
child 7, peak_device_bytes: int64
child 8, code: struct<version: string, commit: string>
child 0, version: string
child 1, commit: string
certificate: struct<extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>, intra: (... 80 chars omitted)
child 0, extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
child 0, voxels: int64
child 1, walkers: int64
child 2, floor_median: double
child 3, floor_max: double
child 1, intra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
child 0, voxels: int64
child 1, walkers: int64
child 2, floor_median: double
child 3, floor_max: double
dt_save_s: double
budget: int64
sha256: string
rounds: int64
certified: string
t_pack_s: double
walkers: int64
variant: string
t_walk_s: double
commit: string
finished: timestamp[s]
size_bytes: int64
box: struct<i: list<item: int64>, j: list<item: int64>, k: list<item: int64>>
child 0, i: list<item: int64>
child 0, item: int64
child 1, j: list<item: int64>
child 0, item: int64
child 2, k: list<item: int64>
child 0, item: int64
block: int64
to
{'block': Value('int64'), 'variant': Value('string'), 'devices': List(Value('string')), 'commit': Value('string'), 'certified': Value('string'), 'floor_max': Value('float64'), 'box': {'i': List(Value('int64')), 'j': List(Value('int64')), 'k': List(Value('int64'))}, 'seed': Value('int64'), 'budget': Value('int64'), 'scale': Value('float64'), 'walkers': Value('int64'), 'pools': List(Value('int64')), 'n_t': Value('int64'), 'dt_save_s': Value('float64'), 't_walk_s': Value('float64'), 't_pack_s': Value('float64'), 'size_bytes': Value('int64'), 'sha256': Value('string'), 'certificate': {'extra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}, 'intra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}}, 'rounds': Value('int64'), 'run': {'pack': {'id': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}}, 'walk': {'id': Value('string'), 'producer': Value('string'), 'status': Value('string'), 'started': Value('string'), 'wall_s': Value('float64'), 'phases_s': {'seeding extra': Value('float64'), 'seeding intra': Value('float64'), 'walk extra': Value('float64'), 'walk intra': Value('float64')}, 'peak_rss_bytes': Value('int64'), 'peak_device_bytes': Value('int64'), 'code': {'version': Value('string'), 'commit': Value('string')}}}, 'finished': Value('timestamp[s]')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
t: string
kind: string
producer: string
resumed: bool
name: string
wanted: int64
elapsed_s: double
rss_bytes: int64
host_available_bytes: int64
cgroup_bytes: null
cgroup_max_bytes: null
devices: list<item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64> (... 1 chars omitted)
child 0, item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64>
child 0, device: string
child 1, bytes_in_use: int64
child 2, peak_bytes_in_use: int64
child 3, bytes_limit: int64
where: list<item: string>
child 0, item: string
n_walkers: int64
adaptive_steps: bool
diffusivity: double
geometry: string
T_max: double
dt_save: double
walker_batch_size: int64
phase: string
done: double
total: double
unit: string
rate_per_s: double
eta_s: double
bytes: int64
status: string
seed: int64
scale: double
pools: list<item: int64>
child 0, item: int64
floor_max: double
n_t: int64
run: struct<pack: struct<id: string, code: struct<version: string, commit: string>>, walk: struct<id: str (... 272 chars omitted)
child 0, pack: struct<id: string, code: struct<version: string, commit: string>>
child 0, id: string
child 1, code: struct<version: string, commit: string>
child 0, version: string
child 1, commit: string
child 1, walk: struct<id: string, producer: string, status: string, started: string, wall_s: double, phases_s: stru (... 185 chars omitted)
child 0, id: string
...
ng extra: double, seeding intra: double, walk extra: double, walk intra: double>
child 0, seeding extra: double
child 1, seeding intra: double
child 2, walk extra: double
child 3, walk intra: double
child 6, peak_rss_bytes: int64
child 7, peak_device_bytes: int64
child 8, code: struct<version: string, commit: string>
child 0, version: string
child 1, commit: string
certificate: struct<extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>, intra: (... 80 chars omitted)
child 0, extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
child 0, voxels: int64
child 1, walkers: int64
child 2, floor_median: double
child 3, floor_max: double
child 1, intra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
child 0, voxels: int64
child 1, walkers: int64
child 2, floor_median: double
child 3, floor_max: double
dt_save_s: double
budget: int64
sha256: string
rounds: int64
certified: string
t_pack_s: double
walkers: int64
variant: string
t_walk_s: double
commit: string
finished: timestamp[s]
size_bytes: int64
box: struct<i: list<item: int64>, j: list<item: int64>, k: list<item: int64>>
child 0, i: list<item: int64>
child 0, item: int64
child 1, j: list<item: int64>
child 0, item: int64
child 2, k: list<item: int64>
child 0, item: int64
block: int64
to
{'block': Value('int64'), 'variant': Value('string'), 'devices': List(Value('string')), 'commit': Value('string'), 'certified': Value('string'), 'floor_max': Value('float64'), 'box': {'i': List(Value('int64')), 'j': List(Value('int64')), 'k': List(Value('int64'))}, 'seed': Value('int64'), 'budget': Value('int64'), 'scale': Value('float64'), 'walkers': Value('int64'), 'pools': List(Value('int64')), 'n_t': Value('int64'), 'dt_save_s': Value('float64'), 't_walk_s': Value('float64'), 't_pack_s': Value('float64'), 'size_bytes': Value('int64'), 'sha256': Value('string'), 'certificate': {'extra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}, 'intra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}}, 'rounds': Value('int64'), 'run': {'pack': {'id': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}}, 'walk': {'id': Value('string'), 'producer': Value('string'), 'status': Value('string'), 'started': Value('string'), 'wall_s': Value('float64'), 'phases_s': {'seeding extra': Value('float64'), 'seeding intra': Value('float64'), 'walk extra': Value('float64'), 'walk intra': Value('float64')}, 'peak_rss_bytes': Value('int64'), 'peak_device_bytes': Value('int64'), 'code': {'version': Value('string'), 'commit': Value('string')}}}, 'finished': Value('timestamp[s]')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
DiSCo as a replay phantom
The DiSCo substrate (Rafael-Patino, Girard, Truffet, Pizzolato, Caruyer, Thiran, The diffusion-simulated connectivity (DiSCo) dataset, Data in Brief 38 (2021) 107429, doi:10.1016/j.dib.2021.107429; data doi:10.17632/fgf86jdfg6.3, CC BY 4.0) walked once and stored as a replay pack, so that any acquisition a human scanner can play is a replay of the same walk, voxel by voxel on the dataset's own 40³ grid of 25 µm voxels, with a per-voxel Monte-Carlo certificate. DiSCo published one acquisition of this substrate; this dataset is the substrate itself in replayable form: the same 12,196 strands, two tubes per strand (the listed inner diameter and the outer tube at 1/0.7 of it), the dataset's diffusivity in both pools (0.6e-9 m²/s), intra water inside the inner tube and extra water outside the outer one, walked for 100 ms with every tier (positions, occupancy, wall contact, the strand field along the path).
Use me
Install dmipy-sim from its main branch (the reader lives there); the dataset is public, no login is needed:
pip install "git+https://github.com/dmrai-lab/dmipy-sim@main" "huggingface_hub>=0.25"
1. You want images and no compute. disco/reference/ holds pre-replayed volumes on the 40³ grid as S/S0
NIfTI with their gradient tables: DiSCo's own 364-measurement protocol as bare diffusion (the dataset's own
simulation) and with white matter at 3 T and 7 T (T2 per pool, surface relaxivity, the sheath's susceptibility),
four other acquisitions (a clinical b = 1000 shell, a three-shell research scheme, a Connectome 2.0 b = 6000
shell, a 50 Hz OGSE), the per-voxel floor, the record of what each was read with, the comparison with the
dataset's own images, and tractography scores. Read its README.md first.
2. You want to replay your own acquisition. Open the pack by reference; nothing is downloaded whole, every byte
read is one the replay uses (HTTP range reads of the columnar layout under disco/):
from dmipy_sim.replay import ReplayPack
from dmipy_sim import sequences
from dmipy_sim.spec.tissue import Tissue
pack = ReplayPack.open("hf://SubstrateCommons/disco-replay/disco") # 150 M walkers, 31,802 voxels; ~0 bytes so far
seq = sequences.pgse([[1, 0, 0], [0, 0, 1]], 0.0102, 0.0167, bvalues=[1e9, 1e9], TE=0.0535) # SI: s/m², s; any grid, any TE ≤ 100 ms
print(pack.plan(seq)) # bands, tiers, bytes: decided before any transfer
view = pack.view(K=32, voxels=[(20, 20, 20)]) # one voxel's rows at 32 bands (~1 MB): an ordinary ReplayPack
S = view.replay(seq) # bare diffusion, the dataset's own physics
wm = Tissue(T2={"intra": 0.05, "extra": 0.055, "myelin": 0.01}, rho=1.16e-6, chi_iso=-1e-7, chi_aniso=-1e-7)
view = pack.view(K=32, modes=8, contact=True, voxels=[(20, 20, 20)]) # the tiers the physics needs
S_3T = view.replay(seq, tissue=wm, scanner=3.0) # relaxation, wall contact, the sheath field at 3 T
from dmipy_sim.replay.study import Acquisition, Protocol, Study
study = Study(Protocol([Acquisition(seq)]), tissues=[None, wm], scanners=[None, 3.0, 7.0], pairs=[(0, 0), (1, 1), (1, 2)])
S, floor, plan = pack.image(study) # the whole grid: one pass over the rows, every pair from it
S is (pairs, 40, 40, 40, measurements), NaN where the pack holds no walkers; floor the split-half floor of
each volume, measured in the same pass. A study names a protocol (sequences, each in a pose), the tissues and the
scanners; the bands are contracted once per acquisition and every tissue and scanner is arithmetic on the result. A replay returns the signal as measured (with the relaxation decay at TE when a tissue carries
a T2); divide by a b = 0 measurement of the same setting for S/S0, as the reference volumes are. A pass over all rows streams 20 to 100 GB depending on the tiers (about 10 to 25 minutes at
50-75 MB/s) and needs a GPU for the sums; a voxel takes a second. The replay knobs are three objects, each
stated once: tissue (a Tissue, or pack.nominal for the spec's values), scanner (a field in tesla or a
catalogue scanner), orientation. Nothing is applied silently: the default is bare diffusion. The
replay guide in dmipy-sim is the manual:
one page per object, the table of what each knob touches and which channel it needs, images by reference, and
a DiSCo recipe.
3. You want the walkers themselves. disco/ is the lossless form of the pack: every walker of the fill, in
columns (disco/columns/*.safetensors), with nothing requantised; pack.view(...) returns any voxels' rows as an
ordinary ReplayPack, and a top-up (a later pass) appends its rows to disco/columns. The embedded spec cites the
strand file at substrate/DiSCo_Strands_Trajectories.tck: replay from the dataset's directory, or copy
substrate/ under $DMIPY_SIM_SURFACE_DIR.
What is certified
| state | pass 1 complete (0.16 of the plan, 1,399 shards, 1.5e8 walkers, certified floor median 0.033) + the repair of 332 voxels whose pool the plan had clipped (dmipy-sim#295; columnar.repair in disco/manifest.json); pass 2, the 0.84 top-up to the 0.008 floor, is held |
| validation | DiSCo's own protocol replayed against the dataset's noise-free images: correlation 0.989 / 0.990 / 0.988 / 0.981 per shell, per-voxel r.m.s. 0.013 against the certified floor 0.035; a uniform +1 % of S0 because the dataset's tubes are triangle meshes (inner volume 0.953 of the pack's); the replay scores 0.91 on the dataset's connectome through a CSD + probabilistic tracking pipeline, where the dataset's own images score 0.905 |
| walk | 100 ms gradient-on budget; K = 256 bands (1.28 kHz: every human scanner class at ε = 5e-3), the bands at 16 bits below mode 16 and 8 bits above, nanometre reconstruction; 3,349 saves set by the Connectome 2.0 envelope |
| tiers | C0 positions, C1 occupancy (static, impermeable), C2 wall contact, C3 the strand field along the path (32 modes, refocusing depth 16); the sheath between the tubes holds no water and is the susceptibility source |
| field | the exact field of every segment within 18 µm in closed form, the rest through a far grid on 2.5 µm nodes (read error 0.08 % of the field at walker positions); checked against an independent k-space route to 0.03-0.22 % (substrate/far_field_check.txt) |
| outside | voxels farther than 46 µm from every strand hold free extra water and carry no walkers |
| limits | no myelin water (a multi-echo replay sees two pools where white matter has three); refocusing depth 8 for the field channel; the band and envelope above |
Layout
disco/ THE PACK, lossless, in columns (152.8 M rows, 187.7 GB in 237 parts): manifest.json (meta +
every column's byte layout), index.json (row range per voxel and pool), columns/*.safetensors;
a top-up appends to columns/
disco/moments/ the shape-moment layout contracted from disco/ (its manifest names disco/manifest.json's sha256)
disco/reference/ pre-replayed volumes, their records, the comparison with DiSCo, tractography scores, a card
manifest.json the fill's recipe: substrate, grid, walk, codec, plan, variants, code commit
plan/ walkers per voxel per pool; the 1,399 voxel blocks and their seeds
substrate/ DiSCo's strand files, unchanged (SOURCE.md: provenance and hashes); the far field grid
certificate/ the fill's measured certificate (disco.json: a scaled block, the full battery; every block
inherits it), with the certifying block's pack and the record of its walk
STATUS.md, worker/ the fill's status page at the end of pass 1, and the worker
Contributing compute
worker/README.md: one process fills blocks in a pipeline, claims by file, no scheduler; every shard records the
code commit, the seed and the sha256 of what it uploaded, and carries the record of its run, and a finished pass
is appended to disco/columns. Pass 1 was walked by five machines (a GH200, three L40S, a Kaggle T4) in 151
GPU-hours over two days.
Attribution
Substrate: Rafael-Patino et al. 2021 (CC BY 4.0). Replay packs: dmipy-sim (dmrai-lab), replay-pack-spec. Cite the dataset paper for the substrate and the replay paper for the packs.
- Downloads last month
- 9,325