Git Product home page Git Product logo

Comments (3)

ssalentin avatar ssalentin commented on July 18, 2024

I cannot reproduce this error. The example runs through fine on Python 3.6.6.

Python 3.6.6 |Anaconda, Inc.| (default, Oct  9 2018, 12:34:16) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from plip.modules.preparation import PDBComplex                         

In [2]: my_mol = PDBComplex()                                                   

In [3]: my_mol.load_pdb('1EVE.pdb')                                             

In [4]: print(my_mol)                                                           
Protein structure 1eve with ligands:
NAG:A:3002
NAG:A:3001
NAG:A:3004
NAG:A:3005
E20:A:2001

In [5]: my_bsid = 'E20:A:2001'                                                  

In [6]: my_mol.analyze()                                                        

In [7]: my_interactions = my_mol.interaction_sets[my_bsid]                      

In [8]: print([pistack.resnr for pistack in my_interactions.pistacking])        
[84, 279]

I attached a file listing the packages and versions used in my Conda environment.

req.txt

from plip.

PatWalters avatar PatWalters commented on July 18, 2024

Thanks! That did the trick. In case anyone else tries this, I also had to add the openbabel channel to conda.
conda config --add channels openbabel

from plip.

ssalentin avatar ssalentin commented on July 18, 2024

Great to hear it worked now. Thanks for the feedback.

from plip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.