Skip to main content

A molecule reading/writing and manipulation package.

Project description

MoleculeKit

Build Status Build Status Language Grade: Python Conda codecov

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

Project details


Release history Release notifications | RSS feed

This version

0.2.8

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moleculekit-0.2.8.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

moleculekit-0.2.8-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

Details for the file moleculekit-0.2.8.tar.gz.

File metadata

  • Download URL: moleculekit-0.2.8.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for moleculekit-0.2.8.tar.gz
Algorithm Hash digest
SHA256 d6e4d30afd509ace4025cd5200bc9ad814dd1804301c26cad544248654fbfef2
MD5 a4383cfec50612be5ff62e09cbe2c0e6
BLAKE2b-256 68e00fe1302790061ea9e59370a988d67b877642c45a9e6d725819118cc3aae1

See more details on using hashes here.

Provenance

File details

Details for the file moleculekit-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: moleculekit-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for moleculekit-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6bb04aee6023e232156e64c6b7dc4510dc0dd6ccc5a0ff5150e2de459d264da4
MD5 a54e52db9759468200c2e55a2a51a166
BLAKE2b-256 a385452591c89b66659eaf24e216aef7818e3061a78bb1fc832f8616808949d4

See more details on using hashes here.

Provenance

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