Git Product home page Git Product logo

hydgl's Introduction

HyDGL

https://dl.circleci.com/status-badge/img/gh/hkneiding/HyDGL/tree/main.svg?style=svg https://codecov.io/gh/hkneiding/HyDGL/branch/main/graph/badge.svg?token=UB88TKUCY7 https://readthedocs.org/projects/xtb-python/badge/?version=latest

HyDGL is a Python parser for generating descriptive graphs based on quantum chemistry data ready for use in Graph Neural Networks. In particular it provides the following features:

  • adaptable generation of graph representations based on quantum chemistry data

    • connectivity based on NBO data or bond orders
    • features (both periodic table properties and quantum chemistry based)
  • export of graphs as networkx objects or pytorch_geometric graphs

So far most graph representation learning approaches in quantum chemistry focus on organic molecules and build graphs based on geometry using basic features. For the accurate prediction of more complicated compounds (such as transition metal complexes) richer representations are required that include more of the relevant physics. This package provides the functionality to generate such graphs mainly based on Natural Bond Orbital (NBO) data and is the code associated with the paper Deep Learning Metal Complex Properties with Natural Quantum Graphs.

The package can be used for any types of molecules but is aimed at transition metal complexes, more precisely the tmQM data set.

Requirements

This package requires a Python (>3.9.x) installation with the following packages:

  • pytorch
  • pytorch_geometric
  • plotly

How to use

The package can be installed directly from this repository with pip:

pip install git+https://github.com/hkneiding/HyDGL

which installs HyDGL as a library to your Python installation or virtual environment.

Afterwards you can import the library with:

>>> import HyDGL

A more detailed guide on the usage can be found in the documentation.

What is under the hood?

There are two main parts in the HyDGL package. The first one is the GraphGenerator class that generates graphs based on specified parameters. Secondly there is the Graph class which represents a full graph in terms of nodes, edges, their respective features, graph-level features and attributes/labels. Furthemore, it includes functionality to produce objects in a format ready to use with the networkx and pytorch_geometric package. The remaining classes are mainly miscellaneous helper classes and enums.This general structure is displayed by the following UML diagram.

./doc/uml.png

Difficulties?

If you encounter any problems, errors or bugs please do not hesitate to open an issue or directly contact me via mail ([email protected]).

hydgl's People

Contributors

hkneiding 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.