Skip to content

Code to build diffusion models for pMHC structural data

Notifications You must be signed in to change notification settings

cmbi/pmhc-diffusion-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pMHC diffusion model

dependencies

  • Pytorch 2.0.0
  • h5py 3.11.0
  • Numpy 2.0.0
  • BioPython 1.84
  • OpenFold 0.0.1

input data

The input format is like in SwiftMHC.

HDF5 file:
 |
 + -- complex 1:
       + -- name (str)
       |
       + -- peptide
       |     |
       |     + -- backbone_rigid_tensor (P x 4 x 4)
       |     + -- aatype (P)
       |     + -- sequence_onehot (P x 22)
       |     + -- torsion_angles_sin_cos (P x 7 x 2)
       |     + -- torsion_angles_mask (P x 7)
       |
       + -- protein
             |
             + -- backbone_rigid_tensor (M x 4 x 4)
             + -- aatype (M)
             + -- sequence_onehot (M x 22)
             + -- atom14_gt_positions (M x 14 x 3)
             + -- atom14_gt_exists (M x 14)
             + -- cross_residues_mask (M)

training

$ python optimize.py train_set.hdf5 100 model.pth

testing

$ python test.py model.pth test_set.hdf5

About

Code to build diffusion models for pMHC structural data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages