Re: [Open Babel] Openbabel join in Python

2019-12-01 Thread Geoffrey Hutchison
> Specifically I want to take as input a protein pdb file, and a small molecule > as sdf input, then output a pdb containing both structures. That's pretty easy: from openbabel import pybel protein = next(pybel.readfile("pdb", "filename.pdb")) print(len(protein.atoms)) small = pybel.readfile("

[Open Babel] Openbabel join in Python

2019-11-23 Thread Chris Swain via OpenBabel-discuss
Using the command line it is possible to join (using -j) multiple input files into a single output file. Is it possible do this using Openbabel in a python jupyter notebook? Specifically I want to take as input a protein pdb file, and a small molecule as sdf input, then output a pdb containing