Skip to content

alexsoleg/cartnet-streamlit

Repository files navigation

CartNet Streamlit Web App

Pipeline

CartNet online demo available at: CartNet Web App

CartNet is a graph neural network specifically designed to predict Anisotropic Displacement Parameters (ADPs) in crystal structures. The model has been trained on over 220,000 molecular crystal structures from the Cambridge Structural Database (CSD), making it highly accurate and robust for ADP prediction tasks. CartNet addresses the computational challenges of traditional methods by encoding the full 3D geometry of atomic structures into a Cartesian reference frame, bypassing the need for unit cell encoding. The model incorporates innovative features, including a neighbour equalization technique to enhance interaction detection and a Cholesky-based output layer to ensure valid ADP predictions. Additionally, it introduces a rotational SO(3) data augmentation technique to improve generalization across different crystal structure orientations, making the model highly efficient and accurate in predicting ADPs while significantly reducing computational costs.

This repository contains a web application based on the official implementation of CartNet, which can be found at imatge-upc/CartNet.

⚠️ Warning: The online web application can only process systems with less than 300 atoms in the unit cell. For large systems, please use the local application.

Local Application

Installation of the local application

To set up the local application, you need to install the dependencies listed in requirements.txt. You can do this by running the following command:

pip install -r requirements.txt

Usage

You can make predictions directly from Python using the predict.py script.

The script takes two arguments:

  1. input_file: Path to the input CIF file
  2. output_file: Path where you want to save the processed CIF file

Example usage:

python predict.py input.cif output.cif

Or, if you prefer, you can use the browser app on your local machine without the atom number limitation by running:

streamlit run main_local.py

How to cite

If you use CartNet in your research, please cite our paper:

@article{your_paper_citation,
title={Title of the Paper},
author={Author1 and Author2 and Author3},
journal={Journal Name},
year={2023},
volume={XX},
number={YY},
pages={ZZZ}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages