Skip to main content

Python utilities for working with DENOPTIM (https://github.com/denoptim-project/DENOPTIM)

Project description

DENOPTIM's Python tools (dnptools)

Repository for python utilities related with DENOPTIM: the software for De Novo OPTimization of In/organic Molecules (see https://github.com/denoptim-project/DENOPTIM).

Tools

Here is an overview of the tools included here:

Socket server running a scoring service

scoringservice run a socket server that provides scores to DENOPTIM's SocketProvidedDescriptor. The sever allows low-latency communication between DENOPTIM and scoring functions written in python. In particular, it allows to by-pass the overhead needed to startup a python process from within DENOPTIM's fitness providers. Example of usage:

from dnptools import scoringservice

def scoring_function(json_msg):
    smiles_string = json_msg[scoringservice.JSON_KEY_SMILES]
    score = ...do something to get the score from processing smiles_string...
    return score
    
scoringservice.start(scoring_function, 'localhost', 3863)

Note that localhost and port number 3863 are just parameters that can be choosen freely, but should be consistent with the settings of any client that wants to communicate with such server. The server is a threading server that can deal with multiple clients, like parallel threads running a fitness providing task each. When you do not need the scoring service any more, use the following to stop the server:

scoringservice.stop('localhost',3863)

Logging can be controlled as follows:

scoringservice.logger.setLevel(logging.DEBUG)

Install

The package is available on pypi and anaconda, so install it with

pip install dnptools

or

conda install -c denoptim-project dnptools

License

GNU Affero General Public License v3 or later (AGPLv3+)

Acknowledgments

The Research Council of Norway is acknowledge for funding.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnptools-0.0.4.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnptools-0.0.4-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file dnptools-0.0.4.tar.gz.

File metadata

  • Download URL: dnptools-0.0.4.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dnptools-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3bf16713a43624d8ec40109b44aef1bb74075a5ef8c28939706e36dd4fe83c4e
MD5 0881c6652c2a742b26fa1dce91096383
BLAKE2b-256 75bbc5bd1a03b34d9dbc5704f08e80df8c7580beb82a57ff0edf2012bf469f46

See more details on using hashes here.

File details

Details for the file dnptools-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dnptools-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dnptools-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8299a11ecd7ec31ee2e611fd219ab5c25b77ed1006fd5fa44ddc0c5614726e
MD5 c0319ba7b2ab1dd5cc1b4853a3354f75
BLAKE2b-256 3e793dafbba35fb0607c4b0df868ed6981b75349e6078ccc44b95f6198c62d56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page