-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from choderalab/feature/script-feature-tests
New features for scripts, and refactoring of ions and MC sampling code
- Loading branch information
Showing
52 changed files
with
122,956 additions
and
1,325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"_comment": "This script generates a necessary checkpoint file to start a regular constant-pH simulation.", | ||
"input": { | ||
"_comment": "Simulation requires an mmCIF file and a ffxml residue. Please specify the input directory under dir.", | ||
"dir": "{name}-output", | ||
"structure": "{name}-water.cif" | ||
}, | ||
"output": { | ||
"dir": "{name}-simulation", | ||
"basename": "{name}" | ||
}, | ||
"forcefield": { | ||
"_comment1": "Standard, included xml files. Don't forget -obc2 files if using implicit.", | ||
"default": [ | ||
"amber10-constph.xml", | ||
"gaff.xml", | ||
"tip3p.xml" | ||
], | ||
"_comment2": "Custom generated xml file (needs to be in input dir.", | ||
"user": [ | ||
"{name}.xml" | ||
] | ||
}, | ||
"format_vars": { | ||
"_comment1": "These variables are filled into file names for input and output when you use {} style syntax.", | ||
"name": "1D" | ||
}, | ||
"system": { | ||
"_comment1": "Systemwide settings, such as temperature, and long range method", | ||
"_comment2": "If PME left out, nocutoff is used.", | ||
"PME": { | ||
"_comment": "Ewald + periodic system settings", | ||
"ewald_error_tolerance": 1.0e-5, | ||
"switching_distance_nm": 0.85, | ||
"nonbonded_cutoff_nm": 1.0, | ||
"barostat_interval": 25, | ||
"pressure_atm": 1.0 | ||
}, | ||
"temperature_k": 300.0, | ||
"salt_concentration_molar": 0.150 | ||
}, | ||
"integrator": { | ||
"timestep_fs": 2.0, | ||
"constraint_tolerance": 1.0e-7, | ||
"collision_rate_per_ps": 1.0 | ||
}, | ||
"preprocessing": { | ||
"minimization_tolerance_kjmol": 1e-5, | ||
"minimization_max_iterations": 30, | ||
"num_thermalization_steps": 10 | ||
}, | ||
"importance": { | ||
"_comment": "Add this block if you wish to use importance sampling. Specify the fixed state as a list of integers for each titratable residue.", | ||
"titration_states": [ | ||
4 | ||
] | ||
}, | ||
"reference_free_energies": { | ||
"_comment": "This block contains reference free energies obtained by calibration for each residue and each state. Keys should be residue names, and results a list of free energy values for each state.", | ||
"FD3": [ | ||
3.0, | ||
1.0, | ||
4.0, | ||
1.0, | ||
5.0, | ||
9.0, | ||
2.0, | ||
7.0 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"_comment": "This script generates a necessary checkpoint file to start a regular constant-pH simulation.", | ||
"input": { | ||
"_comment": "Simulation requires an mmCIF file and a ffxml residue. Please specify the input directory under dir.", | ||
"dir": "{name}-output", | ||
"structure": "{name}-water.cif" | ||
}, | ||
"output": { | ||
"dir": "{name}-simulation", | ||
"basename": "{name}" | ||
}, | ||
"forcefield": { | ||
"_comment1": "Standard, included xml files. Don't forget -obc2 files if using implicit.", | ||
"default": [ | ||
"amber10-constph.xml", | ||
"gaff.xml", | ||
"tip3p.xml" | ||
], | ||
"_comment2": "Custom generated xml file (needs to be in input dir.", | ||
"user": [ | ||
"{name}.xml" | ||
] | ||
}, | ||
"format_vars": { | ||
"_comment1": "These variables are filled into file names for input and output when you use {} style syntax.", | ||
"name": "1D" | ||
}, | ||
"system": { | ||
"_comment1": "Systemwide settings, such as temperature, and long range method", | ||
"_comment2": "If PME left out, nocutoff is used.", | ||
"PME": { | ||
"_comment": "Ewald + periodic system settings", | ||
"ewald_error_tolerance": 1.0e-5, | ||
"switching_distance_nm": 0.85, | ||
"nonbonded_cutoff_nm": 1.0, | ||
"barostat_interval": 25, | ||
"pressure_atm": 1.0 | ||
}, | ||
"temperature_k": 300.0, | ||
"salt_concentration_molar": 0.150, | ||
"neutral_charge_rule": 2 | ||
}, | ||
"integrator": { | ||
"timestep_fs": 2.0, | ||
"constraint_tolerance": 1.0e-7, | ||
"collision_rate_per_ps": 1.0 | ||
}, | ||
"preprocessing": { | ||
"minimization_tolerance_kjmol": 1e-5, | ||
"minimization_max_iterations": 30, | ||
"num_thermalization_steps": 10 | ||
}, | ||
"reference_free_energies": { | ||
"_comment": "This block contains reference free energies obtained by calibration for each residue and each state. Keys should be residue names, and results a list of free energy values for each state.", | ||
"FD3": [ | ||
3.0, | ||
1.0, | ||
4.0, | ||
1.0, | ||
5.0, | ||
9.0, | ||
2.0, | ||
7.0 | ||
] | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
examples/cli-examples/prepare_systematic_importance_sampling.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"_comment": "This script generates a necessary checkpoint file to start a regular constant-pH simulation.", | ||
"input": { | ||
"_comment": "Simulation requires an mmCIF file and a ffxml residue. Please specify the input directory under dir.", | ||
"dir": "{name}-output", | ||
"structure": "{name}-water.cif" | ||
}, | ||
"output": { | ||
"dir": "{name}-simulation", | ||
"basename": "{name}" | ||
}, | ||
"forcefield": { | ||
"_comment1": "Standard, included xml files. Don't forget -obc2 files if using implicit.", | ||
"default": [ | ||
"amber10-constph.xml", | ||
"gaff.xml", | ||
"tip3p.xml" | ||
], | ||
"_comment2": "Custom generated xml file (needs to be in input dir.", | ||
"user": [ | ||
"{name}.xml" | ||
] | ||
}, | ||
"format_vars": { | ||
"_comment1": "These variables are filled into file names for input and output when you use {} style syntax.", | ||
"name": "1D" | ||
}, | ||
"system": { | ||
"_comment1": "Systemwide settings, such as temperature, and long range method", | ||
"_comment2": "If PME left out, nocutoff is used.", | ||
"PME": { | ||
"_comment": "Ewald + periodic system settings", | ||
"ewald_error_tolerance": 1.0e-5, | ||
"switching_distance_nm": 0.85, | ||
"nonbonded_cutoff_nm": 1.0, | ||
"barostat_interval": 25, | ||
"pressure_atm": 1.0 | ||
}, | ||
"temperature_k": 300.0, | ||
"salt_concentration_molar": 0.150 | ||
}, | ||
"integrator": { | ||
"timestep_fs": 2.0, | ||
"constraint_tolerance": 1.0e-7, | ||
"collision_rate_per_ps": 1.0 | ||
}, | ||
"preprocessing": { | ||
"minimization_tolerance_kjmol": 1.0e-5, | ||
"minimization_max_iterations": 30, | ||
"num_thermalization_steps": 10 | ||
}, | ||
"importance": { | ||
"_comment": "Add this block if you wish to use importance sampling. Specify the fixed state as a list of integers for each titratable residue.", | ||
"systematic": true | ||
}, | ||
"reference_free_energies": { | ||
"_comment": "This block contains reference free energies obtained by calibration for each residue and each state. Keys should be residue names, and results a list of free energy values for each state.", | ||
"FD3": [ | ||
3.0, | ||
1.0, | ||
4.0, | ||
1.0, | ||
5.0, | ||
9.0, | ||
2.0, | ||
7.0 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.