AMBER: CPPTRAJ Tutorial C0
CPPTRAJ作为PTRAJ的继任者,拥有比PTRAJ更强大的功能,本教程会简要的介绍CPPTRAJ的用法及注意事项。
需要的文件:
Loading a Topology and Trajectory
使用cpptraj命令可以打开cpptraj,log文件可以在cpptraj.log中找到。
$ cpptraj
CPPTRAJ: Trajectory Analysis. V16.
___ ___ ___ ___
| \/ | \/ | \/ |
_|_/\_|_/\_|_/\_|_ | Date/time: // ::
| Available memory: 393.146 MB >
# 载入拓扑文件(topology file)
> parm trpzip2.ff10.mbondi.parm7
# 可以使用list parm命令查看刚刚载入的拓扑文件,详细信息使用parminfo命令查看
> list parm
PARAMETER FILES:
: 'trpzip2.ff10.mbondi.parm7', atoms, res, box: None, mol
> parminfo
Topology trpzip2.ff10.mbondi.parm7 contains atoms.
residues.
molecules.
bonds ( to H, other).
angles ( with H, other).
dihedrals ( with H, other).
Box: None
GB radii set: modified Bondi radii (mbondi)
# 载入NetCDF格式的轨迹文件(trajetory file)
>trajin trpzip2.gb.nc
Reading 'trpzip2.gb.nc' as Amber NetCDF
# 同样,可以使用list trajin命令查看刚刚载入的轨迹文件
> list trajin
INPUT TRAJECTORIES:
: 'trpzip2.gb.nc' is a NetCDF AMBER trajectory, Parm trpzip2.ff10.mbondi.parm7 (reading of )
Coordinate processing will occur on frames.
Specifying an Action
# 打印帮助信息
> help distance
[<name>] <mask1> <mask2> [out <filename>] [geom] [noimage] [type noe]
Options for 'type noe':
[bound <lower> bound <upper>] [rexp <expected>] [noe_strong] [noe_medium] [noe_weak]
Calculate distance between atoms in <mask1> and <mask2> > resinfo
#Res Name First Last Natom #Orig
SER
TRP
THR
TRP
GLU
ASN
GLY
LYS
TRP
THR
TRP
LYS
NHE 13
> atominfo :
#Atom Name #Res Name #Mol Type Charge Mass GBradius El
N NHE N -0.4630 14.0100 1.5500 N
HN1 NHE H 0.2315 1.0080 1.3000 H
HN2 NHE H 0.2315 1.0080 1.3000 H
> distance end-to-end : : out dist-end-to-end.agr
DISTANCE: : to :, center of mass.
> list actions
ACTIONS:
: [distance end-to-end : : out dist-end-to-end.agr]
Processing the Trajectory
# 前面的action操作是不会执行的,需要使用run命令或者go命令来执行,执行内容包括导入拓扑文件及轨迹文件,根据action (distance)处理轨迹文件,产生DATASETS及结果文件DATAFILES(dist-end-to-end.agr)等。
> run
---------- RUN BEGIN ------------------------------------------------- PARAMETER FILES:
: 'trpzip2.ff10.mbondi.parm7', atoms, res, box: None, mol, frames INPUT TRAJECTORIES:
: 'trpzip2.gb.nc' is a NetCDF AMBER trajectory, Parm trpzip2.ff10.mbondi.parm7 (reading of )
Coordinate processing will occur on frames.
TIME: Run Initialization took 0.0000 seconds.
BEGIN TRAJECTORY PROCESSING:
.....................................................
ACTION SETUP FOR PARM 'trpzip2.ff10.mbondi.parm7' ( actions):
: [distance end-to-end : : out dist-end-to-end.agr]
: ( atoms) to : ( atoms), imaging off.
----- trpzip2.gb.nc (-, ) -----
% % % % % % % % % % % Complete.
Read frames and processed frames.
TIME: Trajectory processing: 0.0094 s
TIME: Avg. throughput= 127372.9982 frames / second. ACTION OUTPUT:
DATASETS:
data set:
end-to-end "end-to-end" (double, distance), size is DATAFILES:
dist-end-to-end.agr (Grace File): end-to-end
---------- RUN END --------------------------------------------------- # 可以直接在CPPTRAJ里执行xmgrace查看结果
> xmgrace dist-end-to-end.agr
...
Working With Data Sets
# 我们可以对前面产生的DATASET进行处理,如前面产生的”end-to-end“,我们可以使用writedata命令把数据写成标准列格式。
> writedata end-to-end.dat end-to-end
end-to-end # 同样,我们可以直接在CPPTRAJ中使用linux的head命令,对数据进行查看。
> head end-to-end.dat
#Frame end-to-end
6.4251
5.9250
6.7926
6.3125
5.7580
5.4389
6.1086
6.5588
5.6949 # 最后我们可以使用quit命令退出CPPTRAJ。
>quit
TIME: Total execution time: 131.2112 seconds.
--------------------------------------------------------------------------------
To cite CPPTRAJ use:
Daniel R. Roe and Thomas E. Cheatham, III, "PTRAJ and CPPTRAJ: Software for
Processing and Analysis of Molecular Dynamics Trajectory Data". J. Chem.
Theory Comput., , (), pp -.
Running in Batch Mode
# 与tleap一样,我们也可以使用batch模式,直接提交cpptraj的参数文件。
# cpptraj.in parm trpzip2.ff10.mbondi.parm7
trajin trpzip2.gb.nc
distance end-to-end : : out dist-end-to-end.agr
run
writedata end-to-end.dat end-to-end
运行CPPTRAJ:
$ cpptraj -i cpptraj.in
原文链接:
http://ambermd.org/tutorials/analysis/tutorial0/index.htm
AMBER: CPPTRAJ Tutorial C0的更多相关文章
- Amber TUTORIAL B1: Simulating a DNA polyA-polyT Decamer
Section 1: Introduction The input files required (using their default file names): prmtop - a file c ...
- Amber TUTORIAL 4b: Using Antechamber to Create LEaP Input Files for Simulating Sustiva (efavirenz)-RT complex using the General Amber Force Field (GAFF)
sustiva.pdb PDB: 1FKO Create parameter and coordinate files for Sustiva 1. 加氢: $ reduce sustiva.pdb ...
- Amber TUTORIAL B5: Simulating the Green Fluorescent Protein
Section 1: Preparing the PDB file 1EMA是本次教程所用的pdb,可以在PDB数据库下载. pdb4amber -i 1EMA.pdb -o gfp.pdb --dr ...
- Computer Vision_18_Image Stitching: Image Alignment and Stitching A Tutorial——2006(book)
此部分是计算机视觉部分,主要侧重在底层特征提取,视频分析,跟踪,目标检测和识别方面等方面.对于自己不太熟悉的领域比如摄像机标定和立体视觉,仅仅列出上google上引用次数比较多的文献.有一些刚刚出版的 ...
- [翻译+山寨]Hangfire Highlighter Tutorial
前言 Hangfire是一个开源且商业免费使用的工具函数库.可以让你非常容易地在ASP.NET应用(也可以不在ASP.NET应用)中执行多种类型的后台任务,而无需自行定制开发和管理基于Windows ...
- Django 1.7 Tutorial 学习笔记
官方教程在这里 : Here 写在前面的废话:)) 以前学习新东西,第一想到的是找本入门教程,按照书上做一遍.现在看了各种网上的入门教程后,我觉得还是看官方Tutorial靠谱.书的弊端一说一大推 本 ...
- thrift 服务端linux C ++ 与客户端 windows python 环境配置(thrift 自带tutorial为例)
关于Thrift文档化的确是做的不好.摸索了很久才终于把跨linux与windows跨C++与python语言的配置成功完成.以下是步骤: 1) Linux下环境配置 ...
- Hive Tutorial(上)(Hive 入门指导)
用户指导 Hive 指导 Hive指导 概念 Hive是什么 Hive不是什么 获得和开始 数据单元 类型系统 内置操作符和方法 语言性能 用法和例子(在<下>里面) 概念 Hive是什么 ...
- Home / Python MySQL Tutorial / Calling MySQL Stored Procedures in Python Calling MySQL Stored Procedures in Python
f you are not familiar with MySQL stored procedures or want to review it as a refresher, you can fol ...
随机推荐
- python之验证码识别 特征向量提取和余弦相似性比较
0.目录 1.参考2.没事画个流程图3.完整代码4.改进方向 1.参考 https://en.wikipedia.org/wiki/Cosine_similarity https://zh.wikip ...
- Python_queue单项队列
队列(queue),实现程序间的松耦合 队列的三种类: class queue.Queue(maxsize)# 先进先出, maxsize 指定队列长度,线程安全的清况下,可以放入实例,对实例进行传输 ...
- Android-XML
Android-XML XML文件: <?xml version="1.0" encoding="utf-8"?> <books> &l ...
- 对Spring运用的一些思考
最近使用spring总是遇到启动时启动不起来,或者启动起来一会就服务就关闭掉. 停下来想想不是spring不好复杂,而是我对它掌握不够,再有就是使用要尽量规范 使用配置文件,dao.manager.s ...
- 移动端click事件清除
http://blog.csdn.net/zfy865628361/article/details/49512095
- RxJAVA notes
注: 本文只适用于自我复习,初学者请移步 链接 常用模板 rxjava2+retrofit2 public static void main(String[] args) { String BASE_ ...
- Express内置方法
创建一个 Express 应用.express()是一个由 express 模块导出的入口(top-level)函数. //最顶级:top-level 内置方法 express.static(root ...
- __x__(35)0908第五天__opacity 透明度
opacity 透明度 设置一个 0 - 1 之间的值. opacity: 0; 完全透明 opacity: 0.5 半透明 opacity: 1; 完全不透明 缺点: IE8及以 ...
- ECMA Script 6_解构赋值_模式匹配
解构赋值 从数组中提取值,按照对应位置,对变量赋值 只要等号右边的值不是对象或数组,就先将其转为对象. 由于 undefined 和 null 无法转为对象,所以对它们进行解构赋值,都会报错 let ...
- phpMyAdmin 4.8.x 本地文件包含漏洞利用
phpMyAdmin 4.8.x 本地文件包含漏洞利用 今天ChaMd5安全团队公开了一个phpMyAdmin最新版中的本地文件包含漏洞:phpmyadmin4.8.1后台getshell.该漏洞利用 ...