Skip to main content

No project description provided

Project description

ConservedWaterSearch

https://readthedocs.org/projects/conservedwatersearch/badge/?version=latest https://badge.fury.io/py/conservedwatersearch.svg

The conservedwatersearch Python library uses density based clustering approach to detect conserved waters from simulation trajectories. Conserved water molecules can be further classified into 3 distinct conserved water types based on their hydrogen orientation: Fully Conserved Waters (FCW), Half Conserved Waters (HCW) and Weakly conserved waters (WCW) - see the figure below for examples. We support many different density based clustering approaches using standard OPTICS and HDBSCAN procedures as well as multi stage re-clustering approach using either of the two algorithms for very precise (and slow) determination of conserved water molecules.

figs/WaterTypes.png

Citation

Coming soon.

Installation

The easiest ways to install ConservedWaterSearch is using pip:

pip install ConservedWaterSearch

Conda builds will be available soon.

Example

The easiest way to use CWS is by calling WaterNetworkAnalysis (WNA) package. However, sometimes users might want to explicitly classify conserved water molecules. A simple python code can be used to classify waters into categories given an array of 3D oxygen coordinates and their related relative hydrogen orientations:

import ConservedWaterSearch.hydrogen_orientation as HO
# load some example
orientations = np.loadtxt("tests/data/conserved_sample_FCW.dat")
# Run classification
res = HO.hydrogen_orientation_analysis(
     orientations,
)
# print the water type
print(res[0][2])

For more complex usecases, please refer to the WaterNetworkAnalysis.

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

ConservedWaterSearch-0.0.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

ConservedWaterSearch-0.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file ConservedWaterSearch-0.0.1.tar.gz.

File metadata

  • Download URL: ConservedWaterSearch-0.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ConservedWaterSearch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 db0312ea18444f76bd024e5f66909ef951fd9ab441bac1c702e2b02b40412b25
MD5 cbacb098987ee3e74a942c7665c2a680
BLAKE2b-256 de62b29380baaff3e3119184a8ac11943b64d30f8ebf3fd97adf887436ebc4f7

See more details on using hashes here.

File details

Details for the file ConservedWaterSearch-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ConservedWaterSearch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f54f31bd05c2ab794674d93b58b08e8862311bf0acced37d8c56eb1b60d9c9ac
MD5 c223ecd2f73b14d54a235f47512c0a7b
BLAKE2b-256 8959e6ea1dfdc4ca335d3332b042d030566b653179b7466575b699c34eac9a32

See more details on using hashes here.

Supported by

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