import subprocess
do1 = 'echo 9 | pdb2gmx -f camelid.pdb -o camelid_h2.pdb -p -water none'
subprocess.Popen(do1,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
do2 = 'echo 9 | pdb2gmx -f amylase.pdb -o amylase_h2.pdb -p -water none -ignh'
subprocess.Popen(do2,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
exp1 = 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/preps/golovin/progs/lib'
subprocess.Popen(exp1,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
exp2 = 'export PATH=${PATH}:/home/preps/golovin/progs/bin'
subprocess.Popen(exp2,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
do3 = 'mark_sur camelid_h2.pdb camelid_h_m.pdb'
subprocess.Popen(do3,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
do4 = 'mark_sur amylase_h2.pdb amylase_h_m.pdb'
subprocess.Popen(do4,shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
mark_sur размечает, какие атомы относятся к поверхности структур, а какие нет.
%%bash
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/preps/golovin/progs/lib
export PATH=${PATH}:/home/preps/golovin/progs/bin
zdock -R amylase_h_m.pdb -L camelid_h_m.pdb
%%bash
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/preps/golovin/progs/lib
export PATH=${PATH}:/home/preps/golovin/progs/bin
zrank zdock.out.cp 1 2000
! sort -n -k2 zdock.out.cp.zr.out | head
! head -14 zdock.out > top2.txt
%%bash
#mkdir predictions
cp ./zdock.out ./predictions/
cp amylase_h_m.pdb ./predictions/
cp camelid_h_m.pdb ./predictions/
cp /home/preps/golovin/progs/bin/create_lig ./predictions/
%%bash
cd ./predictions/
create.pl zdock.out
tops = [1590,1252,610,1436,1952,982,1284,852,679,1666]
Как видно из визуализации топ-5 результатов, zdock угадывает сайт связывания для антитела на амилазе. Точное положение, соответсвующее референсной структуре (зеленая), в топ-5 не находится.
from xmlrpclib import ServerProxy
from IPython.display import Image
Image(filename='../../public_html/term8/pr12-1.png')
Image(filename='../../public_html/term8/pr12-2.png')
Image(filename='../../public_html/term8/pr12-3.png')
Image(filename='../../public_html/term8/pr12-4.png')
Image(filename='../../public_html/term8/pr12-5.png')
Image(filename='../../public_html/term8/pr12-6.png')