Giter Club home page Giter Club logo

chemistryfeaturization.jl's Introduction

ChemistryFeaturization.jl

Run testscodecov

Unified graph building and featurizing for Weave.jl, AtomicGraphNets.jl, and (maybe soon) more!

Documentation is starting to be built in the wiki!

Features

Graph-building and featurization from CIF files

  • Build graphs (as SimpleWeightedGraphs) from CIF files using PyCall to pymatgen functions
  • Visualization using GraphPlot, check out the visualize_graph function in the graph_functions.jl file, you can make pretty pictures like these, whether the graph is simpler or more complicated (thickness of connections indicates weight of edge in graph (higher weights for nearer neighbors)):

graph_EuMgTl2graph_K4W414O14 (NB: this animation's syntax is slightly out of date, new one to come!)

  • Flexible featurization (currently onehot-style) and decoding: choose features to include, level of discretization, etc., and directly decode feature vectors to check values:
julia> features = Symbol.(["Group", "Row", "Block", "Atomic mass", "Atomic radius", "X"])
6-element Array{Symbol,1}:
 :Group
 :Row
 :Block
 Symbol("Atomic mass")
 Symbol("Atomic radius")
 :X

julia> atom_feature_vecs, featurization = make_feature_vectors(features)
[ Info: 16 elements were dropped so that all features are defined.

julia> decode_feature_vector(atom_feature_vecs["Si"], featurization)
Dict{Symbol,Any} with 6 entries:
  Symbol("Atomic mass")   => (27.1071, 53.2064)
  Symbol("Atomic radius") => (0.955, 1.19)
  :Group                  => 14
  :Row                    => 3
  :Block                  => "p"
  :X                      => (1.684, 2.012)

SMILES input

Sean to add...

Requirements

  • Julia 1.4+
  • packages listed in Project.toml
  • In addition, you will need your PyCall to have access to the pymatgen package, which can be added using Conda.jl as: Conda.add("pymatgen"; channel="conda-forge"), as well as the rdkit package (Conda.add("rdkit"; channel="conda-forge"))

Future Plans:

  • "hybrid" featurizations using features from multiple paradigms if available
  • more input file formats? e.g. SELFIES

chemistryfeaturization.jl's People

Contributors

chrisrackauckas avatar dhairyalgandhi avatar github-actions[bot] avatar rkurchin avatar seanxiaoyusun avatar

Watchers

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