Skip to content

Commit 7d600eb

Browse files
committed
Updated synapse measurement
1 parent 74451d7 commit 7d600eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/measurements/measure_synapses.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ def check_project(plot=False, save_ihc_table=False):
2020
sources = info["sources"]
2121

2222
# Load the synapse table.
23-
syn = sources["synapse_v3"]["spots"]
23+
syn = sources["synapse_v3_ihc_v4"]["spots"]
2424
rel_path = syn["tableData"]["tsv"]["relativePath"]
2525
table_content = s3.open(os.path.join(BUCKET_NAME, cochlea, rel_path, "default.tsv"), mode="rb")
2626
syn_table = pd.read_csv(table_content, sep="\t")
2727
max_dist = syn_table.distance_to_ihc.max()
2828

2929
# Load the corresponding ihc table.
30-
ihc = sources["IHC_v2"]["segmentation"]
30+
ihc = sources["IHC_v4"]["segmentation"]
3131
rel_path = ihc["tableData"]["tsv"]["relativePath"]
3232
table_content = s3.open(os.path.join(BUCKET_NAME, cochlea, rel_path, "default.tsv"), mode="rb")
3333
ihc_table = pd.read_csv(table_content, sep="\t")
3434

3535
# Keep only the synapses that were matched to a valid IHC.
36-
component_id = 2 if cochlea == "M_LR_000226_R" else 1
36+
component_id = 1
3737
valid_ihcs = ihc_table.label_id[ihc_table.component_labels == component_id].values.astype("int")
3838

3939
valid_syn_table = syn_table[syn_table.matched_ihc.isin(valid_ihcs)]

0 commit comments

Comments
 (0)