AlonSaguy commited on
Commit
b619bbf
·
verified ·
1 Parent(s): 2fe1630

Publish 2026_W39_encoder

Browse files
README.md CHANGED
@@ -29,7 +29,10 @@ A published encoder is not the weights alone. `predict` cannot run without every
29
 
30
  - `spatial_encoder.pt` -- the trained network.
31
  - the context PCA volumes (`agea_vol_pca.npy`, `merfish_vol_pca.npy`) -- the anatomical context
32
- it samples at each position.
 
 
 
33
  - `neighbor_bank.npz` -- the **neighbour bank**: the position, standardised feature vector and
34
  insertion id of every training channel. At inference the model gathers the nearest recorded
35
  channels from this bank and attends to them, so the bank *is* part of the model, the way the
 
29
 
30
  - `spatial_encoder.pt` -- the trained network.
31
  - the context PCA volumes (`agea_vol_pca.npy`, `merfish_vol_pca.npy`) -- the anatomical context
32
+ it samples at each position: principal components of the AGEA gene-expression volume and of the
33
+ MERFISH subclass cell-type densities, denoised with `iblatlas.genomics.merfish.denoise_volume`
34
+ (NaNs filled, Gaussian-smoothed, renormalised within the brain; see `config.context.sources`
35
+ in `ephysatlas_model.json`).
36
  - `neighbor_bank.npz` -- the **neighbour bank**: the position, standardised feature vector and
37
  insertion id of every training channel. At inference the model gathers the nearest recorded
38
  channels from this bank and attends to them, so the bank *is* part of the model, the way the
agea_vol_pca.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4544da5f861e76858f6de15dc1e2926da3c0f2abafd0fde966410169bca23aad
3
  size 31865328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:648f676671127966e2df58bb3a9aa694a4ea1d35e246bd02689f9909ba34a28f
3
  size 31865328
checksums.json CHANGED
@@ -3,23 +3,23 @@
3
  "files": [
4
  {
5
  "path": "agea_vol_pca.npy",
6
- "hash": "63b28e9dc7b2038de5de4a13ff0f41f343ceb3f3",
7
  "bytes": 31865328
8
  },
9
  {
10
  "path": "confidence_model.pt",
11
- "hash": "845fc230fada14fbd396cbed8d53d570d011270b",
12
  "bytes": 387569
13
  },
14
  {
15
  "path": "ephysatlas_model.json",
16
- "hash": "496b819dcf1a77d93d566758861847375956f319",
17
- "bytes": 6662
18
  },
19
  {
20
  "path": "example/expected_predictions.parquet",
21
- "hash": "c5d4b8aef65523d040e900505b5ada72e90b03e5",
22
- "bytes": 155898
23
  },
24
  {
25
  "path": "example/features_sample.parquet",
@@ -28,7 +28,7 @@
28
  },
29
  {
30
  "path": "merfish_vol_pca.npy",
31
- "hash": "436d32acbcfd303a53b40e42a7da72e120277f7b",
32
  "bytes": 31865328
33
  },
34
  {
@@ -38,22 +38,22 @@
38
  },
39
  {
40
  "path": "preprocessing/channel_stats.npz",
41
- "hash": "66020ce3c717f89c3851edcc2445fd26fb9b8ed3",
42
- "bytes": 3402
43
  },
44
  {
45
  "path": "results/confidence_validation.json",
46
- "hash": "5e4ebe6a928073fd445c40fd9e608aed37d7cbaa",
47
  "bytes": 291
48
  },
49
  {
50
  "path": "results/test_r2.json",
51
- "hash": "6b10e9e55ce46e8ceeaa9f41121219eb33fd935a",
52
- "bytes": 2021
53
  },
54
  {
55
  "path": "spatial_encoder.pt",
56
- "hash": "13ade9f2714699cf3571f40a0cd28080c8ea6ac3",
57
  "bytes": 4625417
58
  },
59
  {
 
3
  "files": [
4
  {
5
  "path": "agea_vol_pca.npy",
6
+ "hash": "b710b6b26797e78bbc49762e80f2ae5ab6bb3896",
7
  "bytes": 31865328
8
  },
9
  {
10
  "path": "confidence_model.pt",
11
+ "hash": "7c5eed503a08c6d3afe5047702f0b3c961def869",
12
  "bytes": 387569
13
  },
14
  {
15
  "path": "ephysatlas_model.json",
16
+ "hash": "c854d99dd6a81a38ad8c5b5d234648e62f029031",
17
+ "bytes": 6992
18
  },
19
  {
20
  "path": "example/expected_predictions.parquet",
21
+ "hash": "f3d23df86e52e720a223595884c6ea91ac578a6e",
22
+ "bytes": 155858
23
  },
24
  {
25
  "path": "example/features_sample.parquet",
 
28
  },
29
  {
30
  "path": "merfish_vol_pca.npy",
31
+ "hash": "c8fd5484d8c0619c5c542242c9ac99876db56892",
32
  "bytes": 31865328
33
  },
34
  {
 
38
  },
39
  {
40
  "path": "preprocessing/channel_stats.npz",
41
+ "hash": "122634168092c7bc5fea981960100e7902a5c857",
42
+ "bytes": 3384
43
  },
44
  {
45
  "path": "results/confidence_validation.json",
46
+ "hash": "f04a224d8afa2f818b5c197b948497bd07c76b0d",
47
  "bytes": 291
48
  },
49
  {
50
  "path": "results/test_r2.json",
51
+ "hash": "d655cf0658a0bc7ffc31332c0347afd233adcd52",
52
+ "bytes": 2018
53
  },
54
  {
55
  "path": "spatial_encoder.pt",
56
+ "hash": "7d1a1f6223eb0494dfb7fb1a218022a89dfb0ba9",
57
  "bytes": 4625417
58
  },
59
  {
confidence_model.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:efeed1d0b1a02ccc26863204a2960071957b6285410c238ea382cdfaba1ebbb6
3
  size 387569
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61383c56e54c04d3d8e5b78f1d9e116a42352033199a8336b72212507144b253
3
  size 387569
ephysatlas_model.json CHANGED
@@ -9,7 +9,7 @@
9
  "validation_size": 81,
10
  "testing_size": 162,
11
  "best_epoch": 3,
12
- "mean_test_r2": 0.39225515723228455
13
  },
14
  "environment": {
15
  "python": "3.11.9",
@@ -117,7 +117,18 @@
117
  "context": {
118
  "n_cell_pcs": 50,
119
  "n_gene_pcs": 50,
120
- "voxel_um": 200
 
 
 
 
 
 
 
 
 
 
 
121
  },
122
  "preprocessing": {
123
  "clip_percentiles": [
 
9
  "validation_size": 81,
10
  "testing_size": 162,
11
  "best_epoch": 3,
12
+ "mean_test_r2": 0.3942371606826782
13
  },
14
  "environment": {
15
  "python": "3.11.9",
 
117
  "context": {
118
  "n_cell_pcs": 50,
119
  "n_gene_pcs": 50,
120
+ "voxel_um": 200,
121
+ "sources": {
122
+ "merfish": {
123
+ "level": "subclass",
124
+ "volume": "iblatlas.genomics.merfish.denoise_volume",
125
+ "n_drop_non_neuronal": 0,
126
+ "sigma_voxels": 0.5
127
+ },
128
+ "agea": {
129
+ "volume": "iblatlas.genomics.agea.load(label=\"processed\")"
130
+ }
131
+ }
132
  },
133
  "preprocessing": {
134
  "clip_percentiles": [
example/expected_predictions.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:748b30b51a5bc3c9b1fb23c088fb309af1ccafb52f024c231844c88329cf9e6d
3
- size 155898
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff49e53f4cdb187d53edb32f24d47d11abe418f01f2f154873d07bcd53ae6e7a
3
+ size 155858
merfish_vol_pca.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c9e02fa3ce79fb97f1e1a8d4808ddd6cd37934b037bb65d87803532c6a13cfa3
3
  size 31865328
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95fcc9a5d829e0485c372e0ac9e3511acbebc89c56f6861e2ef8b4b6f34c5643
3
  size 31865328
preprocessing/channel_stats.npz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:81606c3d1a5f4a547c2963e426a7e59d900209da1c4c23f17666f5800baa0b09
3
- size 3402
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0548b3e1872120a85b7ec0da03071fb24dafdf9d224932f25f179693ba0342e
3
+ size 3384
results/confidence_validation.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
  "split": "validation (synthetic misalignments)",
3
- "accuracy": 0.7697482638888888,
4
  "confusion_matrix": [
5
  [
6
- 145968,
7
- 44237
8
  ],
9
  [
10
- 13057,
11
- 45570
12
  ]
13
  ],
14
  "classes": [
 
1
  {
2
  "split": "validation (synthetic misalignments)",
3
+ "accuracy": 0.7644595550411523,
4
  "confusion_matrix": [
5
  [
6
+ 145775,
7
+ 44430
8
  ],
9
  [
10
+ 14180,
11
+ 44447
12
  ]
13
  ],
14
  "classes": [
results/test_r2.json CHANGED
@@ -1,50 +1,50 @@
1
  {
2
  "split": "test",
3
  "n_test_insertions": 162,
4
- "mean_r2": 0.39225515723228455,
5
  "per_feature": {
6
- "rms_lf": 0.6568270921707153,
7
- "psd_delta": 0.6041296720504761,
8
- "psd_theta": 0.7125661373138428,
9
- "psd_alpha": 0.7067911624908447,
10
- "psd_beta": 0.6807988882064819,
11
- "psd_gamma": 0.6520721912384033,
12
- "psd_lfp": 0.6709305047988892,
13
- "rms_lf_csd_diff1": 0.3776247501373291,
14
- "psd_delta_csd_diff1": 0.34319454431533813,
15
- "psd_theta_csd_diff1": 0.49149876832962036,
16
- "psd_alpha_csd_diff1": 0.48544758558273315,
17
- "psd_beta_csd_diff1": 0.43134593963623047,
18
- "psd_gamma_csd_diff1": 0.3505679965019226,
19
- "psd_lfp_csd_diff1": 0.38819313049316406,
20
- "psd_residual_delta": 0.38726121187210083,
21
- "psd_residual_theta": 0.40748900175094604,
22
- "psd_residual_alpha": 0.3592684268951416,
23
- "psd_residual_beta": 0.2527044415473938,
24
- "psd_residual_gamma": 0.20339089632034302,
25
- "psd_residual_lfp": 0.15038365125656128,
26
- "aperiodic_offset": 0.6621072292327881,
27
- "aperiodic_exponent": 0.3824368715286255,
28
- "decay_fit_error": 0.26942986249923706,
29
- "decay_fit_r_squared": 0.3475661277770996,
30
- "decay_n_peaks": 0.09780853986740112,
31
- "cor_ratio": 0.590096116065979,
32
- "rms_ap": 0.5781934261322021,
33
- "alpha_mean": 0.36733919382095337,
34
- "alpha_std": 0.32872676849365234,
35
- "spike_count": 0.24967080354690552,
36
- "depolarisation_slope": 0.41250598430633545,
37
- "polarity": 0.2455672025680542,
38
- "recovery_slope": 0.3471274971961975,
39
- "repolarisation_slope": 0.36749958992004395,
40
- "slowness_s_per_m": 0.09602916240692139,
41
- "slowness_s_per_m_std": 0.4324660897254944,
42
- "spatial_spread_um": 0.2887027859687805,
43
- "spatial_spread_um_std": 0.13961225748062134,
44
- "tip_val": 0.2865339517593384,
45
- "spike_width_secs": 0.4519430994987488,
46
- "predepolarisation_width_secs": 0.2852904200553894,
47
- "spike_amplitude": 0.3234935998916626,
48
- "peak_to_trough_ratio_log": 0.004339396953582764
49
  }
50
  }
 
1
  {
2
  "split": "test",
3
  "n_test_insertions": 162,
4
+ "mean_r2": 0.3942371606826782,
5
  "per_feature": {
6
+ "rms_lf": 0.6550701260566711,
7
+ "psd_delta": 0.5976907014846802,
8
+ "psd_theta": 0.7105530500411987,
9
+ "psd_alpha": 0.7033395767211914,
10
+ "psd_beta": 0.6790828704833984,
11
+ "psd_gamma": 0.6526632308959961,
12
+ "psd_lfp": 0.6669749021530151,
13
+ "rms_lf_csd_diff1": 0.372251033782959,
14
+ "psd_delta_csd_diff1": 0.33365315198898315,
15
+ "psd_theta_csd_diff1": 0.4834861755371094,
16
+ "psd_alpha_csd_diff1": 0.47833847999572754,
17
+ "psd_beta_csd_diff1": 0.4298723340034485,
18
+ "psd_gamma_csd_diff1": 0.34356796741485596,
19
+ "psd_lfp_csd_diff1": 0.382626473903656,
20
+ "psd_residual_delta": 0.3934798240661621,
21
+ "psd_residual_theta": 0.4087831377983093,
22
+ "psd_residual_alpha": 0.36000263690948486,
23
+ "psd_residual_beta": 0.2635628581047058,
24
+ "psd_residual_gamma": 0.2118266224861145,
25
+ "psd_residual_lfp": 0.16072648763656616,
26
+ "aperiodic_offset": 0.6590027809143066,
27
+ "aperiodic_exponent": 0.38344305753707886,
28
+ "decay_fit_error": 0.2743866443634033,
29
+ "decay_fit_r_squared": 0.3550477623939514,
30
+ "decay_n_peaks": 0.09816223382949829,
31
+ "cor_ratio": 0.5910254716873169,
32
+ "rms_ap": 0.5826618671417236,
33
+ "alpha_mean": 0.38318175077438354,
34
+ "alpha_std": 0.3446558713912964,
35
+ "spike_count": 0.24994319677352905,
36
+ "depolarisation_slope": 0.41396862268447876,
37
+ "polarity": 0.24988126754760742,
38
+ "recovery_slope": 0.3518065810203552,
39
+ "repolarisation_slope": 0.3700753450393677,
40
+ "slowness_s_per_m": 0.0968065857887268,
41
+ "slowness_s_per_m_std": 0.4426867365837097,
42
+ "spatial_spread_um": 0.29377901554107666,
43
+ "spatial_spread_um_std": 0.14359837770462036,
44
+ "tip_val": 0.29089581966400146,
45
+ "spike_width_secs": 0.45722121000289917,
46
+ "predepolarisation_width_secs": 0.28831756114959717,
47
+ "spike_amplitude": 0.32823026180267334,
48
+ "peak_to_trough_ratio_log": 0.015869319438934326
49
  }
50
  }
spatial_encoder.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab0e4a71f7a5b72120ed9a40fe98002beada9500c8a89651a6d999371f9730e8
3
  size 4625417
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f8c9347db81656c1e2e4d7dde60758ee8e6f15bbf2f67a65477f8aa1d7621d0
3
  size 4625417