https://github.com/baaihealth/opencomplex

Trainable PyTorch framework for developing protein, RNA and complex models.

https://github.com/baaihealth/opencomplex

Science Score: 26.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
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary

Keywords

alphafold2 protein-structure pytorch rna-structure
Last synced: 9 months ago · JSON representation

Repository

Trainable PyTorch framework for developing protein, RNA and complex models.

Basic Info
  • Host: GitHub
  • Owner: baaihealth
  • License: apache-2.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 14.6 MB
Statistics
  • Stars: 259
  • Watchers: 15
  • Forks: 30
  • Open Issues: 3
  • Releases: 0
Topics
alphafold2 protein-structure pytorch rna-structure
Created over 3 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

header

OpenComplex

OpenComplex is an open-source platform for developing protein and RNA complex models.
Based on DeepMind's Alphafold 2 and AQ Laboratory's OpenFold, OpenComplex support almost all features from Alphafold 2 and OpenFold, and introduces the following new features: * Reimplemented Alphafold-Multimer models. * RNA and protein-RNA complex models with high precision. * Kernel fusion and optimization on >=Ampere GPUs, brings 16%

Figure 1. OpenComplex inference result of RNA and protein-RNA complex.

We will release training results and pretrained parameters soon.

Installation (Linux)

All Python dependencies are specified in environment.yml. For producing sequence alignments, you'll also need kalign, the HH-suite, and one of {jackhmmer, MMseqs2 (nightly build)} installed on on your system. Finally, some download scripts require aria2c and aws.

For convenience, we provide a script that installs Miniconda locally, creates a conda virtual environment, installs all Python dependencies, and downloads useful resources, including both sets of model parameters. Run:

bash scripts/install_third_party_dependencies.sh

To activate the environment, run:

bash source scripts/activate_conda_env.sh

With the environment active, compile CUDA kernels with

bash python3 setup.py install

To install the HH-suite to /usr/bin, run

bash scripts/install_hh_suite.sh

Usage

Data preparation

To run feature generation pipeline from .fasta to feature.pkl on DeepMind's MSA and template database, run e.g.: bash python ./scripts/extract_pkl_from_fas.py ./example_data/fasta/ ./example_data/features/ where example_data is the directory containing example fasta . If jackhmmer, hhblits, hhsearch and kalign are available at the default path of /usr/bin, their binary_path command-line arguments can be dropped. If you've already computed alignments for the query, you have the option to skip the expensive alignment computation here with --use_precomputed_alignments.

Train and Inference

See example bash scripts in example_data/scripts

Testing

To run unit tests, use

bash scripts/run_unit_tests.sh

The script is a thin wrapper around Python's unittest suite, and recognizes unittest arguments. E.g., to run a specific test verbosely:

bash scripts/run_unit_tests.sh -v tests.test_model

Certain tests require that AlphaFold (v2.0.1) be installed in the same Python environment. These run components of AlphaFold and OpenFold side by side and ensure that output activations are adequately similar. For most modules, we target a maximum pointwise difference of 1e-4.

Citation

If you find our open-sourced code & models helpful to your research, please also consider star🌟 and cite📑 this repo. Thank you for your support! @misc{OpenComplex_code, author={Jingcheng, Yu and Zhaoming, Chen and Zhaoqun, Li and Mingliang, Zeng and Wenjun, Lin and He, Huang and Qiwei, Ye}, title={Code of OpenComplex}, year={2022}, howpublished = {\url{https://github.com/baaihealth/OpenComplex}} } It is recommended to also cite OpenFold and AlphaFold.

License and Disclaimer

Copyright 2022 BAAI.

Extended from AlphaFold and OpenFold, OpenComplex is licensed under the permissive Apache Licence, Version 2.0.

Contributing

If you encounter problems using OpenComplex, feel free to create an issue! We also welcome pull requests from the community.

Contact Information

For help or issues using the repos, please submit a GitHub issue.

For other communications, please contact Qiwei Ye (qwye@baai.ac.cn).

Owner

  • Name: baaihealth
  • Login: baaihealth
  • Kind: organization

GitHub Events

Total
  • Watch event: 37
  • Push event: 1
  • Fork event: 3
Last Year
  • Watch event: 37
  • Push event: 1
  • Fork event: 3

Dependencies

environment.yml conda
  • cudatoolkit 11.3.*
  • hhsuite 3.3.0
  • hmmer 3.3.2
  • kalign2 2.04
  • openmm 7.5.1.*
  • pdbfixer
  • pip
  • python 3.9.*
  • pytorch 1.12.*
  • setuptools 59.5.0.*
setup.py pypi