A molecule reading/writing and manipulation package.
Project description
MoleculeKit
A molecule manipulation library
Getting started
We recommend installing Miniconda on your machine to better manage python packages and environments.
You can install moleculekit either in the "base" conda environment or in a new conda environment. We recommend the second.
Install it into the base conda environment
With conda
(base) user@computer:~$ conda install moleculekit -c acellera
With pip
(base) user@computer:~$ pip install moleculekit
Create a new conda environment
The advantage of conda environments is that you can keep each of your python packages separate with all of their dependencies. This helps avoid conflicts between python packages (i.e. one requires python 2.7 and the other one python 3.6) which might be hard to resolve.
To create a new conda environment named "moleculekit" you run the following command
(base) user@computer:~$ conda create -n moleculekit
Then you activate that conda environment with
(base) user@computer:~$ conda activate moleculekit
(moleculekit) user@computer:~$
As you can see the environment changed now. Now you can use the same above install commands to install into the new conda environment.
Optional dependencies of moleculekit
Moleculekit has a small number of optional dependencies which are needed for some of it's functionalities. They were not added to the default dependencies to keep moleculekit a fast and small installation and to avoid unnecessary conflicts with other software. However if you want to leverage all of it's functionality you can install the rest of the dependencies with the following command:
(moleculekit) user@computer:~$ wget https://raw.githubusercontent.com/Acellera/moleculekit/master/extra_requirements.txt
(moleculekit) user@computer:~$ conda install --file extra_requirements.txt -c acellera
Using moleculekit in ipython
Install ipython in the correct conda enviroment using the following command. If you have installed the extra dependencies as above, you can skip this step since it already installs ipython.
(moleculekit) user@computer:~$ conda install ipython
Now you can start an ipython console with
(moleculekit) user@computer:~$ ipython
In the ipython console you can now import any of the modules of moleculekit and use it as normal.
from moleculekit.molecule import Molecule
mol = Molecule('3ptb')
mol.view()
Issues
For any bugs or questions on usage feel free to use the issue tracker of this github repo. For the official documentation of moleculekit head over to https://software.acellera.com/docs/latest/moleculekit/index.html
Dev
If you are using moleculekit without installing it by using the PYTHONPATH env var you will need to compile the C++ extensions in-place with the following command:
python setup.py build_ext --inplace
Citing MoleculeKit
If you use this software in your publication please cite:
Stefan Doerr, Matthew J. Harvey, Frank Noé, and Gianni De Fabritiis. HTMD: High-throughput molecular dynamics for molecular discovery. Journal of Chemical Theory and Computation, 2016, 12 (4), pp 1845–1852. doi:10.1021/acs.jctc.6b00049
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file moleculekit-0.9.0.tar.gz
.
File metadata
- Download URL: moleculekit-0.9.0.tar.gz
- Upload date:
- Size: 6.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d05acc66b2cae022d221f9c319ae62bdae432ea07ab9dcc124248259759a02 |
|
MD5 | a24ba292284d419351d189681558e369 |
|
BLAKE2b-256 | b69949983b637b9ea52df2cc3db88a099868a0d73615bf207896efc839d67017 |