cpctools


Namecpctools JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryA package for creating and studying SOAP fingerprints
upload_time2023-04-11 14:49:19
maintainer
docs_urlNone
author
requires_python<3.11,>=3.8
license
keywords molecular dynamics soap simulation simulation analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cpctools: SOAPify and SOAPify.HDF5er

![PyPI - License](https://img.shields.io/pypi/l/cpctools)
[![PyPI](https://img.shields.io/pypi/v/cpctools)](https://pypi.org/project/cpctools/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cpctools)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![Documentation Status](https://readthedocs.org/projects/soapify/badge/?version=latest)](https://soapify.readthedocs.io/en/latest/?badge=latest)
[![Coverage Status](https://coveralls.io/repos/github/GMPavanLab/SOAPify/badge.svg?branch=main)](https://coveralls.io/github/GMPavanLab/SOAPify?branch=main)
[![Powered by MDAnalysis](https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAA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https://www.mdanalysis.org)

SOAPify is a python 3.8/3.9/3.10 library aimed at simplifying the analysis of Molecular Dynamics simulation using the Smooth Overlap of Atomic Position (SOAP) in the context that includes the time along the geometrical information of the frames of the simulation.

SOAPify uses `h5py` to store the trajectories, the SOAP fingerprints, and the analysis results in a binary format.

SOAPify also offers a suite for  (simple) state analysis for your simulations.

## How To Install

To install the stable version of SOAPify just type:
```bash
pip install cpctools
```
_cpctools_ stands for **C**omputational **P**hysical **C**hemistry **TOOLS**, or, if you prefer, for **C**hemical **P**hysics **C**omputational **TOOLS**.

If you want to use _dscribe_ or _quippy_ for calculating the SOAP features you should install them separately, since they are quite heavy packages on their own, and usually you would use only one of these packages:

```bash
pip install "dscribe<=1.2.2,>1.2.0"
pip install "quippy-ase==0.9.10"
```

### Installing the latest version

We always recommend to install your code in a dedicated environment:

```bash
python3 -m venv /path/to/new/venv --prompt SOAPify
source /path/to/new/venv/bin/activate
pip install --upgrade pip
```

Then to install SOAPify you can simply go to the repository directory and run the following:
```bash
cd /path/to/SOAPify/directory
pip install .
```
or if you do not want to download the repo, you can have pip install from source:
```bash
pip install 'cpctools @ git+https://github.com/GMPavanLab/SOAPify.git'
```
Or if you desire an older version you can install it from a tag:
```bash
pip install 'cpctools @ git+https://github.com/GMPavanLab/SOAPify.git@0.0.6'
```

We have a (very basic) [documentation](https://gmpavanlab.github.io/SOAPify/SOAPify.html) of the latest version available on the GitHub pages.

A more complete history of the documentation is available on [read the docs](https://soapify.readthedocs.io/en/latest/). There you can consult the documentation for each available version of the package.


## SOAPify

This package contains:
 - a toolbox to calculate the [SOAP fingerprints](https://doi.org/10.1103/PhysRevB.87.184115) of a system of atoms. The principal aim is to simplify the setup of the calculation. This toolbox depends on `dscribe` or `quippy` and 'unify' the output of the two codes.
 - a toolbox to calculate the distances between SOAP fingerprints
 - a simple analysis tool for trajectories of classified atoms


## SOAPify.HDF5er

This package is a toolbox to create [hdf5 files](https://www.hdfgroup.org/) with [h5py](https://www.h5py.org/) from the trajectory and topology files. The format we use **do not** align with [h5md](https://www.nongnu.org/h5md/h5md.html)

Our format is thought to speed up the calculations without occupying too much RAM, thanks to the hdf5 dataset chunking capabilities.
- The data within the files are organized into Group categories:
    - "Trajectories" contains subgroups that represent the various stored trajectories, each trajectory subgroup contains three datasets:
      - "Types" contains the types of atoms in the simulation
      - "Box" contains the history of the box dimensions
      - "Trajectory" contains the history of the particle positions
    - "SOAP" group contains the Dastasets of the calculated SOAP fingerprints, each SOAP Dataset contains attributes with the settings to reproduce the results.
    - "Classification" contain a group per trajectory, the format of the Dataset contained within is not fixed
- The user can choose to use a single file per project or to store separately the results of the various steps of the analysis project (this is more recommended).
SOAPify.HDF5er contains a tool for exporting the trajectories from the hdf5 file to [extended xyz](https://www.ovito.org/docs/current/reference/file_formats/input/xyz.html#extended-xyz-format) format, compatible with [ovito](https://www.ovito.org/)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "cpctools",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "<3.11,>=3.8",
    "maintainer_email": "",
    "keywords": "Molecular Dynamics,SOAP,simulation,simulation analysis",
    "author": "",
    "author_email": "Daniele Rapetti <daniele.rapetti@polito.it>",
    "download_url": "https://files.pythonhosted.org/packages/f7/dd/aae2e7f1a0db4bba7a1201430fa895c577d6cdda79c33657d72d6e0a92fd/cpctools-0.1.0.tar.gz",
    "platform": null,
    "description": "# cpctools: SOAPify and SOAPify.HDF5er\n\n![PyPI - License](https://img.shields.io/pypi/l/cpctools)\n[![PyPI](https://img.shields.io/pypi/v/cpctools)](https://pypi.org/project/cpctools/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cpctools)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n[![Documentation Status](https://readthedocs.org/projects/soapify/badge/?version=latest)](https://soapify.readthedocs.io/en/latest/?badge=latest)\n[![Coverage Status](https://coveralls.io/repos/github/GMPavanLab/SOAPify/badge.svg?branch=main)](https://coveralls.io/github/GMPavanLab/SOAPify?branch=main)\n[![Powered by MDAnalysis](https://img.shields.io/badge/powered%20by-MDAnalysis-orange.svg?logoWidth=16&logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAIAAoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJD+XwCY/fEAkf3uAJf97wGT/a+HfHaoiIWE7n9/f+6Hh4fvgICAjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACT/yYAlP//AJ///wCg//8JjvOchXly1oaGhv+Ghob/j4+P/39/f3IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJH8aQCY/8wAkv2kfY+elJ6al/yVlZX7iIiI8H9/f7h/f38UAAAAAAAAAAAAAAAAAAAAAAAAAAB/f38egYF/noqAebF8gYaagnx3oFpUUtZpaWr/WFhY8zo6OmT///8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAn46Ojv+Hh4b/jouJ/4iGhfcAAADnAAAA/wAAAP8AAADIAAAAAwCj/zIAnf2VAJD/PAAAAAAAAAAAAAAAAICAgNGHh4f/gICA/4SEhP+Xl5f/AwMD/wAAAP8AAAD/AAAA/wAAAB8Aov9/ALr//wCS/Z0AAAAAAAAAAAAAAACBgYGOjo6O/4mJif+Pj4//iYmJ/wAAAOAAAAD+AAAA/wAAAP8AAABhAP7+FgCi/38Axf4fAAAAAAAAAAAAAAAAiIiID4GBgYKCgoKogoB+fYSEgZhgYGDZXl5e/m9vb/9ISEjpEBAQxw8AAFQAAAAAAAAANQAAADcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjo6Mb5iYmP+cnJz/jY2N95CQkO4pKSn/AAAA7gAAAP0AAAD7AAAAhgAAAAEAAAAAAAAAAACL/gsAkv2uAJX/QQAAAAB9fX3egoKC/4CAgP+NjY3/c3Nz+wAAAP8AAAD/AAAA/wAAAPUAAAAcAAAAAAAAAAAAnP4NAJL9rgCR/0YAAAAAfX19w4ODg/98fHz/i4uL/4qKivwAAAD/AAAA/wAAAP8AAAD1AAAAGwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALGxsVyqqqr/mpqa/6mpqf9KSUn/AAAA5QAAAPkAAAD5AAAAhQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADkUFBSuZ2dn/3V1df8uLi7bAAAATgBGfyQAAAA2AAAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0AAADoAAAA/wAAAP8AAAD/AAAAWgC3/2AAnv3eAJ/+dgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9AAAA/wAAAP8AAAD/AAAA/wAKDzEAnP3WAKn//wCS/OgAf/8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIQAAANwAAADtAAAA7QAAAMAAABUMAJn9gwCe/e0Aj/2LAP//AQAAAAAAAAAA)](https://www.mdanalysis.org)\n\nSOAPify is a python 3.8/3.9/3.10 library aimed at simplifying the analysis of Molecular Dynamics simulation using the Smooth Overlap of Atomic Position (SOAP) in the context that includes the time along the geometrical information of the frames of the simulation.\n\nSOAPify uses `h5py` to store the trajectories, the SOAP fingerprints, and the analysis results in a binary format.\n\nSOAPify also offers a suite for  (simple) state analysis for your simulations.\n\n## How To Install\n\nTo install the stable version of SOAPify just type:\n```bash\npip install cpctools\n```\n_cpctools_ stands for **C**omputational **P**hysical **C**hemistry **TOOLS**, or, if you prefer, for **C**hemical **P**hysics **C**omputational **TOOLS**.\n\nIf you want to use _dscribe_ or _quippy_ for calculating the SOAP features you should install them separately, since they are quite heavy packages on their own, and usually you would use only one of these packages:\n\n```bash\npip install \"dscribe<=1.2.2,>1.2.0\"\npip install \"quippy-ase==0.9.10\"\n```\n\n### Installing the latest version\n\nWe always recommend to install your code in a dedicated environment:\n\n```bash\npython3 -m venv /path/to/new/venv --prompt SOAPify\nsource /path/to/new/venv/bin/activate\npip install --upgrade pip\n```\n\nThen to install SOAPify you can simply go to the repository directory and run the following:\n```bash\ncd /path/to/SOAPify/directory\npip install .\n```\nor if you do not want to download the repo, you can have pip install from source:\n```bash\npip install 'cpctools @ git+https://github.com/GMPavanLab/SOAPify.git'\n```\nOr if you desire an older version you can install it from a tag:\n```bash\npip install 'cpctools @ git+https://github.com/GMPavanLab/SOAPify.git@0.0.6'\n```\n\nWe have a (very basic) [documentation](https://gmpavanlab.github.io/SOAPify/SOAPify.html) of the latest version available on the GitHub pages.\n\nA more complete history of the documentation is available on [read the docs](https://soapify.readthedocs.io/en/latest/). There you can consult the documentation for each available version of the package.\n\n\n## SOAPify\n\nThis package contains:\n - a toolbox to calculate the [SOAP fingerprints](https://doi.org/10.1103/PhysRevB.87.184115) of a system of atoms. The principal aim is to simplify the setup of the calculation. This toolbox depends on `dscribe` or `quippy` and 'unify' the output of the two codes.\n - a toolbox to calculate the distances between SOAP fingerprints\n - a simple analysis tool for trajectories of classified atoms\n\n\n## SOAPify.HDF5er\n\nThis package is a toolbox to create [hdf5 files](https://www.hdfgroup.org/) with [h5py](https://www.h5py.org/) from the trajectory and topology files. The format we use **do not** align with [h5md](https://www.nongnu.org/h5md/h5md.html)\n\nOur format is thought to speed up the calculations without occupying too much RAM, thanks to the hdf5 dataset chunking capabilities.\n- The data within the files are organized into Group categories:\n    - \"Trajectories\" contains subgroups that represent the various stored trajectories, each trajectory subgroup contains three datasets:\n      - \"Types\" contains the types of atoms in the simulation\n      - \"Box\" contains the history of the box dimensions\n      - \"Trajectory\" contains the history of the particle positions\n    - \"SOAP\" group contains the Dastasets of the calculated SOAP fingerprints, each SOAP Dataset contains attributes with the settings to reproduce the results.\n    - \"Classification\" contain a group per trajectory, the format of the Dataset contained within is not fixed\n- The user can choose to use a single file per project or to store separately the results of the various steps of the analysis project (this is more recommended).\nSOAPify.HDF5er contains a tool for exporting the trajectories from the hdf5 file to [extended xyz](https://www.ovito.org/docs/current/reference/file_formats/input/xyz.html#extended-xyz-format) format, compatible with [ovito](https://www.ovito.org/)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A package for creating and studying SOAP fingerprints",
    "version": "0.1.0",
    "split_keywords": [
        "molecular dynamics",
        "soap",
        "simulation",
        "simulation analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "062c1ff6f0402d9b8e12e5d9f0b83bd8a2293a5af2b6aba2bbf9407d797a95d9",
                "md5": "ceca56377bf551a8d96945309726e7a1",
                "sha256": "cfa66605925a26947e2291da72032263ce774ae933eb976ec8d548b108949b1c"
            },
            "downloads": -1,
            "filename": "cpctools-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ceca56377bf551a8d96945309726e7a1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.11,>=3.8",
            "size": 37137,
            "upload_time": "2023-04-11T14:49:17",
            "upload_time_iso_8601": "2023-04-11T14:49:17.147301Z",
            "url": "https://files.pythonhosted.org/packages/06/2c/1ff6f0402d9b8e12e5d9f0b83bd8a2293a5af2b6aba2bbf9407d797a95d9/cpctools-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f7ddaae2e7f1a0db4bba7a1201430fa895c577d6cdda79c33657d72d6e0a92fd",
                "md5": "63e6a444d2f53e92a6644e51745f52a1",
                "sha256": "be5f4f45694fb98b08a7511f3b3be35838ef189772b5afac4a86dc79a0c95b3a"
            },
            "downloads": -1,
            "filename": "cpctools-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "63e6a444d2f53e92a6644e51745f52a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.11,>=3.8",
            "size": 57693,
            "upload_time": "2023-04-11T14:49:19",
            "upload_time_iso_8601": "2023-04-11T14:49:19.227928Z",
            "url": "https://files.pythonhosted.org/packages/f7/dd/aae2e7f1a0db4bba7a1201430fa895c577d6cdda79c33657d72d6e0a92fd/cpctools-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-11 14:49:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "cpctools"
}
        
Elapsed time: 0.05809s