Code Monkey home page Code Monkey logo

particlegrid's Introduction

ParticleGrid

build Actions Status

Description

ParticleGrid is a SIMD accelerated 3D grid generation library. 3D grids are generated from conformed molecular points and can be used with conventional 3D deep learning tools.

Publications

2021 ELLIS Machine Learning for Molecule Discovery Workshop, our contribution.

Visualizations

Molecule 1 Molecule 2

Installation

Pip

Install via pip with:

pip install git+https://github.com/ParticleGrid/ParticleGrid.git

Source

Clone and build repo with:

git clone https://github.com/ParticleGrid/ParticleGrid.git
cd ParticleGrid
pip install .

How to Use

Generating a grid from 3D coordinates:

import numpy as np
from ParticleGrid import coord_to_grid

# points are in the format (channel, x, y, z)
test_points = np.array([0, 0.5, 0.5, 0.5],
                       [1, 0.0, 0.1, 0.2])

grid = coord_to_grid(test_points,
                     width=1,
                     height=1,
                     depth=1,
                     num_channels=2,
                     grid_size=32,
                     variance=0.05)

print(grid.shape)  # Generates a (2,32,32,32) grid

More example uses of ParticleGrid can be found in the examples directory.

Upcoming Features

  • Discretization
  • Per-atom weights and variance
  • 2D grids
  • Periodic crystal grids
  • Multi-threading support
  • GPU support
  • PyTorch integration

License

ParticleGrid has a BSD-style license, as found in the LICENSE file.

particlegrid's People

Contributors

efergus avatar szaman19 avatar mauricioap avatar den-run-ai avatar

Watchers

James Cloos 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.