Skip to main content

A Python based virtual screening software!

Project description

Installation (Requires Python 3.9 and above)

Use the following command:

pip install nrgrank

Using NRGRank in a python script:

from nrgrank import process_target, process_ligands, nrgrank_main

Preparatory steps

1. Preprocessing the target

Required Arguments

Argument Description Possible value(s)
target_mol2_path Path to target mol2 file Absolute path
binding_site_file_path Path to binding site file generated by GetCleft Absolute path

Optional Arguments

Flag Description Possible value(s)
create_new_dir A new folder will be created to store generated files True,False
overwrite Allows overwriting existing files True,False

Example command

target_save_dir = process_target(target_mol2_path='foo/bar/target.mol2', binding_site_file_path='foo/bar/bd_site_sph_1.pdb')

2. Preparing the ligands

All ligands for one screen must be in the same mol2 file

Required Arguments

For running on a single mol2 file:

Flag Description Possible value(s)
ligand_path Path to ligand mol2 file Absolute path
conformers_per_molecule Number of conformers per molecule Int

Optional Arguments

Flag Description Possible value(s)
overwrite Allows overwriting existing files True,False
ligand_type Assign a specific ligand type recognised by NRGRank. Can be useful for benchmarking. (str)
output_dir Folder where generated files will be stored Absolute path

Example commands:

ligand_save_dir = process_ligands(ligand_path='foo/bar/ligands.mol2', conformers_per_molecule=1)

NRGRank

Required Flags

Flag Description Possible value(s)
target_name Target name that is used to name the output file (str)
preprocessed_target_path Path to preprocessed_target folder (can be path returned from process_target) Absolute path
preprocessed_ligand_path Path to preprocessed_ligands folder (can be path returned from process_ligands) Absolute path
result_folder_path Path to folder where result file will be written Absolute path

Optional Flags

Flag Description Possible value(s)
ligand_type Type of ligand. Useful when benchmarking with DUD-E active,decoy,ligand
ligand_slice List of 2 numbers containing the index of the first and last ligand to be screened (list)
write_info Write a .txt file containing information about the run True,False
write_csv Write a the result csv True,False
unique_run_id Adds a unique id to the output (str,int)
result_csv_and_pose_name changes the name of written result csv and folder for ligand poses (str)

Example commands:

result_file_path, result_csv_lines = nrgrank_main(target_name='target', 
                   preprocessed_target_path='foo/bar/preprocessed_target', 
                   preprocessed_ligand_path='foo/bar/preprocessed_ligands_1_conf',
                   result_folder_path='foo/bar/results')

Returns the path to the result file and the lines contained in the result csv

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

nrgrank-1.0.9.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

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

nrgrank-1.0.9-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file nrgrank-1.0.9.tar.gz.

File metadata

  • Download URL: nrgrank-1.0.9.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for nrgrank-1.0.9.tar.gz
Algorithm Hash digest
SHA256 78c0e2c606e425227bc1bb1a8a7404f3a793fe2a86077d47f7c60e4d558e406d
MD5 a84aded29a1052322e2db41cfdffbcb2
BLAKE2b-256 c0f862b877606365722fa24103bbb9b7dc8e18743def4293c6b6f5dd89ce1127

See more details on using hashes here.

File details

Details for the file nrgrank-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: nrgrank-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for nrgrank-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 252ad3a35333cf5f5f1914e8be3d4a613fc9454274b4d723c91f603fc7cb1bd7
MD5 5d79258add5d8eabd8aa3169290fbb02
BLAKE2b-256 fb2965e1b7392bd0abb8b79a4e14b22ed0d6dbd7e110e4ff6bcb9249faa8b477

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