Skip to content

Commit

Permalink
Update parse_ion.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Nov 22, 2024
1 parent 9ce253a commit f4ec6cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions proteobench/io/parsing/parse_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit f4ec6cb

Please sign in to comment.