From f4ec6cb341782c266deda9e60ebb39e1121a70c1 Mon Sep 17 00:00:00 2001 From: RobbinBouwmeester Date: Fri, 22 Nov 2024 12:42:23 +0100 Subject: [PATCH] Update parse_ion.py --- proteobench/io/parsing/parse_ion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proteobench/io/parsing/parse_ion.py b/proteobench/io/parsing/parse_ion.py index c7e52ec4..80dfcabd 100644 --- a/proteobench/io/parsing/parse_ion.py +++ b/proteobench/io/parsing/parse_ion.py @@ -13,8 +13,7 @@ def load_input_file(input_csv: str, input_format: str) -> pd.DataFrame: if input_format == "MaxQuant": input_data_frame = pd.read_csv(input_csv, sep="\t", low_memory=False) elif input_format == "AlphaPept": - input_data_frame = pd.read_csv(input_csv, low_memory=False) - input_data_frame["charge"] = input_data_frame["charge"].astype(int) + input_data_frame = pd.read_csv(input_csv, low_memory=False, dtype={"charge": int}) elif input_format == "Sage": input_data_frame = pd.read_csv(input_csv, sep="\t", low_memory=False) elif input_format == "FragPipe":