On 02/13/2015 06:14 AM, [email protected] wrote:
> Kindly look through this aspect of my script below.
> 
> I keep getting the error:
> 
> AttributeError: 'tuple' object has no attribute 'HasSubstructMatch'
> 
> 
> #!/usr/bin/python
> from rdkit import Chem
> from rdkit.Chem import Draw
> from rdkit.Chem import AllChem
> 
> pains = []# Contains my PAINS query molecules
> 
> 
> #Loop through data with PAINS query
> 
> for p in pains:
>    match = [x for x in mols if x.HasSubstructMatch(p)]
              ^^^^^^^^^^^^^^^

The offender is mols. Post the code that makes mols, otherwise Chris's
answer is the best you'll get.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to