Skip to content

Commit

Permalink
Update an example script
Browse files Browse the repository at this point in the history
  • Loading branch information
smliu1997 committed Jul 5, 2023
1 parent a135701 commit d04cf35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/TRE-HP1alpha-dimer/run_build_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
flag3 = ((a1 in csd1) and (a2 in csd2))
if flag1 or flag2 or flag3:
new_native_pairs.loc[len(new_native_pairs.index)] = row
hp1alpha_dimer_parser.native_pairs = new_native_pairs
hp1alpha_dimer_parser.native_pairs = new_native_pairs.copy()
hp1alpha_dimer_parser.native_pairs.loc[:, 'epsilon'] = 6.0
hp1alpha_dimer_parser.parse_exclusions() # update exclusions based on the new native pairs

# prepare system
Expand All @@ -49,7 +50,7 @@
protein.add_protein_bonds(force_group=1)
protein.add_protein_angles(force_group=2)
protein.add_protein_dihedrals(force_group=3)
protein.add_native_pairs(epsilon=6.0, force_group=4)
protein.add_native_pairs(force_group=4)
protein.add_contacts(force_group=5)
protein.add_elec_switch(salt_concentration, 300*unit.kelvin, force_group=6)
protein.atoms.to_csv('hp1alpha_dimer_CA.csv', index=False)
Expand Down

0 comments on commit d04cf35

Please sign in to comment.