autodataming的个人博客分享 http://blog.sciencenet.cn/u/autodataming

博文

批量统计配体和受体氢键的信息

已有 3013 次阅读 2013-10-11 09:41 |系统分类:科研笔记| 信息, 统计, 氢键

 

背景:

在虚拟筛选完以后,我们需要分析配体和受体的相互作用情况

在这些相互作用中,氢键的相互作用又显得尤为重要

记录配体的每个构象和受体的氢键情况

那个氨基酸残基上的那个原子和配体中那个原子形成氢键,距离是多少

目前没有统计角度,因为我好像在哪里看到过对接过程中H原子是动态的

 

方法:

recordHbondbatch.sh

要求是linux系统

 

=================================


#!/bin/sh


#function: list the  h bond interaction between receptor and ligand
#author: chen zhaoqiang
#contact: 744891290@qq.com
#usage: ./recordHbondbatch.sh -liganddir xxx -receptor xxx.pdb -output hbondlog
#usage: ./recordHbondbatct.sh >>hbondlog
#some environment variable should be set,for example recordHbond.py
#system : linux

if [ $# -lt 6 ];then
   echo "#usage: ./recordHbondbatch.sh -liganddir xxx -receptor xxx.pdb -output hbondlog"
   ligdir="ligand"
   receptor="4hbk17_nadp_loop_prep_refine.pdb"
   output="hbondlog"
else
   ligdir=$2
   receptor=$4
   output=$6

fi



##traverse files ligdir
current=$(pwd)
#echo $current


#absolute path is very useful
tempath=$current"/ligand/tempp"
outputpath=$current"/tempp"
scriptpath=$current"/recordHbond.py"
receptorpath=$current"/"$receptor
ligdirpath=$current"/"$ligdir

cd $ligdirpath
if [ -d tempp ];then
       rm -fr tempp
fi
for file in $(ls );
do
   #echo $file
   if [ -d tempp ];then
       rm -fr tempp
       mkdir tempp
   else        
       mkdir tempp
   fi
   cd $tempath    
   
   #pwd
   #echo $file
   cp ../$file ./
   splitpdbs.pl -f $file
   rm $file
   for conformation in $( ls) ;
   do
       cp $receptorpath ./
   
       
       echo "$conformation $receptor"
       
       recordHbond.py -- $conformation $receptor
       rm $receptor
   done


   cd ..


done
   
==================================================

 

注意事项:

http://www.pymolwiki.org/index.php/Find_pairs

需要限制selection 为N O S原子

也就是把氢键限制为N O S原子之间的关系

 

 

粗糙的关系

recordHbondbatch.sh











https://blog.sciencenet.cn/blog-950202-731945.html

上一篇:pdb文件的分割脚本splitpdbs.pl
下一篇:autodock的受体的pdbqt格式
收藏 IP: 202.127.19.*| 热度|

1 刘世恩

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-28 11:44

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部