Open GoogleCodeExporter opened 9 years ago
This is a won't fix: in absence of mol2 atom types it is hard to infer those
using just the PDB atom names/atom types.
It is possible to generate mol2 atom types, see rdkit (open source, MIT
license) for converting between mol2 and pdb files,
http://www.rdkit.org/docs/GettingStartedInPython.html
and specifically
http://www.rdkit.org/Python_Docs/rdkit.Chem.rdmolfiles-module.html#MolToPDBFile
Original comment by jan...@gmail.com
on 22 Mar 2015 at 2:11
Should probably raise a NotImplementedError instead then?
try:
substructure = traj.substructure[traj.frame]
except AttributeError:
raise NotImplementedError("No MOL2 atom types found in traj")
And later a mol2 atom generator could be patched in the except branch.
Original comment by richardjgowers
on 22 Mar 2015 at 7:30
That seems a good idea. If we then properly document the behavior it should be
fine.
@Jan: can you please do this?
If you have a simple example how to use other tools (as you said in the last
comment) the it would be great to have this in the doc.
Am Mar 22, 2015 um 12:30 schrieb mdanalysis@googlecode.com:
Original comment by orbeckst
on 22 Mar 2015 at 8:36
Original issue reported on code.google.com by
orbeckst
on 19 Mar 2015 at 6:03