From ce410d5b24cc58aa57fc7aae34dd74f82a0c4bd0 Mon Sep 17 00:00:00 2001 From: KyobinKang <41205498+KyobinKang@users.noreply.github.com> Date: Mon, 24 Nov 2025 17:25:22 +0900 Subject: [PATCH] Update msdial5_formatter.py As I understand, 'scan = int(record["Alignment ID"]) +1 ' was written because the early version MSDIAL 5 counted their Alignment ID from 0. However, now its GNPS2 export module starts Alignment ID from 1, so this is making a bug. --- bin/scripts/msdial5_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scripts/msdial5_formatter.py b/bin/scripts/msdial5_formatter.py index f5f152d..e7cd3f2 100755 --- a/bin/scripts/msdial5_formatter.py +++ b/bin/scripts/msdial5_formatter.py @@ -25,7 +25,7 @@ def convert_to_feature_csv(input_filename, output_filename): output_records = [] for record in input_records: - scan = int(record["Alignment ID"]) + 1 + scan = int(record["Alignment ID"]) mz = record["Average Mz"] rt = record["Average Rt(min)"]