Re: [Rdkit-discuss] Pandas to Excel

2024-02-22 Thread Chris Swain via Rdkit-discuss
Hi Both, Many thanks for your rapid response, much appreciated. Cheers Chris ___ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

[Rdkit-discuss] Pandas to Excel

2024-02-22 Thread Chris Swain via Rdkit-discuss
Hi, Is it possible to export from a Pandas data frame to Excel, inserting the structures as images in the excel sheet? Cheers Chris ___ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net

Re: [Rdkit-discuss] Aromatic atoms

2023-11-05 Thread Chris Swain via Rdkit-discuss
Thanks Chris > On 5 Nov 2023, at 09:23, Wim Dehaen wrote: > > how about: > len(list(mol.GetAromaticAtoms())) > > best wishes > wim > > > On Sun, 5 Nov 2023, 08:41 Chris Swain via Rdkit-discuss, > <mailto:rdkit-discuss@lists.sourceforge.net>>

[Rdkit-discuss] Aromatic atoms

2023-11-05 Thread Chris Swain via Rdkit-discuss
Hi, Perhaps I’m missing something obvious, but is there a way to calculate the number of aromatic atoms in a molecule? Cheers Chris ___ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net

Re: [Rdkit-discuss] CalcNumAtoms import error

2022-07-14 Thread Chris Swain via Rdkit-discuss
gt; Hope this helps, > Ivan > > > On Thu, Jul 14, 2022 at 7:04 AM Chris Swain via Rdkit-discuss > <mailto:rdkit-discuss@lists.sourceforge.net>> wrote: > Hi, > > If I try > > from rdkit.Chem.rdMolDescriptors import CalcNumAtoms > > I get > > ca

[Rdkit-discuss] CalcNumAtoms import error

2022-07-14 Thread Chris Swain via Rdkit-discuss
Hi, If I try from rdkit.Chem.rdMolDescriptors import CalcNumAtoms I get cannot import name 'CalcNumAtoms' from 'rdkit.Chem.rdMolDescriptors' I can import a range of other descriptors fine Using Python 3.7.6 and RDKit 2020.09.1 Cheers Chris ___

[Rdkit-discuss] 2dpharmacophores

2021-08-12 Thread Chris Swain via Rdkit-discuss
Hi, I’m trying to generate 2Dpharmacophore fingerprints as described here https://www.rdkit.org/docs/GettingStartedInPython.html#d-pharmacophore-fingerprints For the majority of molecules this works fine but

Re: [Rdkit-discuss] Rdkit-discuss Digest, Vol 157, Issue 2

2020-11-04 Thread Chris Swain via Rdkit-discuss
Hi Mark, Have you ever looked at Optipharm for shape comparison? https://www.nature.com/articles/s41598-018-37908-6 Or Shape-it http://silicos-it.be.s3-website-eu-west-1.amazonaws.com/software/shape-it/1.0.1/shape-it.html Cheers Chris

Re: [Rdkit-discuss] Query about creating SMILES string of small chemical fragment

2020-06-24 Thread Chris Swain via Rdkit-discuss
Hi, Are these not intended to be query strings so rather than SMILES they should be regarded as SMARTS? If so you can perhaps just use a text editor to do a find and replace using schema shown here https://www.daylight.com/dayhtml/doc/theory/theory.smarts.html

[Rdkit-discuss] Number of sp3 atoms

2020-05-31 Thread Chris Swain via Rdkit-discuss
Hi, I’ve written a Jupyter notebook to calculate a variety of calculated properties of molecules (MWt, TPSA, HAC, HBD/A etc.) I’d like to include the number of sp3 atoms, is there an easy way to do this? Cheers, Chris ___ Rdkit-discuss mailing list

[Rdkit-discuss] Parallel conformation generation

2020-05-05 Thread Chris Swain
Hi, I’ve been using the parallel conformation generation code ( https://buildmedia.readthedocs.org/media/pdf/rdkit/latest/rdkit.pdf page 95) in a number of projects including the open source antibiotics.

Re: [Rdkit-discuss] Interactive plots in Jupyter notebooks (Chris Swain)

2020-01-16 Thread Chris Swain via Rdkit-discuss
<https://www.macinchem.org/reviews/fdamols/interaction.html> If anyone has other suggestions I’d be interested to hear about them. Cheers, Chris > > On 15 Jan 2020, at 10.30, Chris Swain via Rdkit-discuss > mailto:rdkit-discuss@lists.sourceforge.net>> > wrote: > > Hi, >

[Rdkit-discuss] Interactive plots in Jupyter notebooks

2020-01-15 Thread Chris Swain via Rdkit-discuss
Hi, I've been looking at ways to produce interactive plots within a Jupyter notebook and after trying a couple of options I used Plotly. This seems fairly straight-forward to use and I can produce interactive data frames, in addition to 2D and 3D scatterplots.

Re: [Rdkit-discuss] Constructing a mol object from a PDB ligand (Dimitri Maziuk)

2019-12-16 Thread Chris Swain via Rdkit-discuss
I had to do something similar on 40,000 PDB files ending up using PDB_tools https://pypi.org/project/pdb-tools/ Cheers, Chris ___ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net

Re: [Rdkit-discuss] Saving chains from PDB file

2019-10-05 Thread Chris Swain via Rdkit-discuss
e > rdmolops.GetMolFrags(asMols=True) which would avoid the bond/atom removal. > > Sorry for the poor formatting but this is what I could come up with IPython > on the iPhone :-( > > p. > > > On 5 Oct 2019, at 12:46, Chris Swain via Rdkit-discuss > > > &

Re: [Rdkit-discuss] Open-source business models and the RDKit (Greg Landrum)

2019-03-27 Thread Chris Swain via Rdkit-discuss
This is an interesting discussion and suspect this does not only apply to open-source software developers, there are similar challenges for small independent software companies. On CICAG (http://www.rsccicag.org ) we have been discussing the possibility of organising

[Rdkit-discuss] [Question] Ok to switch to conda-forge for RDKit builds?

2018-10-18 Thread Chris Swain via Rdkit-discuss
OK with me, I’ve largely switched to condo/bioconda already. Chris > On 18 Oct 2018, at 13:14, rdkit-discuss-requ...@lists.sourceforge.net wrote: > > Message: 1 > Date: Thu, 18 Oct 2018 08:33:56 +0200 > From: Greg Landrum mailto:greg.land...@gmail.com>> > To: RDKit Discuss

Re: [Rdkit-discuss] Module SimilarityMaps

2018-06-11 Thread Chris Swain
t; <https://gist.github.com/greglandrum/3fab9a5de996d84e7b052966251074e8> > > -greg > > On Sat, Jun 9, 2018 at 7:23 PM Chris Swain <mailto:sw...@mac.com>> wrote: > Hi, > > I’m using Similarity Maps to map a property onto a molecule and then d

[Rdkit-discuss] Module SimilarityMaps

2018-06-09 Thread Chris Swain
Hi, I’m using Similarity Maps to map a property onto a molecule and then display as a contour map and export as an image. This all works fine but is it possible to annotate the image the the molecule ID (molID) Cheers, Chris

Re: [Rdkit-discuss] Non-redundant database of molecules (Wandr?)

2017-09-13 Thread Chris Swain
Hi, I’d use a text based version of the structure InChiKey or canonical SMILES it then becomes a easy task to do the comparison in Python I wrote a script to do this in Vortex but it should be easy to modify. https://www.macinchem.org/reviews/vortex/tut28/scripting_vortex28.php

Re: [Rdkit-discuss] Memory issue when storing more than 300K mol in a list

2017-06-10 Thread Chris Swain
This sounds like the situation where a database might be a better option, tuned to store fingerprints in RAM? Chris Dr Chris Swain BA MA (Cantab) PhD CChem FRSC Macs in Chemistry sw...@mac.com http://www.macinchem.org > On 10 Jun 2017, at 13:10, rdkit-discuss-requ...@lists.sourceforge.

Re: [Rdkit-discuss] Clustering

2017-06-05 Thread Chris Swain
rametes. You can not specify the number of clusters (like in Butina >>>> case). >>>> If you want to specify the number of clusters, you can simply use K-means. >>>> High dimensionality of fingerprints might be a problem for memory >>>> consumption. In this ca

[Rdkit-discuss] Clustering

2017-06-04 Thread Chris Swain
Hi, I want to do clustering on around 4 million structures The Rdkit cookbook (http://www.rdkit.org/docs/Cookbook.html ) suggests "For large sets of molecules (more than 1000-2000), it’s most efficient to use the Butina clustering algorithm” However

Re: [Rdkit-discuss] delete a substructure

2017-03-09 Thread Chris Swain
I use SMARTSviewer at Univ of Hamburg http://www.zbh.uni-hamburg.de/en/bioinformatics-server.html Chris > On 9 Mar 2017, at 17:21, rdkit-discuss-requ...@lists.sourceforge.net wrote: > > One last question I have is do you guys have

Re: [Rdkit-discuss] aligning maximum common substructure of 2 molecule

2017-02-21 Thread Chris Swain
Sorry if I’m a bit late to the discussion, this is the sort of thing I use Openbabel for http://openbabel.org/wiki/Obfit Align all the molecules in "testmv.sdf" on a single molecule of "testref.sdf" by superimposing them on its N-methylpiperidyl portion (and

Re: [Rdkit-discuss] RDKit Cookbook

2017-01-18 Thread Chris Swain
tes that version 0.19 hasn't been released yet, so the current calling > protocol should work for now. But we have been forewarned > > -P. > > On Wed, Jan 18, 2017 at 2:26 PM, Chris Swain <sw...@mac.com > <mailto:sw...@mac.com>> wrote: > Hi, > > I’ve

[Rdkit-discuss] RDKit Cookbook

2017-01-18 Thread Chris Swain
Hi, I’ve been trying a few o the examples in http://www.rdkit.org/docs/Cookbook.html and I’d like to use the Similarity Maps as shown below from rdkit.Chem.Draw import SimilarityMaps # helper function def getProba(fp, predictionFunction): return

Re: [Rdkit-discuss] drawing code take 3

2016-12-15 Thread Chris Swain
At first glance this looks an interesting approach. Simulation-Based Algorithm for Two-Dimensional Chemical Structure Diagram Generation of Complex Molecules and Ligand–Protein Interactions DOI: http://dx.doi.org/10.1021/acs.jcim.6b00391 > On 27 Sep 2016, at 05:38,

Re: [Rdkit-discuss] comparing two or more tables of molecules

2016-11-29 Thread Chris Swain
Hi, I’ve done this sort of comparison many times I actually use a SVL script within Moe and there is an example here (http://www.cambridgemedchemconsulting.com/resources/hit_identification/fragment_collection_profiles.html

Re: [Rdkit-discuss] Pandas

2016-11-26 Thread Chris Swain
Search and add similarity to resulting data frame > On 27 Nov 2016, at 07:55, Greg Landrum wrote: > > > You don't know if what could be done as a single line? > > -greg --

Re: [Rdkit-discuss] Pandas

2016-11-26 Thread Chris Swain
> <mailto:greg.land...@gmail.com>> wrote: > No worries. > This, and Anna's question about similarity searching and clustering > illustrate a great opportunity for a tutorial on fingerprints and similarity > searching. > > -greg > > > > > > On

Re: [Rdkit-discuss] Pandas

2016-11-26 Thread Chris Swain
; No worries. > This, and Anna's question about similarity searching and clustering > illustrate a great opportunity for a tutorial on fingerprints and similarity > searching. > > -greg > > > > > > On Wed, Nov 23, 2016 at 3:00 PM +0100, "Chris Swain" <sw...@mac

Re: [Rdkit-discuss] Atom Environments

2016-11-21 Thread Chris Swain
(submol, rootedAtAtom=amap[idx], canonical=True) > > You can then load the output into a DB for searching. You might be able to > tweak this to suit your purposes? > > best wishes > Richard > > -Original Message- > From: Chris Swain [mailto:sw...@mac.com

[Rdkit-discuss] Atom Environments

2016-11-20 Thread Chris Swain
Hi, I have a project where I would like to find similar atom environments to a specified atom in a selected molecule. For example Suppose I have this query molecule C1CNCC(C1)c1c1, and the selected atom is the nitrogen. I also have a file containing SMILES strings and ID for a list of