Skip to content

Instantly share code, notes, and snippets.

@andersx
Created April 26, 2015 21:43
Show Gist options
  • Select an option

  • Save andersx/4be04cc56b41dbb9cb34 to your computer and use it in GitHub Desktop.

Select an option

Save andersx/4be04cc56b41dbb9cb34 to your computer and use it in GitHub Desktop.
TINKER script to minimize .pdb files
#!/bin/bash
# Input pdbfile, force field key, optimization convergence
PDB=$1
FF=$2
CONV=$3
TINKERBIN=/home/andersx/programs/tinker/bin
# Convert PDB to tinker XYZ using the keyfile
${TINKERBIN}/pdbxyz.x ${PDB} -k ${FF}
# Minimize using the tinker XYZ, keyfile and convergence argument
${TINKERBIN}/minimize.x ${PDB%.*}.xyz -k ${FF} ${CONV}
# Convert resulting tinker XYZ to pdb
echo ${TINKERBIN}/xyzpdb.x ${PDB%.*}.xyz -k ${FF} to convert to pdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment