Git Product home page Git Product logo

pynamd's Introduction

PyNAMD

Python tools for NAMD

Description

PyNAMD is a package meant to provide a flexible, lightweight interface to NAnoscale Molecular Dynamics (NAMD) input and output. Since many powerful and mature packages exist for trajectory analysis, the focus is almost exclusively on energy based output.

The PyNAMD library is also accompanied by several scripts for common tasks useful in molecular dynamics (MD) simulations, such as rapidly computing averages and fluctuations - all directly from NAMD output. Developments are ongoing to provide considerably more complicated analysis tools such as multistate reweighting methods (e.g., WHAM) for generalized ensemble, replica exchange, and stratified umbrella sampling simulations.

Installation

To install PyNAMD, clone this git repository and change into the new "pynamd" directory. PyNAMD can then be built with the command

python setup.py install

If you are using the Python distribution that comes with your operating system, you may need to run the above command with administrative privileges or else add the --user flag -- the latter is recommended. It is expected that this project will utilize a considerable amount of "bleeding edge" numerical tools, so it would also be a good idea to use a customizable Python environment that has the latest numpy and scipy, such as that provided by Anaconda.

Examples

import pynamd

log = pynamd.NamdLog("00001.log", "00002.log")

#info contains information about time-steps, temperatures etc...
log.info

#energy contains the time-series data in a dictionary
log.energy

#log.energy can easily be converted into a pandas dataframe
import pandas as pd 
df =  pd.DataFrame(log.energy)

Further examples are in the examples subfolder.

Tests

Tests can be run using the pytest framework. Install pytest using conda conda install pytest or pip pip install pytest.

Run with pytest in the root of the repository.

Authors and Contributors

pynamd's People

Contributors

ajasja avatar radakb avatar

Watchers

 avatar  avatar

Forkers

mrinal-shekhar

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.