CPPTRAJ作为PTRAJ的继任者,拥有比PTRAJ更强大的功能,本教程会简要的介绍CPPTRAJ的用法及注意事项。

需要的文件:

trpzip2.gb.nc

trpzip2.ff10.mbondi.parm7

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的更多相关文章

  1. 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 ...

  2. 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 ...

  3. 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 ...

  4. Computer Vision_18_Image Stitching: Image Alignment and Stitching A Tutorial——2006(book)

    此部分是计算机视觉部分,主要侧重在底层特征提取,视频分析,跟踪,目标检测和识别方面等方面.对于自己不太熟悉的领域比如摄像机标定和立体视觉,仅仅列出上google上引用次数比较多的文献.有一些刚刚出版的 ...

  5. [翻译+山寨]Hangfire Highlighter Tutorial

    前言 Hangfire是一个开源且商业免费使用的工具函数库.可以让你非常容易地在ASP.NET应用(也可以不在ASP.NET应用)中执行多种类型的后台任务,而无需自行定制开发和管理基于Windows ...

  6. Django 1.7 Tutorial 学习笔记

    官方教程在这里 : Here 写在前面的废话:)) 以前学习新东西,第一想到的是找本入门教程,按照书上做一遍.现在看了各种网上的入门教程后,我觉得还是看官方Tutorial靠谱.书的弊端一说一大推 本 ...

  7. thrift 服务端linux C ++ 与客户端 windows python 环境配置(thrift 自带tutorial为例)

    关于Thrift文档化的确是做的不好.摸索了很久才终于把跨linux与windows跨C++与python语言的配置成功完成.以下是步骤: 1)                 Linux下环境配置 ...

  8. Hive Tutorial(上)(Hive 入门指导)

    用户指导 Hive 指导 Hive指导 概念 Hive是什么 Hive不是什么 获得和开始 数据单元 类型系统 内置操作符和方法 语言性能 用法和例子(在<下>里面) 概念 Hive是什么 ...

  9. 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 ...

随机推荐

  1. HDU4864:Task(贪心)

    Problem DescriptionToday the company has m tasks to complete. The ith task need xi minutes to comple ...

  2. XVII Open Cup named after E.V. Pankratiev. GP of Siberia, Division 1

    1. Ski race 枚举枚举倍数判断即可.时间复杂度$O(n\log m)$. #include<cstdio> #include<algorithm> using nam ...

  3. js之promise讲解

    1 Promise概述 Promise对象是CommonJS工作组提出的一种规范,目的是为异步操作提供统一接口. 那么,什么是Promises? 首先,它是一个对象,也就是说与其他JavaScript ...

  4. Java当中的异常2

    1.throw的作用 如果一行有可能代码抛出Execption对象或者check exception 就必须对这行代码进行处理 2.throws的作用 Throws表明这个类或者方法可能会产生一个指定 ...

  5. 1. js数据类型_对象_函数_内存

    1. js数据类型有哪些? 基本(值)类型 Number ---- 任意数值 String ---- 任意字符串 Boolean ---- true/false undefined ---- unde ...

  6. 对于EMC DAE、DPE、SPE、SPS的解释

    对于EMC DAE.DPE.SPE.SPS的解释: DAE: Disk Array Enclosure 单一的磁盘扩展单元 CX200/CX300/CX400/CX500CX600/CX700 DPE ...

  7. jenkins配置自动发送邮件,抄送

    1.安装插件.系统管理-安装插件:可选插件:搜索Email Extension 2.设置全局变量.系统管理-系统设置:a.Jenkins Location 设置发送方邮件--- b.Extended ...

  8. Python全栈-magedu-2018-笔记4

    第三章 - Python 内置数据结构 元组tuple 一个有序的元素组成的集合 使用小括号 ( ) 表示 元组是不可变对象 元组的定义 初始化 定义 tuple() -> empty tupl ...

  9. 平安银行在开源技术选型上的思考和实践 RocketMQ

    小结: 1. https://mp.weixin.qq.com/s/z_c5D8fvHaYvHSczm0nYFA 平安银行在开源技术选型上的思考和实践 平安银行·吴建峰 阿里巴巴中间件 3月7日 随着 ...

  10. MYSQL转换编码的解决方法

    MYSQL转换编码的解决方法 一.在utf8的mysql下 得到中文‘游客’的gbk下的16进制编码 mysql> SELECT hex(CONVERT( '游客' USING gbk )); ...