Skip to content

Commit

Permalink
validate_peptides.py -> spectrumai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Apr 24, 2024
1 parent 6a55e16 commit a9607af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypgatk/proteogenomics/blast_get_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_blast_parameters(self, variable: str, default_value):
variable in self.get_default_parameters()[self.CONFIG_KEY_BlastGetPosition]:
value_return = self.get_default_parameters()[self.CONFIG_KEY_BlastGetPosition][variable]
return value_return

def _blast_canonical(self, df):
seq_set = set(df["sequence"].to_list())

Expand Down Expand Up @@ -176,9 +176,9 @@ def blast(self, input_psm_to_blast, output_psm):

if len(psm_to_findpos) > 0:
psm_to_findpos = psm_to_findpos.explode("position", ignore_index=True)
psm_to_findpos["variant"] = psm_to_findpos["position"].apply(lambda x : x[1])
psm_to_findpos["protein"] = psm_to_findpos["position"].apply(lambda x : x[2])
psm_to_findpos["position"] = psm_to_findpos["position"].apply(lambda x : x[0])
psm_to_findpos["variant"] = psm_to_findpos["position"].apply(lambda x: x[1])
psm_to_findpos["protein"] = psm_to_findpos["position"].apply(lambda x: x[2])
psm_to_findpos["position"] = psm_to_findpos["position"].apply(lambda x: x[0])

all_psm_out = pd.concat([first_filter, second_filter, non_filter, psm_to_findpos], axis=0, join='outer')
all_psm_out = all_psm_out.sort_values("usi")
Expand Down

0 comments on commit a9607af

Please sign in to comment.