Re: [Rdkit-discuss] Save files with new atom properties and read again

2015-07-03 Thread Campbell J.E.
Hi Hitesh I use the PropertyMol object to save molecules with properties, setting a property for a molecule is fairly simple, m.SetProp(_Name,”mol_name) for m in mol_lst: pm = AllChem.PropertyMol(m) pm.SetProp(_Name, name) pm.SetProp(_Energy, None)

[Rdkit-discuss] Save files with new atom properties and read again

2015-07-03 Thread Hitesh Patel
Hi there, I am new to RDkti. Is there a way to save custom property for each atoms and save that to any file format and use it again? -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you

Re: [Rdkit-discuss] new parallel execution features in the 2015.03 RDKit release

2015-07-03 Thread Greg Landrum
Hi Adam, Sorry I forgot to mention that. If you are building your own version of the RDKit, you will need to provide the flag RDK_THREADSAFE_SSS=ON to cmake. You can do this when you first call cmake or, if you have run it already, by runing ccmake in your build directory, modifying the value of

Re: [Rdkit-discuss] Save files with new atom properties and read again

2015-07-03 Thread Hitesh Patel
Hi Josh, Thanks for your quick reply. But, sorry, I want to set atom properties, not molecule properties. Like, atom = m.GetAtomWithIdx(5) atom.SetProp('my_property', 'value_of_my_property') I want to save this property associated with each atom. Regards, Hitesh Patel On Fri, Jul 3, 2015 at

Re: [Rdkit-discuss] Save files with new atom properties and read again

2015-07-03 Thread Greg Landrum
Hitesh, It is certainly possible to set atom properties. I don't think any of the output formats the rdkit can generate really support atom properties though. What format did you envision writing and how would the atom properties be encoded? -greg On Friday, July 3, 2015, Hitesh Patel

Re: [Rdkit-discuss] new parallel execution features in the 2015.03 RDKit release

2015-07-03 Thread Maciek Wójcikowski
Hi Greg, This is super feature, but are there any downsides? Why not to enable it by default (provided the dependencies are met)? Pozdrawiam, | Best regards, Maciek Wójcikowski mac...@wojcikowski.pl 2015-07-03 16:54 GMT+02:00 Greg Landrum greg.land...@gmail.com: Hi Adam, Sorry I

Re: [Rdkit-discuss] create a mol from core and mol fragments

2015-07-03 Thread Nicholas Firth
Hi Axel, I was sure there was something in the core that did this but I can't seem to find it now! I have a function that uses isotope labelled dummy atoms to attach fragments if it's of any use? As with most the code I write, it doesn't have the greatest error handling, or rational use of

Re: [Rdkit-discuss] create a mol from core and mol fragments

2015-07-03 Thread Axel Pahl
Nicholas, thanks a lot for the code, I will definitely look into it. Kind regards, Axel On 03.07.2015 09:19, Nicholas Firth wrote: Hi Axel, I was sure there was something in the core that did this but I can't seem to find it now! I have a function that uses isotope labelled dummy atoms to

Re: [Rdkit-discuss] RDKit Tools for the IPython Notebook

2015-07-03 Thread Nicholas Firth
Axel, This is excellent. I may actually be able to get other people to use my work now I can use a nice interface! Best, Nick Nicholas C. Firth | PhD Student | Cancer Therapeutics The Institute of Cancer Research | 15 Cotswold Road | Belmont | Sutton | Surrey | SM2 5NG T 020 8722 4033 | E

[Rdkit-discuss] create a mol from core and mol fragments

2015-07-03 Thread Axel Pahl
Dear fellow RDKitters, I use ReplaceCore and GetMolFrags to create a 2D SAR table: tmp = Chem.ReplaceCore(mol, core_mol, labelByIndex=True) frag_mols = list(Chem.GetMolFrags(tmp, asMols=True)) Is it also possible to do the reverse? Create a new molecule from the core and two fragments? I