wangjin2000 commited on
Commit
06ca46a
·
verified ·
1 Parent(s): 7cb8f96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -206,9 +206,11 @@ def predict_peptide(base_model_path, finetuned_model_path, input_seqs, peptide_l
206
 
207
  #combine target protein and peptide with 20 G amino acids.
208
  separator = 'G' * 20
209
- peptide_lp = results_df['Pseudo Perplexity'].idxmin() #Choosing the one with the lowest perplexity
210
  print("lowest perplesity:", peptide_lp)
211
-
 
 
212
  return results_df
213
 
214
  def suggest(option):
 
206
 
207
  #combine target protein and peptide with 20 G amino acids.
208
  separator = 'G' * 20
209
+ peptide_lp = results_df['Binder'][results_df['Pseudo Perplexity'].idxmin()] #Choosing the one with the lowest perplexity
210
  print("lowest perplesity:", peptide_lp)
211
+ PPC = input_seqs + separator + peptide_lp
212
+ print("Protein+peptide:", PPC)
213
+
214
  return results_df
215
 
216
  def suggest(option):