Re: [Rdkit-discuss] Read only first model of a pdb-file

2019-05-29 Thread Greg Landrum
Hi Illimar, When reading a PDB file that has multiple models, the RDKit PDB Parser creates a separate conformer for each model, it shouldn't be creating additional atoms. Here's a little demo: >>> from rdkit import Chem >>> import rdkit >>> print(rdkit.__version__) 2019.03.2 >>> !grep -c '^ATOM

Re: [Rdkit-discuss] Read only first model of a pdb-file

2019-05-29 Thread Dimitri Maziuk via Rdkit-discuss
On 5/29/19 3:31 PM, David Cosgrove wrote: > Biopython is excellent for extracting particular models from a PDB file. As > Dimitri suggests, you can then pass the result into your processing script. > It is quite straightforward to write the relevant PDB model to a string in > PDB format and parse

Re: [Rdkit-discuss] Read only first model of a pdb-file

2019-05-29 Thread David Cosgrove
Biopython is excellent for extracting particular models from a PDB file. As Dimitri suggests, you can then pass the result into your processing script. It is quite straightforward to write the relevant PDB model to a string in PDB format and parse with RDKit’s PDB reader, for example. Dave On

Re: [Rdkit-discuss] Read only first model of a pdb-file

2019-05-29 Thread Dimitri Maziuk via Rdkit-discuss
On 5/29/19 8:19 AM, Illimar Hugo Rekand wrote: > Hey, RDKitters! > > > I am currently trying to figure out how to only read in the first model of a > pdb-file. I've designed a script that performs calculations on a per-atom > basis, and this is very slow when it tries to account for multiple

[Rdkit-discuss] Read only first model of a pdb-file

2019-05-29 Thread Illimar Hugo Rekand
Hey, RDKitters! I am currently trying to figure out how to only read in the first model of a pdb-file. I've designed a script that performs calculations on a per-atom basis, and this is very slow when it tries to account for multiple models, for example with a NMR-structure. my code is