File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed
Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -511,22 +511,10 @@ def mol_from_template_mmcif_file(
511511 mol = mol_from_smile (entry ['smile' ])
512512 entry ['rdchem_mol' ] = mol
513513
514- # reorder all the chainable biomolecules
515- # to simplify chaining them up and specifying the peptide or phosphodiesterase bonds
516-
517514for entry in CHAINABLE_BIOMOLECULES :
518- mol = entry ['rdchem_mol' ]
519-
520- atom_order = torch .arange (mol .GetNumAtoms ())
521-
522- atom_order [entry ['first_atom_idx' ]] = - 1
523- atom_order [entry ['last_atom_idx' ]] = 1e4
515+ num_atoms = mol .GetNumAtoms ()
524516
525- atom_reorder = atom_order .argsort ()
526-
527- mol = Chem .RenumberAtoms (mol , atom_reorder .tolist ())
528-
529- entry .update (
530- atom_reorder_indices = atom_reorder ,
531- rdchem_mol = mol
532- )
517+ assert 0 <= entry ['distogram_atom_idx' ] < num_atoms
518+ assert 0 <= entry ['first_atom_idx' ] < num_atoms
519+ assert 0 <= entry ['last_atom_idx' ] < num_atoms
520+ assert 0 <= entry ['token_center_atom_idx' ] < num_atoms
Original file line number Diff line number Diff line change 11[project ]
22name = " alphafold3-pytorch"
3- version = " 0.1.122 "
3+ version = " 0.1.123 "
44description = " Alphafold 3 - Pytorch"
55authors = [
66 {
name =
" Phil Wang" ,
email =
" [email protected] " }
You can’t perform that action at this time.
0 commit comments