|
本帖最后由 meatball1982 于 2018-5-2 16:11 编辑
Recently, have to convert gjf into pdb file.
Two ways,
01
newzmat.
02
gjf 2 xyz.
xyz 2pdb
A toy example.
wat.gjf
- % nproc=8
- % mem= 12GB
- # mp2/6-31+G*
- wat
- 0,1
- O -0.00000 0.00000 6.84784
- H -0.78400 0.00000 6.29384
- H 0.78400 0.00000 6.29384
复制代码
01. newzmat
- newzmat -icart wat.gjf -opdb wat.pdb
复制代码 gaussian version should be higher than g09.D01
02.
a script convert gjf to xyz
We got a xyz file
- 3
- 0,1
- O -0.00000 0.00000 6.84784
- H -0.78400 0.00000 6.29384
- H 0.78400 0.00000 6.29384
复制代码
Then, with babel
- babel -ixyz wat.xyz -opdb wat.pdb
复制代码
a pdb file
- COMPND 0,1
- AUTHOR GENERATED BY OPEN BABEL 2.4.1
- HETATM 1 O HOH 1 0.000 0.000 6.848 1.00 0.00 O
- HETATM 2 H HOH 0 -0.784 0.000 6.294 1.00 0.00 H
- HETATM 3 H HOH 0 0.784 0.000 6.294 1.00 0.00 H
- CONECT 1 2 3
- CONECT 2 1
- CONECT 3 1
- MASTER 0 0 0 0 0 0 0 0 3 0 3 0
- END
复制代码
If you got problem about the script, please feel free to contact me
meatball1982
meatball1982@163.com
|
|