Skip to main content

Use TLDR for dockopt, decoy generation, and job management.

Project description

What is it?

A toolkit to interface https://tldr.docking.org/, a webserver home to a collection of docking optimization and benchmark molecular docking programs.

Installation

Installation is super easy and pip installable. Please make sure you have Python 3.6 installed.

$ pip install tldr-tools

The API_KEY, as found on the top right corner under tldr.docking.org, must be set as an environmental variable before usage. The API_KEY can be assigned in .env under the package root, or directly set in terminal.

# Method 1: Add under .env (recommended for for python notebooks)
$ echo "API_KEY=SOMESECRETKEY" > .env

# Method 2: Manually setting API_KEY (recommended for interactive jobs)
export API_KEY="SOMESECRETKEY"

Usage

To view the current implemented modules in tldr-tools, please run:

$ tldr-submit --list-modules

For example, if running decoy generation is desired:

tldr-submit --module decoys --activesism input_files/actives.ism --decoygenin input_files/decoy_generation.in --memo "Decoy generation for ADA, replicate 1"

Or, you can build a ligand using DOCK38:

tldr-submit --module build --input chaff_tools/aggregator_advisor_hf_test.txt --memo "aa_hf_test"

Documenting runs with the optional memo parameter is encouraged.

Pass in a job number to check on a status of a run:

tldr-status --job-number 14886

Once a run is successful, you can download the output to a local directory:

tldr-download --job-number 14886 --output some_folder

Does tldr-tools work in Colab and Jupyter Notebook?

Yep, you use tldr-tools as follow:

from tldr_tools.tldr_submit import *        # Import to submit new jobs
from tldr_tools.tldr_endpoint import *      # Import for APIManager() which is responsible for handling requests (api_token and headers)
from tldr_tools.tldr_status import *        # Import to check on status

api_manager = APIManager()
module_name = "build"

kwargs = {
   "input": "aggregator_advisor_hf_test.txt",
   "memo": "aa_hf_test"
}

# Submit the module
job_number = submit_module(api_manager, module_name, **kwargs)

Extending tldr-tools

Community and expansion is encouraged and made easy with this codebase. Adding new modules that are newly introduced on https://tldr.docking.org/ is painless, and is as simple as adding a new Endpoint and required/optional list of files.

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

tldr_tools-0.2.4.3.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

tldr_tools-0.2.4.3-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file tldr_tools-0.2.4.3.tar.gz.

File metadata

  • Download URL: tldr_tools-0.2.4.3.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tldr_tools-0.2.4.3.tar.gz
Algorithm Hash digest
SHA256 a3cf33739790a7dac60b999cbcbd43e6dfa6766b17f3a31bc012db1f19b380ce
MD5 685b49806ee13ed8425294ee06818b59
BLAKE2b-256 96b30f4edcb820b128f7cadc69296f0ffcd21e82965d377eee7357e89d32a210

See more details on using hashes here.

File details

Details for the file tldr_tools-0.2.4.3-py3-none-any.whl.

File metadata

  • Download URL: tldr_tools-0.2.4.3-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tldr_tools-0.2.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1715149b396cda7374f4a67eba574d4921650d82dfa0d355dc3cb1f43492c89
MD5 653e46b356353ccf7ddc246cf44f9b82
BLAKE2b-256 e04be5a0527f70977284165642e160c5152da7e15a94b71574a7ef35290cd629

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