An open API service indexing awesome lists of open source software.

https://github.com/mdanalysis/mdahole2

An MDAKit implementing a Python interface for the HOLE program.
https://github.com/mdanalysis/mdahole2

mdanalysis python structural-biology

Last synced: 6 months ago
JSON representation

An MDAKit implementing a Python interface for the HOLE program.

Awesome Lists containing this project

README

          

mdahole2
==============================
[//]: # (Badges)

| **Latest release** | [![Last release tag](https://img.shields.io/github/release-pre/MDAnalysis/mdahole2.svg)](https://github.com/MDAnalysis/mdahole2/releases) ![GitHub commits since latest release (by date) for a branch](https://img.shields.io/github/commits-since/MDAnalysis/mdahole2/latest) [![Documentation status](https://github.com/MDAnalysis/mdahole2/actions/workflows/docs.yaml/badge.svg?branch=main)](https://www.mdanalysis.org/mdahole2/)|
| :------ | :------- |
| **Status** | [![GH Actions Status](https://github.com/MDAnalysis/mdahole2/actions/workflows/gh-ci.yaml/badge.svg)](https://github.com/MDAnalysis/mdahole2/actions?query=branch%3Amain+workflow%3Agh-ci) [![codecov](https://codecov.io/gh/MDAnalysis/mdahole2/branch/main/graph/badge.svg)](https://codecov.io/gh/MDAnalysis/mdahole2/branch/main)|
| **Community** | [![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///8BAAAAAAAAAA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A)](https://www.mdanalysis.org) |

A Python interface for the HOLE suite tools to analyze an ion channel pore or transporter pathway as a function of time or arbitrary order parameters.

mdahole2 is bound by a [Code of Conduct](https://github.com/MDAnalysis/mdahole2/blob/main/CODE_OF_CONDUCT.md).

### Installation

From conda:
```
conda install -c conda-forge mdahole2
```

In case you want to use an already installed version of [hole2](https://www.holeprogram.org/) built from [source](https://github.com/osmart/hole2) or by installing it from conda (`conda install -c conda-forge hole2`), you can use a version without `hole2` as dependency:
```
conda install -c conda-forge mdahole2-base
```

Or install from pip:
```
pip install mdahole2

```

Note that `mdahole2` is only supported on Linux and macOS.

#### From source

To build `mdahole2` from source,
we highly recommend using virtual environments.
If possible, we strongly recommend that you use
[Anaconda](https://docs.conda.io/en/latest/) as your package manager.
Below we provide instructions both for `conda` and
for `pip`.

##### With conda

Ensure that you have [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) installed.

Create a virtual environment and activate it:

```
conda create --name mdahole2
conda activate mdahole2
```

Install the development and documentation dependencies:

```
conda env update --name mdahole2 --file devtools/conda-envs/test_env.yaml --file docs/requirements.yaml
```

Build this package from source:

```
pip install -e .
```

If you want to update your dependencies (which can be risky!), run:

```
conda update --all
```

And when you are finished, you can exit the virtual environment with:

```
conda deactivate
```

##### With pip

To build the package from source, run:

```
pip install -e .
```

If you want to create a development environment, install
the dependencies required for tests and docs with:

```
pip install -e ".[test,doc]"
```

### Copyright

The mdahole2 source code is hosted at https://github.com/MDAnalysis/mdahole2
and is available under the Lesser GNU Public Licence, v2.1 or any higher version
(see the file [LICENSE](https://github.com/MDAnalysis/mdahole2/blob/main/LICENSE)).

Copyright (c) 2022, The MDAnalysis Development Team and all contributors
listed in the file AUTHORS

#### Acknowledgements

Project based on the
[MDAnalysis Cookiecutter](https://github.com/MDAnalysis/cookiecutter-mda) version 0.1.
Please cite [MDAnalysis](https://github.com/MDAnalysis/mdanalysis#citation) when using mdahole2 in published work.