Skip to content

Commit ae7a555

Browse files
Merge pull request #94 from JohnsonBiophysicsLab/pip-test
Pip test
2 parents df4f810 + 210e8aa commit ae7a555

File tree

6 files changed

+458
-58
lines changed

6 files changed

+458
-58
lines changed

demo/Hete-3mer-8ERQ.ipynb

Lines changed: 104 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"name": "stdout",
3434
"output_type": "stream",
3535
"text": [
36-
"Successfully downloaded assembly file: /Users/sikao/Documents/8erq_dir/8erq-assembly1.cif.gz\n",
36+
"Successfully downloaded assembly file: /Users/yueying/Documents/8erq_dir/8erq-assembly1.cif.gz\n",
3737
"Binding interfaces detected:\n",
3838
"Chain A:\n",
3939
" Center of Mass (COM): (269.01806640625, 242.17724609375, 295.64739990234375)\n",
@@ -89,9 +89,9 @@
8989
"{'H': 'A', 'L': 'B', 'A': 'C'}\n",
9090
"Homologous chain groups identified:\n",
9191
"[['A'], ['H'], ['L']]\n",
92-
"Regularized coarse-grained structure saved to /Users/sikao/Documents/8erq_dir/regularized_coarse_grained_structure.cif.\n",
93-
"PyMOL script saved to /Users/sikao/Documents/8erq_dir/visualize_regularized_coarse_grained.pml.\n",
94-
"Model saved successfully to /Users/sikao/Documents/8erq_dir/8erq_model.json\n"
92+
"Regularized coarse-grained structure saved to /Users/yueying/Documents/8erq_dir/regularized_coarse_grained_structure.cif.\n",
93+
"PyMOL script saved to /Users/yueying/Documents/8erq_dir/visualize_regularized_coarse_grained.pml.\n",
94+
"Model saved successfully to /Users/yueying/Documents/8erq_dir/8erq_model.json\n"
9595
]
9696
}
9797
],
@@ -218,6 +218,105 @@
218218
"subprocess.run([\"pymol\", \"-cq\", f\"{abs_save_folder}/visualize_regularized_coarse_grained.pml\"], check=True)\n",
219219
"display(Image(filename=f\"{abs_save_folder}/comparison_regularized.png\"))"
220220
]
221+
},
222+
{
223+
"cell_type": "code",
224+
"execution_count": 5,
225+
"metadata": {},
226+
"outputs": [
227+
{
228+
"name": "stdout",
229+
"output_type": "stream",
230+
"text": [
231+
"Working directory set to: /Users/yueying/Documents/8erq_dir\n",
232+
"start parameters\n",
233+
"\tnItr = 20000000\n",
234+
"\ttimeStep = 0.5\n",
235+
"\ttimeWrite = 20000\n",
236+
"\ttrajWrite = 2000000\n",
237+
"\tpdbWrite = 2000000\n",
238+
"\trestartWrite = 100000\n",
239+
"\tcheckPoint = 100000\n",
240+
"\ttransitionWrite = 100000\n",
241+
"\tclusterOverlapCheck = false\n",
242+
"\tscaleMaxDisplace = 100.0\n",
243+
"\toverlapSepLimit = 0.1\n",
244+
"end parameters\n",
245+
"\n",
246+
"start boundaries\n",
247+
"\tWaterBox = [600.0, 600.0, 600.0]\n",
248+
"\thasCompartment = false\n",
249+
"\tcompartmentR = 0\n",
250+
"\tcompartmentSiteD = 0\n",
251+
"\tcompartmentSiteRho = 0\n",
252+
"\tWaterBox = [600.0, 600.0, 600.0]\n",
253+
"end boundaries\n",
254+
"\n",
255+
"start molecules\n",
256+
"\tA : 100\n",
257+
"\tB : 100\n",
258+
"\tC : 100\n",
259+
"end molecules\n",
260+
"\n",
261+
"start reactions\n",
262+
"\tC(A1) + A(C1) <-> C(A1!1).A(C1!1)\n",
263+
"\t\tonRate3Dka = 10.0\n",
264+
"\t\toffRatekb = 1591598.2278125454\n",
265+
"\t\tsigma = 0.9322358965873718\n",
266+
"\t\tnorm1 = [0, 0, 1]\n",
267+
"\t\tnorm2 = [0, 0, 1]\n",
268+
"\t\tassocAngles = [1.714723, 1.771477, -2.872323, 1.016331, -2.661668]\n",
269+
"\t\tlength3Dto2D = 2.0\n",
270+
"\t\tbindRadSameCom = 1.5\n",
271+
"\t\tloopCoopFactor = 1.0\n",
272+
"\t\texcludeVolumeBound = False\n",
273+
"\n",
274+
"\tC(B1) + B(C1) <-> C(B1!1).B(C1!1)\n",
275+
"\t\tonRate3Dka = 10.0\n",
276+
"\t\toffRatekb = 4198547.726575994\n",
277+
"\t\tsigma = 0.7177354693412781\n",
278+
"\t\tnorm1 = [0, 0, 1]\n",
279+
"\t\tnorm2 = [0, 0, 1]\n",
280+
"\t\tassocAngles = [2.744988, 2.569596, 0.642691, -1.523236, 1.645259]\n",
281+
"\t\tlength3Dto2D = 2.0\n",
282+
"\t\tbindRadSameCom = 1.5\n",
283+
"\t\tloopCoopFactor = 1.0\n",
284+
"\t\texcludeVolumeBound = False\n",
285+
"\n",
286+
"\tA(B1) + B(A1) <-> A(B1!1).B(A1!1)\n",
287+
"\t\tonRate3Dka = 10.0\n",
288+
"\t\toffRatekb = 0.060219999999999996\n",
289+
"\t\tsigma = 0.6551324129104614\n",
290+
"\t\tnorm1 = [0, 0, 1]\n",
291+
"\t\tnorm2 = [0, 0, 1]\n",
292+
"\t\tassocAngles = [2.525500, 2.750069, -2.409915, -1.480280, -2.301118]\n",
293+
"\t\tlength3Dto2D = 2.0\n",
294+
"\t\tbindRadSameCom = 1.5\n",
295+
"\t\tloopCoopFactor = 1.0\n",
296+
"\t\texcludeVolumeBound = False\n",
297+
"\n",
298+
"end reactions\n",
299+
"\n"
300+
]
301+
}
302+
],
303+
"source": [
304+
"# create the Simulation object using the Simulation class\n",
305+
"# the simulation is connected to the PDBModel object created above\n",
306+
"simulation = ion.Simulation(pdb_model, save_folder)\n",
307+
"\n",
308+
"# generate the NERDSS input files for the simulation\n",
309+
"simulation.generate_nerdss_input()\n",
310+
"\n",
311+
"simulation.modify_inp_file(\n",
312+
" {'nItr': 20000000, 'timeStep': 0.5,\n",
313+
" 'timeWrite': 20000, 'trajWrite': 2000000,\n",
314+
" 'pdbWrite': 2000000,\n",
315+
" 'WaterBox': [600.0, 600.0, 600.0]}\n",
316+
" )\n",
317+
"\n",
318+
"simulation.print_inp_file()"
319+
]
221320
}
222321
],
223322
"metadata": {
@@ -236,7 +335,7 @@
236335
"name": "python",
237336
"nbconvert_exporter": "python",
238337
"pygments_lexer": "ipython3",
239-
"version": "3.9.21"
338+
"version": "3.9.23"
240339
}
241340
},
242341
"nbformat": 4,

demo/Homo-180mer-8LQP.ipynb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7820,6 +7820,29 @@
78207820
"subprocess.run([\"pymol\", \"-cq\", f\"{abs_save_folder}/visualize_regularized_coarse_grained.pml\"], check=True)\n",
78217821
"display(Image(filename=f\"{abs_save_folder}/comparison_regularized.png\"))"
78227822
]
7823+
},
7824+
{
7825+
"cell_type": "code",
7826+
"execution_count": null,
7827+
"metadata": {},
7828+
"outputs": [],
7829+
"source": [
7830+
"# create the Simulation object using the Simulation class\n",
7831+
"# the simulation is connected to the PDBModel object created above\n",
7832+
"simulation = ion.Simulation(pdb_model, save_folder)\n",
7833+
"\n",
7834+
"# generate the NERDSS input files for the simulation\n",
7835+
"simulation.generate_nerdss_input()\n",
7836+
"\n",
7837+
"simulation.modify_inp_file(\n",
7838+
" {'nItr': 20000000, 'timeStep': 0.5,\n",
7839+
" 'timeWrite': 20000, 'trajWrite': 2000000,\n",
7840+
" 'pdbWrite': 2000000, 'A': 1000,\n",
7841+
" 'WaterBox': [600.0, 600.0, 600.0]}\n",
7842+
" )\n",
7843+
"\n",
7844+
"simulation.print_inp_file()"
7845+
]
78237846
}
78247847
],
78257848
"metadata": {

demo/Homo-18mer-5L93.ipynb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,29 @@
968968
"subprocess.run([\"pymol\", \"-cq\", f\"{abs_save_folder}/visualize_regularized_coarse_grained.pml\"], check=True)\n",
969969
"display(Image(filename=f\"{abs_save_folder}/comparison_regularized.png\"))"
970970
]
971+
},
972+
{
973+
"cell_type": "code",
974+
"execution_count": null,
975+
"metadata": {},
976+
"outputs": [],
977+
"source": [
978+
"# create the Simulation object using the Simulation class\n",
979+
"# the simulation is connected to the PDBModel object created above\n",
980+
"simulation = ion.Simulation(pdb_model, save_folder)\n",
981+
"\n",
982+
"# generate the NERDSS input files for the simulation\n",
983+
"simulation.generate_nerdss_input()\n",
984+
"\n",
985+
"simulation.modify_inp_file(\n",
986+
" {'nItr': 20000000, 'timeStep': 0.5,\n",
987+
" 'timeWrite': 20000, 'trajWrite': 2000000,\n",
988+
" 'pdbWrite': 2000000,\n",
989+
" 'WaterBox': [600.0, 600.0, 600.0]}\n",
990+
" )\n",
991+
"\n",
992+
"simulation.print_inp_file()"
993+
]
971994
}
972995
],
973996
"metadata": {

demo/Homo-3mer-5VA4.ipynb

Lines changed: 92 additions & 19 deletions
Large diffs are not rendered by default.

demo/Homo-4mer-8Y7S.ipynb

Lines changed: 117 additions & 20 deletions
Large diffs are not rendered by default.

demo/Homo-5mer-8F8P.ipynb

Lines changed: 99 additions & 14 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)