Skip to content

Commit

Permalink
fixed missing protein columns #253
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Aug 4, 2024
1 parent 66e0f36 commit 6d66789
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oktoberfest/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def gen_lib(input_file: Union[str, Path]) -> Spectra:
"""
library_df = csv.read_file(input_file)
library_df.columns = library_df.columns.str.upper()
if "PROTEINS" not in library_df.obs.columns:
library_df.obs["PROTEINS"] = "unknown"
var_df = Spectra._gen_vars_df()
spec = Spectra(obs=library_df, var=var_df)

spec.var_names = var_df.index
return spec

Expand Down

0 comments on commit 6d66789

Please sign in to comment.