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. PHP实现微信商户支付企业付款到零钱功能代码实例

    本文为大家分享了PHP实现微信商户支付企业付款到零钱的具体代码,供大家参考,具体内容如下 微信支付开发文档 一.开通条件 企业付款为企业提供付款至用户零钱的能力,支持通过API接口付款,或通过微信支付 ...

  2. 在macOS下使用MAXPP搭建本地开发服务器简易流程

    本文适用于解决前端开发时所需的服务器支持,包括文件上传和下载.在开发环境中需要保持尽量的开放,并不是安全的.根据浏览器安全协议,所下载的开源项目是不能直接在file中直接打开的,需要把文件放置在服务器 ...

  3. cmake教程

    1 教程 cmake界的hello world[2] 进阶的入门教程参考[3] 2 引用 [1] cmake官网 [2] 在 linux 下使用 CMake 构建应用程序 [3] Valgrind官网

  4. 你好!酷痞 Coolpy

    欢迎你进入酷痞的物联网世界.这里有着自由的空气和自然的气息.接下来我将告诉你如果一步步建立一个自己专属的物联网平台. 由于目前的酷痞的官方域名还没有通过备案所以现在用临时域名解说本说明. 最终酷痞的官 ...

  5. rabbitmq重启时报错,并导致erlang崩溃和Rabbit的常用命令

    -------------------------------------------------------------------------------------------------- R ...

  6. svn提交按钮灰选

    1.当我新建了一个文件或者文件夹,要提交的时候出现ok按钮灰选,提交不了. 解决方法:提交信息多写一些字儿就可以了,挥着回车换行也行 2.报错:you need to upgrade the work ...

  7. Python的numpy库中rand(),randn(),randint(),random_integers()的使用

    1.numpy.random.rand() 用法是:numpy.random.rand(d0,d1,…dn) 以给定的形状创建一个数组,并在数组中加入在[0,1]之间均匀分布的随机样本. 用法及实现: ...

  8. python学习:修改字符串大小写

    修改字符串大小写 函数:title()字符串首字母大写,upper()字符串全部大写,lower()字符串全部小写. 代码举例: name = "ada lovelace"prin ...

  9. 移动端滑动效果 swiper 4.0.7

    <!DOCTYPE html><html lang="en"><head> <meta charset="utf-8" ...

  10. mysql学习1

    1.什么是数据库? 数据的仓库,如在ATM的示例中创建了一个db目录,称其为数据库 2.安装 下载 http://dev.mysql.com/downloads/mysql/ 安装 windows: ...