Code Monkey home page Code Monkey logo

pathreducer's Introduction

PathReducer

PathReducer is a tool that takes as input some set of molecular geometries in .xyz file format (e.g., an intrinsic reaction coordinate, a molecular dynamics trajectory, a relaxed potential energy surface scan) and outputs a reduced dimensional space for that set of molecular geometries.

PathReducer takes as input

  1. the path to the .xyz file (or files) of interest, as a string
  2. the number of dimensions to reduce to, as an integer
  3. optionally (though often necessary for visualization when representing the molecular structures as interatomic distances) the indexes of atoms (with numbering starting at 1, not 0) surrounding a stereogenic center in the system, as a list of integers

Currently, dimensionality reduction is conducted using Principal Component Analysis (PCA), though other dimensionality reduction techniques will be implemented in the future.

To initially define a reduced dimensional space, use the pathreducer function. To transform new data into an already defined reduced dimensional space, use the transform_new_data function.

Installation

Dependencies

Dependencies can be found in requirements.txt. To install all dependencies, use pip install in Terminal:

pip install -r requirements.txt

Example Usage

Test scripts for using PathReducer's basic functions are provided in the test_scripts folder. Additionally, the Jupyter notebook PathReducer Walkthrough I.ipynb guides you through an example system. An interactive function is also available to lead you through the process step-by-step by calling

from dimensionality_reduction_functions import *

pathreducer_interactive()

in a Python 3 shell.

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.