diff --git a/VERSION b/VERSION index 295e803..1273b8a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -'0.4.0' +'0.4.1' diff --git a/aux/sompy_summary_of_summaries.py b/aux/sompy_summary_of_summaries.py index 8e1d5fb..452ee4b 100644 --- a/aux/sompy_summary_of_summaries.py +++ b/aux/sompy_summary_of_summaries.py @@ -69,9 +69,9 @@ def f1_score(recall: float, precision:float) -> float: # | OUTPUT | # ++++++++++++++ assert(header.rstrip().split(",")[9] == "recall") -recall_field_idx = 9 +recall_field_idx = 9 - 2 # because in the line buffer we chopped 2 indices to only have numeric fields assert(header.rstrip().split(",")[13] == "precision") -precision_field_idx = 13 +precision_field_idx = 13 - 2 # because in the line buffer we chopped 2 indices to only have numeric fields print(header4outputfile(header)) print("0,indels," + ','.join(str(x) for x in indel_lines_avg) + ',' + str(f1_score(indel_lines_avg[recall_field_idx], indel_lines_avg[precision_field_idx])) + ",-,-") print("1,SNVs," + ','.join(str(x) for x in snv_lines_avg) + ',' + str(f1_score(snv_lines_avg[recall_field_idx], snv_lines_avg[precision_field_idx])) + ",-,-") \ No newline at end of file