Skip to content

Commit

Permalink
#179 use var instead of magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jalew188 committed Jul 2, 2024
1 parent ca2ca32 commit fc0174e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peptdeep/hla/hla_class1.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def _prepare_train_data_df(self,
precursor_df['nAA'] = precursor_df.sequence.str.len()
precursor_df.drop(
index=precursor_df[
(precursor_df.nAA<8)|(precursor_df.nAA>14)
(precursor_df.nAA<self.min_peptide_length)
|(precursor_df.nAA>self.max_peptide_length)
].index,
inplace=True,
)
Expand Down

0 comments on commit fc0174e

Please sign in to comment.