Giter Site home page Giter Site logo

wetree's Introduction

wetree

Make a resampling tree visual after running a WE simulation.


This tutorial contains the code necessary to generate a resampling tree with a Wepy simulation hdf5 file. A small, example hdf5 file is provided. This file has a 25 cycle, 12 trajectory dataset and an observable used for coloring of nodes. This tree can be visualized in Gephi.


Adapted from: https://gitlab.com/nmroussey/resampling_tree_tutorial Converted from compatibility with wepy h5 to westpa h5 files (in progress).


Installation and Requirements

If you have generated a Wepy hdf5 file, your environment should already contain all necessary packages.

Wepy: pip install wepy[all]

NumPy, NetworkX, and sys are also required.


Contents of the Repository

  1. run_restree_gen.py

The script to run to generate the tree. Arguments are: input h5 file and output file name.

  1. restree/

The codes required to make the tree.

  1. example_input.wepy.h5

A sample wepy output file.

Generating The Tree

In your enviornment that contains Wepy do:

python run_restree_gen.py example_input.wepy.h5 test_outfile.gexf

This will generate a .gexf file for use in 'Gephi'. Data included is nodes and edges, weights/probabilities (for node size), and an extra piece of information named COM, for coloring the tree.

NOTE: No merging and cloning is visible in this tree due to the short length of the simulation. This is not a mistake in the tree generation code.


References

Software Packages

'Wepy'

'NumPy'

'Gephi'

Papers

'Wepy: A Flexible Software Framework for Simulating Rare Events with Weighted Ensemble Resampling' Lotz, S., & Dickson, A., ACS Omega, 2020


ENV: conda install -c condo-forge mdtraj pip install wepy[all] Downgrade numpy to 1.23.* (pip install numpy=1.23)

wetree

wetree's People

Contributors

darianyang avatar

Watchers

 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.