InnocentBug / G-BigSMILES

Generator of SMILES string from bigSMILES with extension
GNU General Public License v3.0
14 stars 2 forks source link

Resname identification and Initial molecule embedding. #47

Closed InnocentBug closed 9 months ago

InnocentBug commented 9 months ago

Not a beauty so far.

But first steps. It steps PDB info to keep track of the PDB residue for polymers.

And offers and initial crude embedding of the molecule.

    big_mol = bigsmiles_gen.Molecule("G-BigSMILES string")
   mol_gen = big_mol.generate()
   mol = mol_gen.mol
  # AllChem.MMFFOptimizeMolecule(mol)
  pdb_string = Chem.MolToPDBBlock(mol)

Gets you a PDB of the molecule. The Optimization step there is optional. I would recommend optimizing with a better forcefield and real engine if available.

trunk-io[bot] commented 9 months ago

😎 Merged successfully (details).

InnocentBug commented 9 months ago

There are some issue with the standard PDB generation of RDkit for large molecules. But that is a story for a different day.

InnocentBug commented 9 months ago

/trunk merge