Skip to content

Commit

Permalink
try copying after transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarcsj committed Apr 3, 2024
1 parent 03e1088 commit 442d6d3
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 @@ -314,7 +314,7 @@ def __init__(self, complete_dataframe, num_samples_quadratic):

class NormalizationManagerSamplesOnSelectedProteins(NormalizationManager):
def __init__(self, complete_dataframe, num_samples_quadratic, selected_proteins_file = None):
complete_dataframe = complete_dataframe.T #the samples to shift are in each row, therefore the df needs to be transposed
complete_dataframe = complete_dataframe.T.copy() #the samples to shift are in each row, therefore the df needs to be transposed
super().__init__(complete_dataframe, num_samples_quadratic)
self.normalization_function = self._normalization_function
self._selected_proteins_file = selected_proteins_file
Expand Down

0 comments on commit 442d6d3

Please sign in to comment.