Skip to content

Commit 1086364

Browse files
committed
SGN subtype update: 98L, N152L
1 parent 885bad1 commit 1086364

File tree

6 files changed

+170
-3
lines changed

6 files changed

+170
-3
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[
2+
{
3+
"cochlea": "M_LR_000098_L",
4+
"image_channel": [
5+
"CR",
6+
"Ntng1",
7+
"PV",
8+
"SGN_v2"
9+
],
10+
"segmentation_channel": "SGN_v2",
11+
"type": "sgn",
12+
"n_blocks": 6,
13+
"halo_size": [
14+
256,
15+
256,
16+
50
17+
],
18+
"component_list": [
19+
1,
20+
2
21+
],
22+
"crop_centers": [
23+
[
24+
901,
25+
898,
26+
720
27+
],
28+
[
29+
956,
30+
629,
31+
576
32+
],
33+
[
34+
929,
35+
749,
36+
290
37+
],
38+
[
39+
604,
40+
841,
41+
296
42+
],
43+
[
44+
492,
45+
500,
46+
581
47+
],
48+
[
49+
561,
50+
179,
51+
502
52+
]
53+
],
54+
"max_edge_distance": 30
55+
}
56+
]
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[
2+
{
3+
"cochlea": "M_LR_N152_L",
4+
"image_channel": [
5+
"CR",
6+
"Ntng1",
7+
"PV",
8+
"SGN_v2"
9+
],
10+
"segmentation_channel": "SGN_v2",
11+
"type": "sgn",
12+
"n_blocks": 6,
13+
"halo_size": [
14+
256,
15+
256,
16+
50
17+
],
18+
"component_list": [
19+
1,
20+
2
21+
],
22+
"crop_centers": [
23+
[
24+
791,
25+
1331,
26+
750
27+
],
28+
[
29+
752,
30+
997,
31+
849
32+
],
33+
[
34+
519,
35+
929,
36+
610
37+
],
38+
[
39+
794,
40+
904,
41+
420
42+
],
43+
[
44+
1013,
45+
613,
46+
479
47+
],
48+
[
49+
1013,
50+
330,
51+
643
52+
]
53+
],
54+
"max_edge_distance": 30
55+
}
56+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"cochlea": "M_LR_000098_L",
4+
"image_channel": [
5+
"PV",
6+
"CR",
7+
"Ntng1"
8+
],
9+
"segmentation_channel": "SGN_v2",
10+
"component_list": [
11+
1,
12+
2
13+
]
14+
}
15+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"cochlea": "M_LR_N152_L",
4+
"image_channel": [
5+
"PV",
6+
"CR",
7+
"Ntng1"
8+
],
9+
"segmentation_channel": "SGN_v2",
10+
"component_list": [
11+
1,
12+
2
13+
]
14+
}
15+
]

reproducibility/tonotopic_mapping/2025-07-SGN_subtypes.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,23 @@
2828
"cochlea": "M_AMD_N180_R",
2929
"segmentation_channel": "SGN_merged",
3030
"type": "sgn"
31+
},
32+
{
33+
"cochlea": "M_LR_N152_L",
34+
"segmentation_channel": "SGN_v2",
35+
"component_list": [
36+
1,
37+
2
38+
],
39+
"type": "sgn"
40+
},
41+
{
42+
"cochlea": "M_LR_000098_L",
43+
"segmentation_channel": "SGN_v2",
44+
"component_list": [
45+
1,
46+
2
47+
],
48+
"type": "sgn"
3149
}
3250
]

scripts/measurements/sgn_subtypes.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ def frequency_mapping(frequencies, values, animal="mouse", transduction_efficien
5858
# "M_LR_000214_L": ["PV", "CR", "Calb1"],
5959
"M_LR_000184_R": ["PV", "Prph"],
6060
"M_LR_000184_L": ["PV", "Prph"],
61+
"M_LR_000098_L": ["PV", "CR", "Ntng1"],
62+
"M_LR_N152_L": ["PV", "CR", "Ntng1"],
6163
# "M_LR_000260_L": ["PV", "Prph", "Tuj1"],
6264
}
6365

6466
COCHLEAE = {
67+
"M_LR_N152_L": {"seg_data": "SGN_v2", "subtype": ["CR", "Ntng1"], "component_list": [1, 2]},
68+
"M_LR_000098_L": {"seg_data": "SGN_v2", "subtype": ["CR", "Ntng1"], "component_list": [1, 2]},
6569
"M_LR_000099_L": {"seg_data": "PV_SGN_v2", "subtype": ["Calb1", "Lypd1"]},
6670
"M_LR_000184_L": {"seg_data": "SGN_v2", "subtype": ["Prph"], "output_seg": "SGN_v2b"},
6771
"M_LR_000184_R": {"seg_data": "SGN_v2", "subtype": ["Prph"], "output_seg": "SGN_v2b"},
@@ -71,7 +75,7 @@ def frequency_mapping(frequencies, values, animal="mouse", transduction_efficien
7175

7276

7377
REGULAR_COCHLEAE = [
74-
"M_LR_000099_L", "M_LR_000184_R", "M_LR_000184_L", # "M_LR_000260_L"
78+
"M_LR_000099_L", "M_LR_000184_R", "M_LR_000184_L", "M_LR_000098_L", "M_LR_N152_L" # "M_LR_000260_L"
7579
]
7680

7781
# For custom thresholds.
@@ -300,7 +304,10 @@ def compile_data_for_subtype_analysis():
300304
table = pd.read_csv(table_content, sep="\t")
301305

302306
# Get the SGNs in the main component
303-
table = table[table.component_labels == 1]
307+
component_list = [1]
308+
if "component_list" in list(COCHLEAE[cochlea].keys()):
309+
component_list = COCHLEAE[cochlea]["component_list"]
310+
table = table[table["component_labels"].isin(component_list)]
304311
print("Number of SGNs", len(table))
305312
valid_sgns = table.label_id
306313

@@ -315,7 +322,7 @@ def compile_data_for_subtype_analysis():
315322
)
316323
table_content = s3.open(os.path.join(table_folder, "default.tsv"), mode="rb")
317324
table = pd.read_csv(table_content, sep="\t")
318-
table = table[table.component_labels == 1]
325+
table = table[table["component_labels"].isin(component_list)]
319326

320327
# local
321328
table_name = f"{channel}_{seg_name.replace('_', '-')}_object-measures.tsv"

0 commit comments

Comments
 (0)