Skip to content

Commit

Permalink
Fix Benchmark (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffquinn-msk authored Dec 6, 2024
1 parent 602d1e4 commit a783d16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/nuc2seg/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ def get_jaccard_truth_segment(row):
method_to_truth_transcripts["truth_segment_id"] = method_to_truth_transcripts[
"truth_segment_id"
].astype(int)
method_to_truth_transcripts["method_segment_id"] = method_to_truth_transcripts[
"method_segment_id"
].astype(int)

method_to_truth_transcripts_agg = method_to_truth_transcripts.groupby(
"method_segment_id"
Expand Down Expand Up @@ -637,7 +640,11 @@ def get_jaccard_truth_segment(row):
left_on="truth_segment_id",
right_on="truth_segment_id",
how="left",
).merge(
)

results["method_segment_id"] = results["method_segment_id"].fillna(-1).astype(int)

results = results.merge(
segmentation_errors[
[
"n_confused_transcripts",
Expand Down

0 comments on commit a783d16

Please sign in to comment.