-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Degiacomi-Lab/molearn
- Loading branch information
Showing
7 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
|
||
[![status](https://joss.theoj.org/papers/781a409020f1c37417067aef6fbc3217/status.svg)](https://joss.theoj.org/papers/781a409020f1c37417067aef6fbc3217) | ||
[![Documentation Status](https://readthedocs.org/projects/molearn/badge/?version=latest)](https://molearn.readthedocs.io/en/latest/?badge=latest) | ||
[![DOI](https://zenodo.org/badge/145391811.svg)](https://zenodo.org/badge/latestdoi/145391811) | ||
|
||
|
||
|
||
*protein conformational spaces meet machine learning* | ||
|
||
|
@@ -42,34 +45,45 @@ To run the GUI: | |
|
||
## Installation ## | ||
|
||
#### Anaconda installation from conda-forge #### | ||
|
||
The most recent release can be obtained through Anaconda: | ||
|
||
`conda install molearn -c conda-forge` or the much faster `mamba install -c conda-forge molearn` | ||
|
||
#### Clone the repo and manually install #### | ||
|
||
Manual installation requires the following three steps: | ||
* Clone the repository | ||
* Install the necessary requirements with `mamba install -c conda-forge --only-deps molearn`. The option `--only-deps` will install the molearn dependencies but not molearn itself. | ||
* Clone the repository `git clone https://github.com/Degiacomi-Lab/molearn.git` | ||
* Install all required packages (see section *Dependencies > Required Packages*, above). The easiest way is by calling `mamba install -c conda-forge --only-deps molearn`, where the option `--only-deps` will install the molearn required dependencies but not molearn itself. Optionally, packages enabling additional molearn functionalities can also be installed. This has to be done manually (see links in *Dependencies > Optional Packages*). | ||
* Use pip to install molearn from within the molearn directory `python -m pip install .` | ||
|
||
#### Using molearn without installation #### | ||
|
||
Molearn can used without installation by making the sure the requirements above are met, and adding the `src` directory to your path at the beginning of every script, e.g.: | ||
``` | ||
import sys | ||
sys.path.insert(0, 'path/to/molearn/src') | ||
import molearn | ||
``` | ||
|
||
|
||
|
||
## Usage ## | ||
|
||
* See example scripts in the `examples` folder. | ||
* Jupyter notebook tutorials describing the usage of a trained neural network are available [here](https://github.com/Degiacomi-Lab/molearn_notebook). | ||
* software API and a FAQ page are available at [molearn.readthedocs.io](https://molearn.readthedocs.io/). | ||
|
||
## Reference ## | ||
## References ## | ||
|
||
If you use `molearn` in your work, please cite: [S.C. Musson and M.T. Degiacomi (2023). Molearn: a Python package streamlining the design of generative models of biomolecular dynamics. Journal of Open Source Software, 8(89), 5523](https://doi.org/10.21105/joss.05523) | ||
|
||
If you use molearn in your work, please cite: | ||
Theory and benchmarks of a neural network training against protein conformational spaces are presented here: | ||
[V.K. Ramaswamy, S.C. Musson, C.G. Willcocks, M.T. Degiacomi (2021). Learning protein conformational space with convolutions and latent interpolations, Physical Review X 11]( | ||
https://journals.aps.org/prx/abstract/10.1103/PhysRevX.11.011052) | ||
|
||
## Contact ## | ||
## Contributing ## | ||
|
||
For any question please contact [email protected] | ||
For information on how to report bugs, request new features, or contribute to the code, please see [CONTRIBUTING.md](CONTRIBUTING.md). | ||
For any other question please contact [email protected]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
""" | ||
`Scoring` holds classes for calculating DOPE and Ramachandran scores. | ||
""" | ||
class RaiseErrorOnInit: | ||
module = 'unknown module is creating an ImportError' | ||
def __init__(self,*args, **kwargs): | ||
raise ImportError(f'{self.module}. Therefore {self.__class__.__name__} can not be used') | ||
try: | ||
from .dope_score import Parallel_DOPE_Score, DOPE_Score | ||
except ImportError as e: | ||
import warnings | ||
warnings.warn(f"{e}. Modeller is probably not installed.") | ||
|
||
class DOPE_Score(RaiseErrorOnInit): | ||
module = e | ||
class Parallel_DOPE_Score(RaiseErrorOnInit): | ||
module = e | ||
|
||
try: | ||
from .ramachandran_score import Parallel_Ramachandran_Score, Ramachandran_Score | ||
except Exception as e: | ||
class Parallel_Ramachandran_Score(RaiseErrorOnInit): | ||
module = e | ||
class Ramachandran_Score(RaiseErrorOnInit): | ||
module = e | ||
import warnings | ||
warnings.warn(f"{e}. Will not be able to calculate Ramachandran score.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters