Skip to main content

A Streamlit app for running AlphaFold 3 predictions

Project description

๐Ÿ”ฌ AFusion: AlphaFold 3 GUI & Toolkit

Documentation Status

AFusion is a user-friendly graphical interface designed to simplify the process of AlphaFold 3 installation and predictions, making it accessible to users who prefer a GUI over command-line interactions.

Demo site (generate input JSON files ONLY)

Table of Contents

Features

  • ๐Ÿงญ Guided Installation: GUI-based installer to simplify the installation process, easily set up the application step-by-step.
  • โœจ Intuitive Interface: Easily configure job settings, sequences, and execution parameters through a clean and modern GUI.
  • ๐Ÿ“‹ Entity Management: Add multiple entities (Protein, RNA, DNA, Ligand) with support for modifications, MSA options, and templates.
  • โš™๏ธ Dynamic JSON Generation: Automatically generates the required JSON input file for AlphaFold 3 based on user inputs.
  • ๐Ÿš€ Integrated Execution: Run AlphaFold 3 directly from the GUI with customizable Docker execution settings.
  • ๐Ÿ–ฅ๏ธ Visual Feedback: Provides command output within the interface for monitoring and debugging.
  • ๐Ÿ–ฅ๏ธ Console Output: Track processes and debug more effectively with backend console output.
  • ๐Ÿงฉ API for Batch Predictions: Perform batch predictions using the AFusion API in Python scripts.

๐ŸŒŸ New Feature!

  • AlphaFold 3 Output Analysis System: Automatically analyze and visualize results with customizable visualizations and generate detailed PDF reports for streamlined insights.

Prerequisites

Before using AFusion, ensure that you have the following:

  1. ๐Ÿณ Docker Installed: Docker is required to run AlphaFold 3. Install Docker from the official website.

  2. ๐Ÿงฌ AlphaFold 3 Installed: AFusion requires AlphaFold 3 to be installed and set up on your system. Follow the installation instructions provided in the AlphaFold 3 GitHub Repository to deploy AlphaFold 3. Or you can run step-by-step GUI by:

    afusion install
    
  3. ๐Ÿ Python 3.10 or Higher: AFusion is built with Python and requires Python 3.10 or higher.

Installation and Running

  1. Install AFusion

    Run the following command in your terminal to install AFusion:

    pip install afusion
    
  2. Run AFusion GUI

    After installation, you can start AFusion by running:

    afusion run
    

    This will launch the AFusion graphical user interface (GUI) in your default web browser.

Please Note:

  • ๐Ÿงฌ AlphaFold 3 Installation: Ensure you have correctly installed AlphaFold 3, including model parameters and required databases, following the AlphaFold 3 Installation Guide.

  • โš™๏ธ Docker Configuration: After installing Docker, make sure it is running properly and that your user has permission to execute Docker commands.

  • ๐Ÿ“ฆ Streamlit is Included in Dependencies: AFusion's installation will automatically install all required dependencies, including Streamlit. There's no need to install it separately.

If you encounter any issues during installation or usage, please refer to the relevant official documentation or contact us for support.

Usage

Launching AFusion

  1. ๐Ÿš€ Start the Streamlit App

    From the project directory, run:

    afusion run
    
  2. ๐ŸŒ Access the Application

    • The application will launch, and Streamlit will provide a local URL (e.g., http://localhost:8501).
    • Open the provided URL in your web browser to access AFusion.

Using the GUI

Find more about input in here.

1. Welcome Page

  • ๐Ÿ‘‹ Logo and Introduction: You'll see the AFusion logo and a brief description.
  • ๐Ÿ“‘ Navigation Sidebar: Use the sidebar on the left to navigate to different sections of the app.

2. Job Settings

  • ๐Ÿท๏ธ Job Name: Enter a descriptive name for your job.
  • ๐Ÿ”ข Model Seeds: Provide integer seeds separated by commas (e.g., 1,2,3).

3. Sequences

  • ๐Ÿ”ฌ Number of Entities: Select how many entities you want to add (Proteins, RNA, DNA, Ligand).
  • ๐Ÿ“‹ Entity Details: For each entity:
    • โš›๏ธ Entity Type: Select the type (Protein, RNA, DNA, Ligand).
    • ๐Ÿ†” Entity ID: Provide an identifier for the entity.
    • ๐Ÿงฌ Sequence Input: Enter the sequence information.
    • โœ๏ธ Modifications: Optionally add modifications with their types and positions.
    • ๐Ÿ“‚ MSA Options: Choose MSA generation options and provide MSA data if applicable.
    • ๐Ÿ“œ Templates: Optionally add template data with mmCIF content and indices.

4. Bonded Atom Pairs (Optional)

  • ๐Ÿ”— Add Bonds: Check the box to add bonded atom pairs.
  • โš›๏ธ Define Bonds: For each bond, provide details for the first and second atoms, including entity IDs, residue IDs, and atom names.

5. User Provided CCD (Optional)

  • ๐Ÿ“œ User CCD Input: Paste or enter custom CCD data in mmCIF format.

6. Generated JSON

  • ๐Ÿ“„ Review JSON Content: The application generates the JSON input file based on your entries. You can review it here.

7. AlphaFold 3 Execution Settings

  • ๐Ÿ—‚๏ธ Paths Configuration:

    • ๐Ÿ“ AF Input Path: Specify the path to the AlphaFold input directory (e.g., /home/user/af_input).
    • ๐Ÿ“‚ AF Output Path: Specify the path to the output directory (e.g., /home/user/af_output).
    • ๐Ÿ“‚ Model Parameters Directory: Provide the path to the model parameters directory.
    • ๐Ÿ“‚ Databases Directory: Provide the path to the databases directory.
  • โš™๏ธ Execution Options:

    • ๐Ÿ—๏ธ Run Data Pipeline: Choose whether to run the data pipeline (CPU-intensive).
    • ๐Ÿ’ป Run Inference: Choose whether to run inference (requires GPU).

8. Run AlphaFold 3

  • ๐Ÿ’พ Save JSON File: Click the "Save JSON File" button to save the generated JSON to the specified input path.
  • โ–ถ๏ธ Run AlphaFold 3 Now: Click the "Run AlphaFold 3 Now โ–ถ๏ธ" button to execute the AlphaFold 3 prediction using the Docker command.
    • ๐Ÿ”ง Docker Command: The exact Docker command used is displayed for your reference.
    • ๐Ÿ“Š Command Output: Execution output is displayed within the app for monitoring.

Visualization Module ๐ŸŽจ๐Ÿ“Š

  1. ๐Ÿš€ Launch Visualization Interface

    To start the visualization module, run:

    afusion visualization
    
  2. ๐Ÿ“‚ Upload and Analyze Results

    • ๐Ÿ“ค Upload Files: Upload AlphaFold 3 output files (e.g., .cif, .json) directly in the visualization interface.
    • ๐Ÿ”ฌ Visual Analysis: Perform visual analysis for each prediction, with detailed structure displays and customizable plots.
    • ๐Ÿ“„ Web Reports: Generate web reports like Alphafold3 Server for the analysis on demand.
  3. ๐Ÿ”— Integrated with Prediction GUI

    • ๐ŸŽ›๏ธ Seamless Integration: The visualization tools are also integrated into the prediction GUI. Once predictions are complete, you can switch seamlessly to the visualization tab for analysis.

Documentation

  • Full Documentation in here

ToDo

  • ๐Ÿ“„ Bulid Documentation: Tutorial for using the AFusion API in Python scripts for batch predictions.
  • โ™ป๏ธ Refactor Code and Publish to PyPI: Refactor the project code for improved modularity and maintainability, and publish the latest version to PyPI for easy installation.
  • ๐Ÿ”— Develop AlphaFold result analysis system: Design and implement a comprehensive analysis pipeline for AlphaFold prediction results.
  • โš›๏ธ Preset Common Small Molecules & Metal Ions: Add a dedicated section for quick access to commonly used small molecules and metal ions.
  • ๐Ÿ› ๏ธ New Tool for Chemical Small Molecules: Develop a new tool to handle and model chemical small molecules, supporting seamless integration into the prediction pipeline.
  • ๐Ÿ–ฅ๏ธ Add Console Output: Implement a backend console for output to track processes and debug more effectively.
  • ๐Ÿงฉ Create API for Batch Predictions: Develop a standalone function API to allow users to perform batch predictions with afusion in Python scripts.
  • ๐Ÿงญ Create Guided Installation GUI: To simplify the installation process.

Screenshots

Prediction GUI Interface

Click to view screenshot

image

Visualization Module

image

Visualization GUI Interface

Click to view screenshot

image

Installation GUI Interface

Click to view screenshot

image

CLI Output

Click to view screenshot

image

License

This project is licensed under the GPL3 License - see the LICENSE file for details.

Acknowledgements

  • AlphaFold 3: This GUI is designed to work with AlphaFold 3 by DeepMind.
  • Streamlit: AFusion is built using Streamlit, an open-source app framework for machine learning and data science teams.
  • Contributors: Waiting for more!

If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

Happy Folding! ๐Ÿงฌ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afusion-1.2.0.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

afusion-1.2.0-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file afusion-1.2.0.tar.gz.

File metadata

  • Download URL: afusion-1.2.0.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for afusion-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1ca404724f468fac6a8b47c4c56fed28617d4496105d58b00c2c7362ac4be205
MD5 33a74068d1c25b038c931e5e480ce9d6
BLAKE2b-256 11822aeffff4e6f0679194483e56ac37791c733dbfb69c8410d5665196d84ccc

See more details on using hashes here.

File details

Details for the file afusion-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: afusion-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for afusion-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7c89d0e27a71a8b61c1b5c3dd6c685cfae2a1c3a9236a558f7380a9ce527de
MD5 7af9a07b730f875a14fc3e8ae3c44037
BLAKE2b-256 6a6498055c6e8f3d9f596221b37912556bc1b2950219fec7b6aa4057a18d5180

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page