Practical overview
When it fits
Use it for research or implementation study when you have, or can generate, the required protein features and model files and want a PyTorch-based prediction workflow.
Who it is for
- Researchers studying or comparing AlphaFold-style protein-structure prediction implementations.
- Python and PyTorch users who want to inspect the model code or run predictions on prepared protein features.
Documented uses
- Generate Distogram, Background or Torsion model outputs from prepared target features.
- Use converted model weights, or work with original .ckpt weights and .tfrec inputs using the documented TensorFlow option.
- Prepare target features from a sequence using the included feature-generation script and its external dependencies.
- Inspect and debug a PyTorch implementation of AlphaFold.
Requirements & limits
The project is available as a public GitHub repository under the Apache-2.0 license.
- The prediction script accepts .pkl, .npy and .tfrec inputs containing required features.
- Python 3.6+ and PyTorch 1.3+ are listed dependencies; TensorFlow 2.0+ is optional for original .ckpt weights with .tfrec inputs.
- Generating features from a sequence requires external bioinformatics tools, databases and local script configuration.
- The README identifies two profile-with-prior features as set to zero.
- The README reports approximately seven-times-slower performance than its TensorFlow comparison.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run a prediction from prepared feature data
Use the documented command-line interface to produce Distogram probabilities for an input file.
Before you start
- Python 3.6+ and PyTorch 1.3+.
- An input feature file in .pkl, .npy or .tfrec format, plus model weights and the required model directory.
- TensorFlow 2.0+ if using original .ckpt weights with .tfrec inputs.
Steps
Prepare an input file containing the required features.
Choose the input path, output directory, model directory, replica and model type as needed.
For the README example, run the command below to use replica 0 of a Distogram model.
python alphafold.py -i test_data/T1019s2.pkl -o T1019s2_out -t D -r 0
Expected outcome
The script is configured to generate distogram probabilities for the supplied target features in the selected output directory.
Guide limitations
- The README's example depends on its test input and the relevant model files being available.
- The README reports this implementation as around seven times slower than its TensorFlow comparison; this is not a general performance guarantee.
Set up target-feature generation prerequisites
Prepare the documented dependencies and script settings for generating model input features from a target sequence.
Before you start
- A target sequence in a .seq file using FASTA format.
- PSI-BLAST, HH-suite3, and plmDCA; Matlab or Octave is needed for the plmDCA code.
- HH-suite sequence-search databases and local paths for the feature-generation tools.
Steps
Set up PSI-BLAST from NCBI BLAST and HH-suite3 from its project repository.
Set up plmDCA and its required Matlab or Octave components, following the repository's README instructions.
In
feature.sh, setTARGET,TARGET_DIR,TARGET_SEQandPLMDCA_DIRto the target name and relevant local paths.
Expected outcome
The documented prerequisites and target-specific script configuration are in place for using `feature.sh` to generate required features.
Guide limitations
- The README's modified plmDCA file is described as provided for Octave; the author says it has not been tested in Matlab.
- The README says
profile_with_priorandprofile_with_prior_without_gapsare set to all zeros.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- Urinx/alphafold_pytorch · Official homepage title · retained in its source language

