cafierom commited on
Commit
a271c43
·
verified ·
1 Parent(s): 6e634b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -399,6 +399,24 @@ graph = builder.compile()
399
 
400
  @spaces.GPU
401
  def DockAgent(task, smiles, protein): # add variables as needed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
402
 
403
  #if Similars_image.png exists, remove it
404
  if os.path.exists('Similars_image.png'):
 
399
 
400
  @spaces.GPU
401
  def DockAgent(task, smiles, protein): # add variables as needed
402
+ '''
403
+ This Agent performs one task:
404
+ 1. Docks a molecule in a protein based on the molecules's SMILES string and the protein name.
405
+
406
+ This docking is performed with AutoDockVina, through the DockString interface. Only a limited number of proteins are
407
+ available, and they are IGF1R, JAK2, KIT, LCK, MAPK14, MAPKAPK2, MET, PTK2, PTPN1, SRC, ABL1, AKT1, AKT2, CDK2, CSF1R,
408
+ EGFR, KDR, MAPK1, FGFR1, ROCK1, MAP2K1, PLK1, HSD11B1, PARP1, PDE5A, PTGS2, ACHE, MAOB, CA2, GBA, HMGCR, NOS1, REN,
409
+ DHFR, ESR1, ESR2, NR3C1, PGR, PPARA, PPARD, PPARG, AR, THRB, ADAM17, F10, F2, BACE1, CASP3, MMP13, DPP4, ADRB1, ADRB2,
410
+ DRD2, DRD3, ADORA2A, CYP2C9, CYP3A4, and HSP90AA1.
411
+
412
+ Args:
413
+ task: the specific task to perform
414
+ smiles: the smiles string of the molecule to be studied
415
+ protein: the name of the protein for docking
416
+ Returns:
417
+ replies[-1]: a text string containing the requested information.
418
+ img: a blank image.
419
+ '''
420
 
421
  #if Similars_image.png exists, remove it
422
  if os.path.exists('Similars_image.png'):