Re: [Rdkit-discuss] Problems with xyz-coordinates after setting PDBResidueinfo

2020-09-26 Thread Paolo Tosco
Hi Illimar, that's because most of your PDBResidueInfo fields are blank, including atom names, residue numbers, etc. If you wish to generate a PDB file that can be visualize correctly you need to copy this information from the existing atoms, e.g.: new_res_inf =

[Rdkit-discuss] Problems with xyz-coordinates after setting PDBResidueinfo

2020-09-25 Thread Illimar Hugo Rekand
Hello, all I have written a script which extracts certain residues from a PDB file, and writes them out to a new PDB-file. The script looks like this: from rdkit import Chem def create_sub_mol(mol_in, mol_in_conf, bs_atom_list): """ Creates a mol of given atoms atoms, e.g. the atoms