Advertisement
LuciaPrieto

Untitled

Jun 16th, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1.     from bioservices import PSICQUIC
  2.    
  3.     inters = []
  4.    
  5.     for p in prots:
  6.         identif = 'identifier:' + str(p)
  7.    
  8.        
  9.         if i == 3000 or i == 6000 or i == 9000:
  10.             time.sleep(7)
  11.             #Se utliza la función time.sleep para detener unos
  12.             #segundos el proceso y no saturar IntAct
  13.        
  14.         s = PSICQUIC(verbose = False)
  15.         q = s.query("intact", identif, "tab25")
  16.        
  17.        
  18.         if q!=[['']]:
  19.            
  20.             for i in range(len(q)):
  21.                
  22.                 idA = q[i][0]
  23.                 idA = idA[10:len(idA)]
  24.  
  25.                 idB = q[i][1]
  26.                 idB = idB[10:len(idB)]
  27.  
  28.                 score = q[i][14]
  29.                 score = score[(len(score)-4):len(score)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement