Metadata-Version: 2.1
Name: conphar
Version: 0.2.0
Summary: ConPhar
Author: Angel J. Ruiz-Moreno
Author-email: <angel.j.ruiz.moreno@gmail.com>
Keywords: python,pharmacophore,drugdesign,cheminformatics,chemoinformatics,protein
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Requires-Dist: plotly
Requires-Dist: numpy
Requires-Dist: matplotlib
Requires-Dist: seaborn
Requires-Dist: pymol
Requires-Dist: scikit-learn


# Concensus Pharmacophore

[**Description**](#description) | [**Requirements**](#requirements) | [**Installation**](#installation) | [**Tutorials**](#tutorials) | [**Citation**](#citation) | [**License**](#license) | [**Information**](#information) | [**Disclaimer**](#disclaimer)


[![DOI](https://zenodo.org/badge/680058699.svg)](https://zenodo.org/badge/latestdoi/680058699)


## Description

A consensus pharmacophore is a set of properties shared by several active molecules that bind to the same target. It is composed of geometric elements such as points, spheres, vectors, or planes that represent different types of features such as hydrophobic regions, hydrogen bond donors or acceptors, aromatic rings, or positive or negative charges. It can be used to represent the fundamental properties of a molecular interaction and to direct the development of new compounds with comparable or improved activity.

The consensus pharmacophore as Ligand-based method for examining the chemical structures of known active compounds in order to determine the common features that account for their activity. Using the three-dimensional structure of the target protein and its bound ligands, it can provide information about the interaction site and extract the key features required for binding.

A consensus pharmacophore can also be used to identify new potential ligands that match the features of the target and are likely to bind to it. This technique is known as pharmacophore matching, and it is useful for identifying drug targets and performing virtual screening.

This library was developed to generate concensus pharmacophores from large datasets of ligands and ligand-protein complexes.  

Question about usage or troubleshooting? Please leave a comment in the discussion section of this repo

## Requirements

ConPhar is reliant on a variety of academic software:

- [Pharmer/Pharmit](https://pharmit.csb.pitt.edu/) 

- pandas
- pymol
- plotly
- seaborn
- scikit-learn

## Installation 

```
pip install conphar
```

## Tutorials
> [Ligand-Receptor pharmacophores](https://github.com/AngelRuizMoreno/ConcensusPharmacophore/blob/main/tutorials/ReceptorLigandPharmacophores.ipynb)

> [Generate Consensus Pharmacophore](https://github.com/AngelRuizMoreno/ConcensusPharmacophore/blob/main/tutorials/ConsensusPharmacophore.ipynb)

## Citation

If you use this software or its results in your research, publication, or project, please cite it as follows:

> [Consensus Pharmacophore Strategy For Identifying Novel SARS-Cov-2 Mpro Inhibitors from Large Chemical Libraries. Angel J. Ruiz-Moreno, Raziel Cedillo-González, Luis Cordova-Bahena, Zhiqiang An, José L. Medina-Franco, and Marco A. Velasco-Velázquez. Journal of Chemical Information and Modeling 2024 64 (6), 1984-1995.
DOI: 10.1021/acs.jcim.3c01439](https://pubs.acs.org/doi/10.1021/acs.jcim.3c01439)

If you use pharmer for your work you must cite:

> Koes, D.R., & Camacho, C.J. (2011). Pharmer: Efficient and Exact Pharmacophore Search. Journal of chemical information and modeling, 51 6, 1307-14 .

If you use Pharmit in your work you must cite:

> Sunseri, J., & Koes, D.R. (2016). Pharmit: interactive exploration of chemical space. Nucleic Acids Research, 44, W442 - W448.

## Improves in the last version by Helle van den Maagdenberg

- **Fixes**
  
> Handle case where a descriptor group has only 1 point in compute_concensus_pharmacophore.__compute_cluster, by setting cluster to 1. Previously, an error would also occur with 2 points, but this is fixed by using the pairwise distance directly (see Changes).

> Don't divide by 2 in the radius calculation in compute_concensus_pharmacophore.__compute_center_of_mass_and_radius, as the distance from the furthest point to the center of mass already is the radius.

> Only keep alternate conformation A in fetch_structure. Previously, the alternate conformation target_chain was kept, but these are unrelated.

- **Changes**

> Save fetched receptors to a separate folder pdb in fetch_structure

> Keep solvent and inorganic within the binding site in fetch_structure

> Add indenting to saved pharmacophores in save_pharmacophore_to_json

> Use pairwise distance instead of distance of distances in cluster calculation in compute_concensus_pharmacophore.__compute_cluster

> Change the threshold on clustering from h_dist * dm.max() to just h_dist (default value adjusted from 0.17 to 1.5)

> Remove weighting in center of mass calculation in compute_concensus_pharmacophore.__compute_center_of_mass_and_radius

> The radius calculation in compute_concensus_pharmacophore.__compute_center_of_mass_and_radius now adds the radius of individual points, so the full spheres are included in the consensus radius.

> Replace balance calculation by variance of the points within consensus clusters

- **Additions**
  
> Added optional argument target_file_type to fetch_structure to allow fetching mmcif files instead of pdb.

> Added optional argument remove to fetch_structure to supply additional residue names to be removed in the preprocessing

> Added optional argument feature_size to compute_concensus_pharmacophore to control the default radius per descriptor type

> Added optional argument method to compute_concensus_pharmacophore to also allow for different scipy clustering methods

## License

This tool is under MIT license, see the LICENSE file for details.

## Information

- This library works with pharmacophores generated with [pharmer](https://sourceforge.net/projects/pharmer/) and/or [pharmit](https://pharmit.csb.pitt.edu/). An executable version of pharmit is included in this library but works only for linux.

Users can generate their pharmacophores and use this library for analysis. Check tutorials for more information.

## Disclaimer 

This software is still under development and may contain bugs or errors. The developers do not guarantee the accuracy, completeness, or reliability of the software or its results. Use it at your own risk and discretion. The software is provided "as is" without any warranty of any kind, either express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. The developers are not liable for any damages, losses, or costs arising from the use of the software or its results.
