Skip to content

Commit

Permalink
minor changes to release v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomart committed Oct 20, 2021
1 parent 026ae11 commit c0dec35
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Meeko: preparation of small molecules for AutoDock

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![PyPI version fury.io](https://img.shields.io/badge/version-0.1-green.svg)](https://pypi.python.org/pypi/ansicolortags/)
[![API stability](https://img.shields.io/badge/stable%20API-no-orange)](https://shields.io/)
[![PyPI version fury.io](https://img.shields.io/badge/version-0.2-green.svg)](https://pypi.python.org/pypi/ansicolortags/)

Meeko reads a chemoinformatics molecule object (currently Open Babel) and writes a string (or file)
in PDBQT format for use with [AutoDock-Vina](https://github.com/ccsb-scripps/AutoDock-Vina)
Expand All @@ -17,19 +18,18 @@ Meeko is developed by the [Forli lab](https://forlilab.org/) at the
[Center for Computational Structural Biology (CCSB)](https://ccsb.scripps.edu)
at [Scripps Research](https://www.scripps.edu/).

## Examples using the command line script
```console
mk_prepare_ligand.py -i molecule.sdf -o molecule.pdbqt
mk_prepare_ligand.py -i multi_mol.sdf --multimol_outdir folder_for_pdbqt_files
```

## Dependencies

* Python (>=3.5)
* Numpy
* Openbabel (>=3)
* RDKit

## Installation (from PyPI)
```bash
$ pip install meeko
```

## Installation (from source)

```bash
Expand All @@ -38,15 +38,28 @@ $ cd Meeko
$ pip install .
```

Optionally include `--editable`. Changes in the original package location
take effect immediately without the need to run `pip install .` again.
```bash
$ pip install --editable .
```

## Examples using the command line scripts
```console
mk_prepare_ligand.py -i molecule.sdf -o molecule.pdbqt
mk_prepare_ligand.py -i multi_mol.sdf --multimol_outdir folder_for_pdbqt_files
mk_copy_coords.py vina_results.pdbqt -o vina_results.sdf
mk_copy_coords.py adgpu_results.dlg -o adgpu_results.sdf
```

## Quick Python tutorial

##### 1. flexible macrocycle with attached waters
#### 1. flexible macrocycle with attached waters

```python
from meeko import MoleculePreparation
from meeko import obutils


input_molecule_file = 'example/BACE_macrocycle/BACE_4.mol2'
mol = obutils.load_molecule_from_file(input_molecule_file)

Expand All @@ -58,14 +71,20 @@ output_pdbqt_file = "test_macrocycle_hydrate.pdbqt"
preparator.write_pdbqt_file(output_pdbqt_file)
```

##### 2. RDKit molecule from docking results

#### 2. RDKit molecule from docking results

Assuming that 'docked.dlg' was written by AutoDock-GPU and that Meeko prepared the input ligands.

```python
from meeko import PDBQTMolecule

with open("docked.dlg") as f:
dlg_string = f.read()
pdbqt_mol = PDBQTMolecule(dlg_string, is_dlg=True)

# alternatively, read the .dlg file directly
pdbqt_mol = PDBQTMolecule.from_file("docked.dlg", is_dlg=True)

for pose in pdbqt_mol:
rdkit_mol = pose.export_rdkit_mol()
```
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def find_files(directory):

setup(
name="meeko",
version='0.1.dev3',
version='0.2',
author="Stefano Forli",
author_email="[email protected]",
url="https://github.com/ccsb-scripps/meeko",
Expand Down

0 comments on commit c0dec35

Please sign in to comment.