libmolgrid: GPU Accelerated Molecular Gridding for Deep Learning Applications

Jocelyn Sunseri, David Ryan Koes
12/10/2019
cs.LGphysics.chem-phq-bio.BM

Official code: gnina/libmolgrid (156 stars, C++, Apache-2.0, last commit 2025-11-03).

Abstract

There are many ways to represent a molecule as input to a machine learning model and each is associated with loss and retention of certain kinds of information. In the interest of preserving three-dimensional spatial information, including bond angles and torsions, we have developed libmolgrid, a general-purpose library for representing three-dimensional molecules using multidimensional arrays.

Show full abstract

This library also provides functionality for composing batches of data suited to machine learning workflows, including data augmentation, class balancing, and example stratification according to a regression variable or data subgroup, and it further supports temporal and spatial recurrences over that data to facilitate work with recurrent neural networks, dynamical data, and size extensive modeling. It was designed for seamless integration with popular deep learning frameworks, including Caffe, PyTorch, and Keras, providing good performance by leveraging graphical processing units (GPUs) for computationally-intensive tasks and efficient memory usage through the use of memory views over preallocated buffers. libmolgrid is a free and open source project that is actively supported, serving the growing need in the molecular modeling community for tools that streamline the process of data ingestion, representation construction, and principled machine learning model development.

View on arXivView PDF

Code Implementations(1)

gnina/libmolgridOfficial100%
Apache-2.0

Comprehensive library for fast, GPU accelerated molecular gridding for deep learning workflows

15659C++, PythonFeb 21, 20191 years agoApache-2.0

Similar Papers

Cite this paper

@article{sunseri2019libmolgrid,
  title  = {libmolgrid: GPU Accelerated Molecular Gridding for Deep Learning Applications},
  author = {Jocelyn Sunseri and David Ryan Koes},
  year   = {2019},
  eprint = {1912.04822},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.04822}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1912.04822.svg)](https://codeofpaper.com/paper/1912.04822)

Discussion