Giter Site home page Giter Site logo

albertbou92 / moleculekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acellera/moleculekit

0.0 0.0 0.0 42.03 MB

MoleculeKit: Your favorite molecule manipulation kit

License: Other

Shell 0.69% Python 98.26% Rich Text Format 0.17% Jupyter Notebook 0.85% Makefile 0.03%

moleculekit's Introduction

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

moleculekit's People

Contributors

alejandrovr avatar j3mdamas avatar stefdoerr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.