#!/usr/bin/env python# Denes Turei EMBL 2018# turei.denes@gmail.com# converts set of structures to canonical orderimportpybelmolecules=list(pybel.readfile('pdb',# test file# find at:# https://www.ebi.ac.uk/~denes/54b510889336eb2591d8beff/# 00127_0a949dbfc5df14c6619e5acf726e0d11_16.pdb.txt'00127_0a949dbfc5df14c6619e5acf726e0d11_16.pdb'))formolinmolecules:_=pybel.ob.OBOp_FindType('canonical').Do(mol.OBMol)fori,molinenumerate(molecules):mol.write('pdb','pybel-canonical-test-%u.pdb'%i)
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.