Skip to content

matsuicclab/ChemScripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChemScripts

scripts for input and output in computational chemical calculation

setup

  1. download by git clone or wget
git clone https://github.com/matsuicclab/ChemScripts
or
wget https://github.com/matsuicclab/ChemScripts/archive/master.tar.gz
tar xpvf master.tar.gz
  1. set environment variables (append to ~/.bashrc)
source <DIR>/bashrc # replace the text <DIR> to this directory according to your environment

to use

bash

# generate smiles and structure
$ name='ethanol'
$ name2smiles "$name" | smiles2xyz -O test.xyz

# calc energy with Gaussian
$ xyz2gjf -O test_0.gjf --link0 '%chk=test_0.chk' --route '# opt b3lyp/6-31G(d)' --charge 0 test.xyz
$ g16 test_0.gjf
$ g16log2value --SCF-energy test_0.log
-155.033799257

# calc energy of cation with Gaussian
$ xyz2gjf -O test_1.gjf --link0 '%chk=test_1.chk' --route '# opt b3lyp/6-31G(d)' --charge 1 test.xyz
$ g16 test_1.gjf
$ g16log2value --SCF-energy test_1.log
-154.664421473

# calc DeltaE in kcal/mol
$ (g16log2value --SCF-energy test_1.log ; g16log2value --SCF-energy test_0.log) | energy2energy --from a.u. --to kcal/mol --format '%.10f' | tr '\n' ' ' | awk '{print $1-$2}'
231.788

python

from pyg16.fchk import FCHK
fchk = FCHK('test.fchk')
fchk.calcElectronDensity([0, 0, 0])

from pyg16.cube import visualizeCubeSlice
visualizeCubeSlice(cubeFile='test.cub', outFile='test_slice.pdf')

TODO

  • g16log2value

    • eliminate title section
    • geometry
    • theory
  • g16log2xyz (wrapper of g16log2value --opt-geometry)

  • g16log2csv

  • csvsmiles2xyz

  • name2xyz (For complexes that are difficult to express in SMILES notation)

  • glog2prep (extend of mkresp)

  • xyz2prep

  • mksolv

  • bkill-all -> bkill 0

  • jdel-all

  • sdf2mol

  • pdb2pdbs

  • xyz2gms

  • mkmdin

  • mdcrd2crd (ambpdb)

  • xyz2xyz (consideration on isotope)

  • error handling for pdbid2pdb, name2sdf

  • Cube class (generate cube with node data of original cube)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 84.2%
  • Python 15.8%