输出体系的整个带电量:
measure sumweights $all weight charge

给PDB文件设置周期边界条件:
pbc set {54 54 24 } -all

将此晶胞内原子脱除周期性
pbc unwrap

显示晶胞边界
pbc box

体系总质量:
measure sumweights $all weight mass

体系总电荷:
measure sumweights $all weight charge

添加周期性水环境
package require solvate
solvate ubq.psf ubq.pdb -t 5 -o ubq wb
-t (override with any of the following)
-o (data will be written to output.psf/output.pdb)
添加离子中和多余电荷
autoionize -psf file.psf -pdb file.pdb [options]
可以直接使用VMD中extension>modeling>add ions的autoionize完成
TK console中选择全部原子,保存psf与pdb文件
参考:Autoionize Plugin
命令模式运行ubq.pgn
> vmd -dispdev text -e ubq.pgn
測量周期最大最小边界
set everyone [atomselect top all]
measure minmax $everyone
測量周期中心点
set everyone [atomselect top all]
measure center $everyone
測量质量中心
measure center $sel weight mass
位置移动
atomselect0 moveby {1 1 6} # 把所选原子向1,1,6向量方向和距离上移动
atomselect0 moveto { 3 6 5} # 把所选内容移动到3,6,5位置
原文:VMD的TK Console中的内置命令
设置resname/chain/resid
mol load pdb fileA.pdb
set sel [atomselect top "serial <=9"]
$sel set resname CD
$sel set chain X
$sel set resid 8
set all [atomselect top all]
$all writepdb fileB.pdb
refer the VMD Graphical Representations>Selections>Keyword for more values
top文件
IC A B C D [bond(AB)] [angle(ABC)] [dihedral(ABCD)] [angle(BCD)] [bond(CD)]
IC A B *C D [bond(AC)] [angle(BCA)] [improper(ABCD)] [angle(BCD)] [bond(CD)].
The * next to the C atom indicates that it is at the center of an improper angle definition. No * indicates that the 4 atoms do not have an improper topology.
Specifying IC’s is not necessary if you already have all the atoms in your PDB file. The entries are simply there
to have a way to create missing atoms from the positions of present ones.
参考:NAMD topology-tutorial
VMD键长单位
number in the “Value” field corresponds to the length of the bond in ?ngstroms.
reference:Using VMD - An Introductory Tutorial
psfgen命令
pdbalias residue HOH TIP3 #aliasing residue HOH to TIP3
pdbalias atom TIP3 O OH2 #aliasing residue TIP3 atom O to OH2
vmd中tk命令打开文件
mol new filename.psf #打开一个文件
mol addfile filename.pdb #打开另一个文件,并叠加到第一个文件结构上
最适分子数
Presently, the maximum number of atoms one can expect to realistically compute with high level quantum chemistry is approximately 120 atoms
平衡态模拟
常见的模拟思路是,先在NVT下约束住你的溶质(剂)做限制性模拟,这是一个升温的过程,当温度达到你的设定后, 接着做NPT模拟,此过程将调整体系的压强进而使体系密度收敛。
经过一段时间的平衡模拟,在确定系统弛豫已经完全消除之后,就可以开始取数据了。如何判断体系达到平衡,简单的讲可以通过以 下几种方式,一,看能量(势能,动能和总能)是否收敛;二,看系统的压强,密度等等是否收敛;三看系统的RMSD是否达到你能接受的范围,等等。
升温/降温控制
# IF Heating
reassignFreq 2000
reassignTemp 100
reassignIncr 1
reassignHold 300
#从100K升温到300K,每2000步升高1K

# IF Cooling
reassignFreq 2000
reassignTemp 300
reassignIncr -1
reassignHold 100
固定分子
all atoms with a value of 1 (or a number different of 0) in a predetermined column will be fixed; atoms with a value of 0 in the same column will not be affected.
load pdb file into the psf file in vmd
in TKcon
set allatoms [atomselect top all]
$allatoms set beta 0
set fixedatom [atomselect top "resid 1 and name CA"]
$fixedatom set beta 1
$allatoms writepdb fileName.ref
拉动原子
to set which atom is to be pulled (SMD atom).uses the occupancy column of the pdb file to distinguish it
set allatoms [atomselect top all]
$allatoms set occupancy 0
set smdatom [atomselect top "resid 76 and name CA"]
$smdatom set occupancy 1
$allatoms writepdb fileName.ref
牵拉方向
set smdpos [lindex [$smdatom get {x y z}] 0]
set fixedpos [lindex [$fixedatom get {x y z}] 0]
vecnorm [vecsub $smdpos $fixedpos]

VMD计算SASA(solvent-accessible surface area )

set all [atomselect top "all"]
set some [atomselect top "resid 1 to 5"]
measure sasa 1.4 $all -restrict $some -points sasapoints
foreach pt $sasapoints {
draw point $pt
}
以上可以在窗口中显示出1-5号氨基酸的溶剂可及表面,以point绘出。当然如果不需要浏览仅仅计算的话,只需要:
set all [atomselect top "all"]
set some [atomselect top "resid 1 to 5"]
measure sasa 1.4 $all -restrict $some
如果想看一下准不准可以算一下除了1-5号氨基酸的是多少
set someothers [atomselect top "not(resid 1 to 5)"]
measure sasa 1.4 $all -restrict $someothers
将两个值相加,看是否是
measure sasa 1.4 $all
得到的结果。

原文摘录自:关于溶剂可及表面积(Solvent Accessible Surface)- Biocheming
try VMD timeline Tool to calculate the change in SASA over time.
Load the molecule and trajectory and then go to:
Extensions -> Analysis -> Timeline.
SASA is one of the many parameters you can calculate in the Timeline window.
2014-9-10
原文摘录自:How to calculate solvent accessible surface (SASA)?-Uttam Pal
[笔记]VMD/NAMD命令/规则
此博文包含图片 (2013-10-10 16:18:42)
转载▼
标签:
vmd
namd
笔记
分类: 分子模拟
添加周期性水环境
package require solvate
solvate ubq.psf ubq.pdb -t 5 -o ubq wb
-t (override with any of the following)
-o (data will be written to output.psf/output.pdb)
添加离子中和多余电荷
autoionize -psf file.psf -pdb file.pdb [options]
可以直接使用VMD中extension>modeling>add ions的autoionize完成
TK console中选择全部原子,保存psf与pdb文件
参考:Autoionize Plugin
命令模式运行ubq.pgn
> vmd -dispdev text -e ubq.pgn
測量周期最大最小边界
set everyone [atomselect top all]
measure minmax $everyone
測量周期中心点
set everyone [atomselect top all]
measure center $everyone
測量质量中心
measure center $sel weight mass
位置移动
atomselect0 moveby {1 1 6} # 把所选原子向1,1,6向量方向和距离上移动
atomselect0 moveto { 3 6 5} # 把所选内容移动到3,6,5位置
原文:VMD的TK Console中的内置命令
设置resname/chain/resid
mol load pdb fileA.pdb
set sel [atomselect top "serial <=9"]
$sel set resname CD
$sel set chain X
$sel set resid 8
set all [atomselect top all]
$all writepdb fileB.pdb
refer the VMD Graphical Representations>Selections>Keyword for more values
top文件
IC A B C D [bond(AB)] [angle(ABC)] [dihedral(ABCD)] [angle(BCD)] [bond(CD)]
IC A B *C D [bond(AC)] [angle(BCA)] [improper(ABCD)] [angle(BCD)] [bond(CD)].
The * next to the C atom indicates that it is at the center of an improper angle definition. No * indicates that the 4 atoms do not have an improper topology.
Specifying IC’s is not necessary if you already have all the atoms in your PDB file. The entries are simply there
to have a way to create missing atoms from the positions of present ones.
参考:NAMD topology-tutorial
VMD键长单位
number in the “Value” field corresponds to the length of the bond in ?ngstroms.
reference:Using VMD - An Introductory Tutorial
psfgen命令
pdbalias residue HOH TIP3 #aliasing residue HOH to TIP3
pdbalias atom TIP3 O OH2 #aliasing residue TIP3 atom O to OH2
vmd中tk命令打开文件
mol new filename.psf #打开一个文件
mol addfile filename.pdb #打开另一个文件,并叠加到第一个文件结构上
最适分子数
Presently, the maximum number of atoms one can expect to realistically compute with high level quantum chemistry is approximately 120 atoms
平衡态模拟
常见的模拟思路是,先在NVT下约束住你的溶质(剂)做限制性模拟,这是一个升温的过程,当温度达到你的设定后, 接着做NPT模拟,此过程将调整体系的压强进而使体系密度收敛。
经过一段时间的平衡模拟,在确定系统弛豫已经完全消除之后,就可以开始取数据了。如何判断体系达到平衡,简单的讲可以通过以 下几种方式,一,看能量(势能,动能和总能)是否收敛;二,看系统的压强,密度等等是否收敛;三看系统的RMSD是否达到你能接受的范围,等等。
升温/降温控制
# IF Heating
reassignFreq 2000
reassignTemp 100
reassignIncr 1
reassignHold 300
#从100K升温到300K,每2000步升高1K

# IF Cooling
reassignFreq 2000
reassignTemp 300
reassignIncr -1
reassignHold 100
固定分子
all atoms with a value of 1 (or a number different of 0) in a predetermined column will be fixed; atoms with a value of 0 in the same column will not be affected.
load pdb file into the psf file in vmd
in TKcon
set allatoms [atomselect top all]
$allatoms set beta 0
set fixedatom [atomselect top "resid 1 and name CA"]
$fixedatom set beta 1
$allatoms writepdb fileName.ref
拉动原子
to set which atom is to be pulled (SMD atom).uses the occupancy column of the pdb file to distinguish it
set allatoms [atomselect top all]
$allatoms set occupancy 0
set smdatom [atomselect top "resid 76 and name CA"]
$smdatom set occupancy 1
$allatoms writepdb fileName.ref
牵拉方向
set smdpos [lindex [$smdatom get {x y z}] 0]
set fixedpos [lindex [$fixedatom get {x y z}] 0]
vecnorm [vecsub $smdpos $fixedpos]
run a NAMD simulation
namd2 +p[procs] configfile > outfile
力场中二面角倒序正序区别
软件里的二面角有正负是得考虑4号原子在123号原子平面的哪一侧,举MS里二面角的来说,按顺序点1234共4个原子,二面角指的是123平面和234 平面的二面角,沿着23的轴看过去,1号原子在4号原子的逆时针方向(左手边),则取正值,反之取负值;绝对值仍在[0,180]。
原文摘录自:二面角和扭转角区别
Reversing the atoms in a proper dihedral does not have any mathematical or practical consequences. Conversely, the ordering of the atoms is very important for improper dihedrals.
原文摘录自:Parameters for a Protein-RNA covalent bond

力场参数图示
[笔记]VMD/NAMD命令/规则2014-06-18
图片来源:Brève introduction à la mécanique (MM) et à la dynamique moléculaire (DM)

improper
dihedral

By convention, the first atom of an improper
dihedral (type A-X-X-B or A-B-C-D) is usually the central atom. This had
been a general rule in the past.

2014-06-19

原文摘录自:CHARMM c32b2 parmfile.doc
拓扑文件AUTOGENERATE ANGLES DIHEDRAL
AUTOgenerate default options to be used when building a sturcture.AUTO ANGLes specifies that all possible angles and DIHEdral specifies that all possible dihedral angles be generated when building a structure. If these options are not included the angles and/or dihedrals must be listed explicitly in the topology file
2014-06-19
原文转自:CHARMM c38b1 rtop.doc

namd开始NPT计算过程报错Periodic cell has become too small for original patch grid解决方法
I have a different approach to fixing this problem. I believe that the underlying cause of this error is that the system is resizing too quickly (due to the system pressure being far from the specified pressure). To slow the resizing down I increase langevinPistonPeriod to 1000 and langevinPistonDecay to 500 for a short time when I start the NPT simulation, and then switch to the normal values of 100 and 50.

For example, in your case I would do one input file for 100 ps with a constraintscaling of 10, langevinPistonPeriod of 1000, and a langevinPistonDecay of 500. Then I would load the restart files into a new simulation and proceed as you were above. Also, by restarting the simulation you are forcing NAMD to re-assign the patches, which will help prevent this error.
2014-08-26
原文摘录自:Re: Periodic cell has become too small for original patch grid!
FATAL ERROR: Periodic cell has become too small for original patch grid!
问题出现在nvt计算完成后第一次进行npt的时候.通过在namd的邮件列表寻找,最后发现是周期性盒子设置的时候四舍五入数值,造成盒子在npt计算 过程中溶剂环境密度过小(盒子体积过大,而分子总数一定,最终水溶液密度过低)。解决方法,周期盒子大小不能直接四舍五入,要考虑到盒子体积与分子总数得 到溶液的密度是否恰当好处。改用该方法后,顺利计算,为提示错误。
2014-9-10
该内容原创

计算namd体系密度
首先计算体系的质量,然后根据namd输出的体积,两者相除即可。过程如下:
例如:
C 11
H 1596
O 790
N 2
上面表示的是每种原子的个数
则mass=(11*12+1596*1+790*16+2*14)/NA 单位为克。
NA为阿伏伽德罗常数:6.02214129(27)×1023
那么密度为mass/V
2014-08-26
原文摘录自:heating过程中水盒子形状发生变化

VMD计算SASA(solvent-accessible surface area )
控制台下用命令即可得出:
set all [atomselect top "all"]
set some [atomselect top "resid 1 to 5"]
measure sasa 1.4 $all -restrict $some -points sasapoints
foreach pt $sasapoints {
draw point $pt
}
以上可以在窗口中显示出1-5号氨基酸的溶剂可及表面,以point绘出。当然如果不需要浏览仅仅计算的话,只需要:
set all [atomselect top "all"]
set some [atomselect top "resid 1 to 5"]
measure sasa 1.4 $all -restrict $some
如果想看一下准不准可以算一下除了1-5号氨基酸的是多少
set someothers [atomselect top "not(resid 1 to 5)"]
measure sasa 1.4 $all -restrict $someothers
将两个值相加,看是否是
measure sasa 1.4 $all
得到的结果。
2014-9-10
原文摘录自:关于溶剂可及表面积(Solvent Accessible Surface)- Biocheming
try VMD timeline Tool to calculate the change in SASA over time.
Load the molecule and trajectory and then go to:
Extensions -> Analysis -> Timeline.
SASA is one of the many parameters you can calculate in the Timeline window.
2014-9-10

VMDNAMD命令规则(转载)的更多相关文章

  1. linux 命令总结(转载)

    linux 命令总结(转载) 1. 永久更改ip ifconfig eth0 新ip 然后编辑/etc/sysconfig/network-scripts/ifcfg-eth0,修改ip 2.从Lin ...

  2. Linux下Setuid命令! 转载

    Linux下Setuid命令! 转载  在Linux系统中每个普通用户都可以更改自己的密码,这是合理的设置. 问题是:用户的信息保存在文件/etc/passwd中,用户的密码保存在文件/etc/sha ...

  3. c# 第8节 变量、变量名命令规则、作用域、@的作用

    本节内容: 1:变量 2:变量名命令规则 3:常量 4:变量和常量的作用域 5:@的作用 1:变量是什么? 计算即中存储变量的也是三步骤: 实例: 2:变量命令规则 练习: 3.常量 实现: 4:变量 ...

  4. Linux必学的60个命令【转载】

    Linux提供了大量的命令,利用它可以有效地完成大量的工 作,如磁盘操作.文件存  [转载地址]http://blog.chinaunix.net/uid-16728139-id-3154272.ht ...

  5. WINDOW的cmd的命令【转载】

    转载地址:https://zhidao.baidu.com/question/583956458.htmlwinver---------检查windows版本 wmimgmt.msc----打开win ...

  6. liunx 的 grep命令(转载)

    简介 grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它 ...

  7. Linux系统常用命令 __转载的

    1.登录linux系统命令:login 用户名   密码: 2.注销linux系统命令:logout ; 3.在linux系统中进入windows系统(图形界面)命令:Start x; 4.关闭lin ...

  8. 比较全面的gdb调试命令 (转载)

    转自http://blog.csdn.net/dadalan/article/details/3758025 用GDB调试程序 GDB是一个强大的命令行调试工具.大家知道命令行的强大就是在于,其可以形 ...

  9. linux chgrp命令【转载】

    在lunix系统里,文件或目录的权限的掌控以拥有者及所诉群组来管理.可以使用chgrp指令取变更文件与目录所属群组,这种方式采用群组名称或群组识别码都可以.Chgrp命令就是change group的 ...

随机推荐

  1. Ubuntu Linux markdown编辑工具 typora 安装

    Typora简介 Typora是一款轻便简洁的Markdown编辑器,支持即时渲染技术,这也是与其他Markdown编辑器最显著的区别.即时渲染使得你写Markdown就想是写Word文档一样流畅自如 ...

  2. 配置mongoDB的错误

    1,将启动配置到服务的时候没有反应,后来发现没有用管理员模式打开shell命令,所以没有反应. 2,用管理员模式的时候报错 格式问题,将由空格的路径用“”包住即可 3.启动的时候报错windows不能 ...

  3. PHP 超级全局变量讲解

    PHP 超级全局变量 超级全局变量在PHP 4.1.0之后被启用, 是PHP系统中自带的变量,在一个脚本的全部作用域中都可用. PHP 超级全局变量 PHP中预定义了几个超级全局变量(superglo ...

  4. PHP asin() 函数

    实例 返回不同数的反正弦: <?phpecho(asin(0.64) . "<br>");echo(asin(-0.4) . "<br>&q ...

  5. 7.12 NOI模拟赛 积性函数求和 数论基础变换 莫比乌斯反演

    神题! 一眼powerful number 复习了一下+推半天. 可以发现G函数只能为\(\sum_{d}[d|x]d\) 不断的推 可以发现最后需要求很多块G函数的前缀和 发现只有\(\sqrt(n ...

  6. 剑指 Offer 52. 两个链表的第一个公共节点

    题目链接 题目描述: 我的题解: 方法一:双指针法 思路分析: 声明两个指针p1,p2 分别指向链表A.链表B. 然后分别同时逐结点遍历 当 p1 到达链表 headA 的末尾时,重新定位到链表 he ...

  7. 解Bug之路-Nginx 502 Bad Gateway

    解Bug之路-Nginx 502 Bad Gateway 前言 事实证明,读过Linux内核源码确实有很大的好处,尤其在处理问题的时刻.当你看到报错的那一瞬间,就能把现象/原因/以及解决方案一股脑的在 ...

  8. Spring 方法替换 了解一下

    其实说简单的就是一个A   Bean 在执行本方法的时候并不执行,而是调用另一个B    Bean方法 要求B  implements MethodReplacer @Override public ...

  9. JavaScript动画实例:炸开的小球

    1.炸开的小球 定义一个小球对象类Ball,它有6个属性:圆心坐标(x,y).小球半径radius.填充颜色color.圆心坐标水平方向的变化量speedX.圆心坐标垂直方向的变化量speedY. B ...

  10. python7.4邮件发送