This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCTYPE html> | |
<html> | |
<title>A simple Jsmol example</title> | |
<head> | |
<script type="text/javascript" src="jsmol/JSmoljQuery.js"></script> | |
<script type="text/javascript" src="jsmol/JSmolCore.js"></script> | |
<script type="text/javascript" src="jsmol/JSmolApplet.js"></script> | |
<script type="text/javascript" src="jsmol/JSmolApi.js"></script> | |
<script type="text/javascript" src="jsmol/j2s/j2sjmol.js"></script> | |
<script type="text/javascript" src="jsmol/JSmol.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background white; | |
load /Users/jan/Dropbox/presentation/BBL/1L2Y.pdb; | |
reset; | |
center {-1.231 1.8259997 0.04649973};rotate z 2.0; zoom 84.74; translate x 0.04; translate y 0.07; | |
spin y;delay 10;spin off;delay 1; | |
select all;color atoms amino;delay 1;spin y;delay 10;spin off;delay 3; | |
display 1;delay 5; | |
display 2;delay 1; | |
display 3;delay 1; | |
display 4;delay 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple energy minimization program that uses steepest descent | |
# and a force field to minimize the energy of water in internal coordinates | |
# Written by Jan H. Jensen, 2013, released in the the GNU GPL license | |
kOH = 50.0 | |
rOHe = 0.95 | |
kHOH = 50.0 | |
thetaHOHe = 104.5 | |
c = 0.005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""\ | |
This python program extracts coordinates and gradients from a GAMESS output | |
file and creates a .xzy+vib file. Note that the sign of the gradient is chaged to produce the force | |
To use it type (assuming opt.py and the output file is in the same directory): | |
python opt.py x xx > xxx.xyz | |
where x is the number of atoms in the molecule and xx is the name of the GAMESS output file. xxx is whatever you want to call your xyz file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
type "python read.py" to use | |
This program finds the last heat of formation in all GAMESS log files | |
for semiempirical geometry optimizations | |
""" | |
import string | |
from glob import glob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
type "python readv2.py *.log" to use | |
This program finds the last heat of formation in all GAMESS log files | |
for semiempirical geometry optimizations | |
""" | |
import sys | |
for filename in sys.argv[1:]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/csh | |
# Molget: cshell script to get coordinates from chemical name using Babel and Cactus | |
# usage: ./molget methane | |
# (remember to "chmod 755 molget) | |
# | |
set molecule = $argv[1] | |
curl https://cactus.nci.nih.gov/chemical/structure/$molecule/smiles -o $molecule.smi | |
babel -ismi $molecule.smi -oxyz $molecule.xyz --gen3D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Applications/jmol-11.7.26/models/ | |
background white | |
frank off | |
hide all | |
delay 2 | |
display atomno=8; delay 2 | |
display atomno=8,atomno=4; delay 2 | |
display atomno=8,atomno=4,atomno=2; delay 1 | |
display atomno=8,atomno=4,atomno=2; delay 1 | |
display atomno=8,atomno=4,atomno=2,atomno=1; delay 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smiles = "CCCC" | |
subst = ["F","Cl"] | |
l = list(smiles) | |
print l | |
s = "" | |
print l[1]+l[2]+l[3] | |
for i in range(len(subst)): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
file = open("names", "r+") | |
for line in file: | |
name = line.split() | |
subprocess.call(['./name2smiles', name[0]]) | |
subprocess.call(['echo']) |
OlderNewer