Skip to content

Commit

Permalink
prepare the radiuses, to customize radius based on atom type for rsa
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Sep 27, 2024
1 parent 736fb4f commit f81055a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions alphafold3_pytorch/alphafold3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5286,8 +5286,19 @@ def __init__(
self.register_buffer('lddt_thresholds', torch.tensor([0.5, 1.0, 2.0, 4.0]))

self.dssp_path = dssp_path

self.use_inhouse_rsa_calculation = use_inhouse_rsa_calculation

atom_type_radii = tensor([
1.65, # 0 - nitrogen
1.87, # 1 - carbon alpha
1.76, # 2 - carbon
1.4, # 3 - oxygen
1.8, # 4 - side atoms
1.4 # 5 - water
])

self.register_buffer('atom_radii', atom_type_radii)

@property
def is_mkdssp_available(self):
Expand Down

0 comments on commit f81055a

Please sign in to comment.