Skip to main content

pygamess is a GAMESS wrapper for Python

Requirements

  • Python 3.7 or later (pygamess <0.5 only support Python2)

  • RDKit

  • GAMESS

  • ruamel.YAML

Setup

$ pip install pygamess

set GAMESS_HOME environment in your .bashrc:

$ export GAMESS_HOME=/usr/local/gamess

Test

$ pytest

Basic Usage

single point calculation with RDKit

>>> from pygamess import Gamess
>>> from rdkit import Chem
>>> from rdkit.Chem import AllChem
>>> m = Chem.MolFromSmiles("CC")
>>> m = Chem.AddHs(m)
>>> AllChem.EmbedMolecule(m)
0
>>> AllChem.UFFOptimizeMolecule(m,maxIters=200)
0
>>> g = Gamess()
>>> nm = g.run(m)
>>> nm.GetProp("total_energy")
'-78.302511990200003'

optimize calculation with RDKit

Change run_type:

>>> from pygamess import Gamess
>>> from rdkit import Chem
>>> from rdkit.Chem import AllChem
>>> m = Chem.MolFromSmiles("CC")
>>> m = Chem.AddHs(m)
>>> AllChem.EmbedMolecule(m)
0
>>> AllChem.UFFOptimizeMolecule(m,maxIters=200)
0
>>> g = Gamess()
>>> g.run_type('optimize')
>>> optimized_mol = g.run(mol)
>>> optimized_mol.GetProp("total_energy")
'-78.306179626599999'

changing basis-sets

Change basis set:

>>> from pygamess import Gamess
>>> from rdkit import Chem
>>> from rdkit.Chem import AllChem
>>> m = Chem.MolFromSmiles("CC")
>>> m = Chem.AddHs(m)
>>> AllChem.EmbedMolecule(m)
0
>>> AllChem.UFFOptimizeMolecule(m,maxIters=200)
0
>>> g = Gamess()
>>> g.run_type = "optimize"
>>> g.run(m).GetProp("total_energy")
'-78.302511907400003'
>>> g.basis_set("3-21G")
{'gbasis': 'N21', 'ngauss': '3'}
>>> g.run(m).GetProp("total_energy")
'-78.790442552000002'
>>> g.basis_set("6-31G")
{'gbasis': 'N31', 'ngauss': '6'}
>>> g.run(m).GetProp("total_energy")
'-79.194024566899998'
>>> g.basis_set("6-31G*")
{'gbasis': 'N31', 'ndfunc': '1', 'ngauss': '6'}
>>> g.run(m).GetProp("total_energy")
'-79.225521673399996'
>>> g.basis_set("6-31G**")
{'gbasis': 'N31', 'ndfunc': '1', 'npfunc': '1', 'ngauss': '6'}
>>> g.run(m).GetProp("total_energy")
'-79.235082450899995'

or edit property of Gamess instance:

>>> g.basis = {'gbasis': 'sto', 'ngauss': '3'}
>>> mol_sto3g = g.run(m)
>>> mol_sto3g.GetProp("total_energy")
'-78.302511907400003'

print GAMESS INPUT

use input method:

>>> g.input(mol)

History

0.5.0 (2020-09-13)

  • Support Python3

0.4.1.1 (2017-09-16)

  • Update Readme

0.4.1 (2017-09-16)

  • Bug fixed (coordinates problem)

0.4.0 (2017-09-13)

  • Change the backend library from openbabel to RDKit

0.3.0 (2012-03-31)

  • Use internal rungms (default)

  • Added basis_set method(STO-3G,3-21G,6-31G,6-311G,6-31G*,6-31G**,AM1,PM3,MNDO)

  • Constructor can accept options

  • Bug fixed (spin multiplicity)

0.2.2 (2012-03-30)

  • Added charge settings

  • Method name changed (gamess_input -> input)

0.2.1 (2012-03-23)

  • Bug fixed (multiplicity setting for pybel)

  • Bug fixed (print error when rungms exec failed)

  • Added document

0.2.0 (2012-03-06)

  • Run method can accept OBMol and Pybel-Molecule object

0.1.2 (2011-09-23)

  • Added CIS method (and optimization)

0.1.1 (2011-08-06)

  • Updated document

  • Semiempical method (AM1, PM3, MNDO)

  • Added statpt option

  • Changed default error print (10 lines)

0.1 (2011-6-25)

  • First release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygamess-0.5.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygamess-0.5.0-py3.8.egg (22.0 kB view details)

Uploaded Egg

pygamess-0.5.0-py3.7.egg (18.3 kB view details)

Uploaded Egg

File details

Details for the file pygamess-0.5.0.tar.gz.

File metadata

  • Download URL: pygamess-0.5.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pygamess-0.5.0.tar.gz
Algorithm Hash digest
SHA256 45860c97b6bd5e76628faa8045f1ccb322f06a6da0ae7a6b9de35d8e54422bd8
MD5 856302b4a0f21c6d85207554818e5254
BLAKE2b-256 0502263f840fd96d47f8809c58880f4cbe7afd414b22fa289663add7a17f8d52

See more details on using hashes here.

File details

Details for the file pygamess-0.5.0-py3.8.egg.

File metadata

  • Download URL: pygamess-0.5.0-py3.8.egg
  • Upload date:
  • Size: 22.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pygamess-0.5.0-py3.8.egg
Algorithm Hash digest
SHA256 2707b4274b5c3c1b18d7f1f273a3f936507f82abeb4f3e7e00fb043cee1568f8
MD5 057323aec355b7192ecd828eea33212e
BLAKE2b-256 26899587afd1d979376e7b670a55013de5cb8a4302784473b4b3ac75a93357d5

See more details on using hashes here.

File details

Details for the file pygamess-0.5.0-py3.7.egg.

File metadata

  • Download URL: pygamess-0.5.0-py3.7.egg
  • Upload date:
  • Size: 18.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pygamess-0.5.0-py3.7.egg
Algorithm Hash digest
SHA256 b47b3d7a80e03da1c5b149f57c59d79c787f0fc72c11aa89e7d65a1936c14329
MD5 e0b2476f65733d87ceb17b3615dd7ca0
BLAKE2b-256 13b4392eb51d0b24b40e8ec0ba8c0d7f8036409eea8394379cc9042939d0153a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

2 files

0.6.3

2 files

0.6.2

3 files

0.6.1

2 files

0.6.0

2 files

This release

0.5.0 This release

3 files

0.4.1.1

1 file

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page