Skip to content

Instantly share code, notes, and snippets.

@sunhwan
sunhwan / arrow.py
Created November 3, 2011 17:01
draw helical axis in pymol
from pymol import cmd
from pymol.cgo import *
from math import *
#
# Some functions to allow drawing arrows (vectors) in Pymol
# In need of proper documentation...
#
# Please don't distribute (parts of) this file, without credits
#
@sunhwan
sunhwan / align.py
Created February 7, 2011 06:39
RMSD alignment for membrane protein
#!/usr/bin/env python
import numpy as np
def usage():
print """
This script calculates C-alpha RMSD between 2 PDB structures,
and gererates optimal superposition of the 2nd structure to the
1st structure.
@sunhwan
sunhwan / model.py
Created January 11, 2011 03:36
combine multiple PDB files into a single file
#!/usr/bin/python
""" Combines multiple PDB files into one """
import sys
import glob
if len(sys.argv) < 2:
print "model.py *.pdb > model.pdb"
sys.exit()