Is this list still alive?
On Wed, 8 Aug 2012 10:26:57 +0100
Hannes Loeffler wrote:
> Hi,
>
> the following script reads the attached mol2 file but wrongly outputs
> 0 for the charge. Openbabel is version 2.3.
>
> import pybel
> mol = pybel.readfile('mol2
Hi,
how would I do the following in Python?
babel -imol2 a.mol2 b.mol2 -osdf ab.sdf
Obviously I need to convert two mol2 files and combined them in a
single sdf.
Thanks,
Hannes.
--
Scanned by iCritical.
--
Don't let
d Outputfile class
> for writing. If you cannot figure it out, post some code here and I
> will correct it.
>
> - Noel
>
> On 8 October 2012 11:08, Hannes Loeffler
> wrote:
> > Hi,
> >
> > how would I do the following in Python?
> >
> > babel -
Hi,
I compiled 2.3.2 but find that some classes, e.g. OBAlign, and possibly
other stuff is absent from openbabel.py. I passed -DRUN_SWIG=ON to
cmake and swig does create openbabel.py.
The other odd thing is that 'make install' copies openbabel.py,
pybel.py and _openbabel.so into $CMAKE_INSTALL_P
und the real issue. SWIG is not called with -DHAVE_EIGEN
-DHAVE_EIGEN3 when making the Python bindings because
scripts/CMakeLists.txt tries to expand ${eigen2_define}, which appears
to be not defined anywhere, instead of ${eigen_define} as in the Java
case.
Cheers,
Hannes.
> On 12 March 2013 13
Hi,
I have the following Python code to rename the first residue in a PDB
file. The renaming works except that OpenBabel appends a '1',
obviously the residue number, to the new name in the mol2 output. How
can I force OpenBabel to stop altering my residue name?
import pybel
mol = pybel.readfi
Hi,
here is something that has bugged me for some time now and is quite an
annoying misfeature of MOL2Format::WriteMolecule(). In line 591 of
src/formats/mol2format.cpp (checked out just a minute ago) the residue
name is appended with its number (res->GetNum()).
The practical problem is that whe
In case anybody is willing I have attached a patch. This introduces a
new option 'r' which, when set, switches off residue number appending
unless 'l' is also set and residue name is simply '<1>'. The defaults
are as they used to be.
On Mon, 14 Jul 2014 1
Hi,
I was wondering if there is currently a mechanism to read out and
manipulate GAFF atom types. It looks to me that OBForceFieldGaff
handles those types only internally while to the outside the internal
force fields are presented.
for atom in ob.OBMolAtomIter(mol):
idx = atom.GetIdx()
# c
Hi,
I am trying to get all substructure matches with OBSmartsPattern but
this doesn't seem to work as expected when explicit hydrogens are
involved.
The attached Python script calculates a MCS with the help of RDKit's
implementation of fmcs. The MCS is created as SMARTS pattern (script
uses pre-
10 matches
Mail list logo