Skip to content

Commit

Permalink
Fixed Intensity name
Browse files Browse the repository at this point in the history
  • Loading branch information
janni.roebbecke committed Sep 13, 2024
1 parent 8a49a7b commit 2b05a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protzilla/importing/peptide_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def peptide_import(file_path, intensity_name, map_to_uniprot) -> dict:
pd.concat([id_df, intensity_df], axis=1),
id_vars=id_columns,
var_name="Sample",
value_name="Intensity",
value_name=peptide_intensity_name,
)

molten = molten.rename(columns={"Proteins": "Protein ID"})
ordered = molten[
["Sample", "Protein ID", "Sequence", "Intensity", "PEP"]
["Sample", "Protein ID", "Sequence", peptide_intensity_name, "PEP"]
]
ordered.dropna(subset=["Protein ID"], inplace=True)
ordered.sort_values(by=["Sample", "Protein ID"], ignore_index=True, inplace=True)
Expand Down

0 comments on commit 2b05a0b

Please sign in to comment.