https://github.com/adosar/retnet

A 3D ConvNet for Reticular Chemistry.

https://github.com/adosar/retnet

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
    Links to: nature.com
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.9%) to scientific vocabulary

Keywords

3d-cnn chemistry convolutional-neural-networks deep-learning machine-learning materials-science metal-organic-frameworks porous-materials
Last synced: 7 months ago · JSON representation

Repository

A 3D ConvNet for Reticular Chemistry.

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Topics
3d-cnn chemistry convolutional-neural-networks deep-learning machine-learning materials-science metal-organic-frameworks porous-materials
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

RetNet Architecture

[![Requires Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-blue?logo=python&logoColor=yellow&label=Python&labelColor=black&color=blue)](https://www.python.org/downloads/) [![Requires PyTorch 2.1.0+|2.0.1+cu118](https://img.shields.io/badge/PyTorch-2.1.0+|2.0.1+cu118-blue?logo=pytorch)](https://pytorch.org/get-started/locally/) [![Static Badge](https://img.shields.io/badge/Figshare-data-blue?logo=figshare)](https://figshare.com/articles/dataset/RetNet/24598845) [![Static Badge](https://img.shields.io/badge/paper-doi.org%2F10.1038%2Fs41598--023--50309--8-blue)](https://www.nature.com/articles/s41598-023-50309-8)

💎 RetNet

A 3D ConvNet that takes energy voxels as input and ouputs gas adsorption properties.

This repository contains a PyTorch implementation of RetNet, which can be found on model.py module.

🚀 Training RetNet

The following example is used to train RetNet on the University of Ottawa database[^2] for predicting CO2 uptake.

[!IMPORTANT] It is strongly recommended to run all the scripts inside a virtual environment.

Clone the repository

bash git clone https://github.com/adosar/retnet cd retnet

Dependencies

  1. Create a virtual environment: bash python -m venv <venvir_name>
  2. Activate it: bash source <venvir_name>/bin/activate
  3. Install the dependencies: bash (<venvir_name>) pip install -r requirements.txt

Collect the data

The following directory structure is required prior to training: bash data/ ├── MOFs ├── all_MOFs_screening_data.csv ├── batch_train │ ├── clean_names.json │ └── clean_voxels.npy └── batch_val_test ├── clean_names.json └── clean_voxels.npy

To achieve that:

  1. Get the inputs: bash wget -O- 'https://figshare.com/ndownloader/files/43220463' | tar -xzvf-

    [!WARNING]
    If you use any of this data in your research work, you should cite the original work[^1].

  2. Get the labels: bash wget -O- 'https://archive.materialscloud.org/record/file?filename=screening_data.tar.gz&record_id=62' | tar -xzvf- -C data/MOFs

    [!WARNING]
    If you use any of this data in your research work, you should cite the original work[^2].

Train the model

Check the comments in training.py to customize the training phase on your needs. bash (<venvir_name>) python training.py * GPU training time: 40s per epoch on Nvidia GTX 1650 Super * CPU training time: 257s per epoch on Intel i5 8400

[!TIP] If you want to use a GPU but the VRAM is not enough: 1. Decrease the training batch size to a value smaller than 64. 2. Remove some Conv layers or decrease the number of Conv filters.

📰 Citing

If you use the RetNet architecture in your research work or any of the scripts of this repository, please consider citing:

@article{Sarikas2024,
  title = {Gas adsorption meets deep learning: voxelizing the potential energy surface of metal-organic frameworks},
  volume = {14},
  ISSN = {2045-2322},
  url = {http://dx.doi.org/10.1038/s41598-023-50309-8},
  DOI = {10.1038/s41598-023-50309-8},
  number = {1},
  journal = {Scientific Reports},
  publisher = {Springer Science and Business Media LLC},
  author = {Sarikas,  Antonios P. and Gkagkas,  Konstantinos and Froudakis,  George E.},
  year = {2024},
  month = jan 
}

[^1]: Sarikas, A.P., Gkagkas, K. & Froudakis, G.E. Gas adsorption meets deep learning: voxelizing the potential energy surface of metal-organic frameworks. Sci Rep 14, 2242 (2024). https://doi.org/10.1038/s41598-023-50309-8

[^2]: Boyd, P.G., Chidambaram, A., García-Díez, E. et al. Data-driven design of metal–organic frameworks for wet flue gas CO2 capture. Nature 576, 253–256 (2019). https://doi.org/10.1038/s41586-019-1798-7

Owner

  • Name: Antonios P. Sarikas
  • Login: adosar
  • Kind: user
  • Company: Department of Chemistry, University of Crete

GitHub Events

Total
  • Issues event: 1
  • Issue comment event: 3
Last Year
  • Issues event: 1
  • Issue comment event: 3

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 41
  • Total Committers: 1
  • Avg Commits per committer: 41.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Antonios Sarikas a****s@g****m 41

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wi-xu (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

requirements.txt pypi
  • joblib ==1.2.0
  • numpy ==1.24.1
  • pandas ==2.0.1
  • scikit-learn ==1.2.2
  • torch *
  • torchaudio *
  • torcheval *
  • torchtnt *
  • torchvision *