Skip to content

Commit

Permalink
add copy true to protein profile df
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarcsj committed Apr 3, 2024
1 parent 47e167f commit 69c3ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion directlfq/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def normalize_dataframe_between_samples(ion_dataframe):
return df_c_normed

def normalize_ion_profiles(protein_profile_df):
protein_profile_numpy = protein_profile_df.to_numpy()
protein_profile_numpy = protein_profile_df.to_numpy(copy = True)
sample2shift = get_normfacts(protein_profile_numpy)
df_normed = pd.DataFrame(apply_sampleshifts(protein_profile_numpy, sample2shift), index = protein_profile_df.index, columns = protein_profile_df.columns)
return df_normed
Expand Down

0 comments on commit 69c3ad0

Please sign in to comment.