|
33 | 33 | "name": "stdout", |
34 | 34 | "output_type": "stream", |
35 | 35 | "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", |
37 | 37 | "Binding interfaces detected:\n", |
38 | 38 | "Chain A:\n", |
39 | 39 | " Center of Mass (COM): (269.01806640625, 242.17724609375, 295.64739990234375)\n", |
|
89 | 89 | "{'H': 'A', 'L': 'B', 'A': 'C'}\n", |
90 | 90 | "Homologous chain groups identified:\n", |
91 | 91 | "[['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" |
95 | 95 | ] |
96 | 96 | } |
97 | 97 | ], |
|
218 | 218 | "subprocess.run([\"pymol\", \"-cq\", f\"{abs_save_folder}/visualize_regularized_coarse_grained.pml\"], check=True)\n", |
219 | 219 | "display(Image(filename=f\"{abs_save_folder}/comparison_regularized.png\"))" |
220 | 220 | ] |
| 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 | + ] |
221 | 320 | } |
222 | 321 | ], |
223 | 322 | "metadata": { |
|
236 | 335 | "name": "python", |
237 | 336 | "nbconvert_exporter": "python", |
238 | 337 | "pygments_lexer": "ipython3", |
239 | | - "version": "3.9.21" |
| 338 | + "version": "3.9.23" |
240 | 339 | } |
241 | 340 | }, |
242 | 341 | "nbformat": 4, |
|
0 commit comments