Coder Social home page Coder Social logo

uibcdf / pypharmer Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 6.0 35.4 MB

Python API for Pharmer

C++ 18.98% C 0.15% Python 1.75% CSS 2.76% PHP 0.72% HTML 47.51% JavaScript 10.36% Makefile 0.03% Jupyter Notebook 17.28% TSQL 0.45%
pharmacophore pharmacophore-modelling drug-design pharmer

pypharmer's Introduction

PyPharmer (in construction)

Python API for Pharmer

Conda environment

Those packages needed to run the library are reported in environment.yml. The conda environment can be created with the followind command:

conda env create -f environment.yml

If a new package is required and installed in a development environment, the next command updates 'environment.yml'.

conda env export > environment.yml

pypharmer's People

Contributors

angelruizmoreno avatar dprada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pypharmer's Issues

Networkx not add all the descriptors as cliques

When I assign the pharmacophoric descriptors as cliques using Networkx library GRAPH function. It just assign a part of them.

For example:

data=phr.Descriptors (input_file=benchmark,select='enabled')
print (len (data.points))
11

This means that data.points has informations for 11 descriptors. Then when I run:

G= nx.Graph (pharmacophore='descriptors')

for element in data.points:
    node=(element[1],element[2],element[3]) # extracts x,y, and z positions for each descriptor
    G.add_node (node_for_adding=node, name=element[0])
print ('Number of nodes:',G.number_of_nodes ())
8

So, for a model with 11 descriptors I just can save and graph 8 in G (Networkx Graph).

How can I solve it?
Could it be something related to the degrees of freedom for Networkx Graph?

JSON files from servers

I was working in the pharmacophore and viewer files to include receptor, ligand, and pharmacophore visualization. But there are some issues.

Json files from pharmer can be readed by using our libraries as:
import PyPharmer as phr
query=phr.Query ('foo.json')
view=query.get_nglview

But, files from servers (pharmit and ZINC pharmed) cannot be readed by our libraries.

'load_query' script is able to show data from json files from pharmer and servers (in PyMol). I will continue working on this issue

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.