Skip to content

Commit d0b5ff9

Browse files
committed
v1.2.2
1 parent 01507d7 commit d0b5ff9

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

notebooks/basic_molecular_docking.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
" zcoor = [molConf.GetAtomPosition(c).z for c in range(len(molAtom))]\n",
222222
" return [xcoor, ycoor, zcoor]\n",
223223
"\n",
224-
"def labogrid(coorList, scale=2):\n",
224+
"def labox(coorList, scale=2):\n",
225225
" X, Y, Z = coorList[0], coorList[1], coorList[2]\n",
226226
" range = [[min(X), max(X)],\n",
227227
" [min(Y), max(Y)],\n",
@@ -304,7 +304,7 @@
304304
" columns=INTER[BSI_key][BD_key][0])\n",
305305
" if not DF.empty:\n",
306306
" INTER_TYPE.extend([BD_key.upper()]*len(DF))\n",
307-
" INTER_DF = INTER_DF.append(DF)\n",
307+
" INTER_DF = pd.concat([INTER_DF, DF], ignore_index=True)\n",
308308
" INTER_DF = INTER_DF.assign(BOND=INTER_TYPE)\n",
309309
" INTER_DF.reset_index(drop=True, inplace=True)\n",
310310
" INTER_DF.to_csv(CSV_Ifile, index=False)\n",
@@ -382,7 +382,7 @@
382382
" showChain=False, showResLabel=False, showVDW=False,\n",
383383
" outline=False):\n",
384384
" # Variables\n",
385-
" mview = py3Dmol.view(1000,1500)\n",
385+
" mview = py3Dmol.view(width=960, height=640)\n",
386386
" if model in \"none\":\n",
387387
" model = cType = color = \"\"\n",
388388
" if model in \"cartoon\":\n",
@@ -391,7 +391,7 @@
391391
" cType, color = \"colorscheme\", color + \"Carbon\"\n",
392392
"\n",
393393
" # Protein Model\n",
394-
" count = 1\n",
394+
" count = 0\n",
395395
" prot_model = count\n",
396396
" print(f\"+ Showing {os.path.basename(inputP)}\")\n",
397397
" mol = open(inputP, \"r\").read()\n",
@@ -451,10 +451,10 @@
451451
"\n",
452452
"def VIEW_ELIG(inputE, showAtomLabel=False, outline=False):\n",
453453
" # Variable\n",
454-
" mview = py3Dmol.view(1000, 1500)\n",
454+
" mview = py3Dmol.view(width=960, height=640)\n",
455455
"\n",
456456
" # Experimental ligand model\n",
457-
" count = 1\n",
457+
" count = 0\n",
458458
" elig_model = count\n",
459459
" print(f\"+ Showing {os.path.basename(inputE)}\")\n",
460460
" mol = open(inputE, \"r\").read()\n",
@@ -484,10 +484,10 @@
484484
"\n",
485485
"def VIEW_LIG(inputL, showHs=False, showAtomLabel=False, outline=False):\n",
486486
" # Variable\n",
487-
" mview = py3Dmol.view(1000, 1500)\n",
487+
" mview = py3Dmol.view(width=960, height=640)\n",
488488
"\n",
489489
" # Ligand model\n",
490-
" count = 1\n",
490+
" count = 0\n",
491491
" lig_model = count\n",
492492
" print(f\"+ Showing {os.path.basename(inputL)}\")\n",
493493
" smi = open(inputL, \"r\").read()\n",
@@ -525,7 +525,7 @@
525525
"\n",
526526
"def VIEW_GRID(inputP, inputE, focusRes, center, size=[10, 10, 10]):\n",
527527
" # Variable\n",
528-
" mview = py3Dmol.view(1000, 1500)\n",
528+
" mview = py3Dmol.view(width=960, height=640)\n",
529529
"\n",
530530
" # Grid box\n",
531531
" bxi, byi, bzi = center[0], center[1], center[2]\n",
@@ -538,7 +538,7 @@
538538
" \"color\": \"skyBlue\", \"opacity\": 0.7})\n",
539539
"\n",
540540
" # Protein model\n",
541-
" count = 1\n",
541+
" count = 0\n",
542542
" prot_model = count\n",
543543
" print(f\"+ Showing {os.path.basename(inputP)}\")\n",
544544
" molA = open(inputP, \"r\").read()\n",
@@ -585,7 +585,7 @@
585585
" showLig=False, showAllPose=False, showBestPose=False,\n",
586586
" outline=False):\n",
587587
" # Variables\n",
588-
" mview = py3Dmol.view(1000,1500)\n",
588+
" mview = py3Dmol.view(width=960, height=640)\n",
589589
" if model in \"none\":\n",
590590
" model = cType = color = \"\"\n",
591591
" if model in \"cartoon\":\n",
@@ -594,7 +594,7 @@
594594
" cType, color = \"colorscheme\", color + \"Carbon\"\n",
595595
"\n",
596596
" # Protein model\n",
597-
" count = 1\n",
597+
" count = 0\n",
598598
" prot_model = count\n",
599599
" print(f\"+ Showing {os.path.basename(inputP)}\")\n",
600600
" molA = open(inputP, \"r\").read()\n",
@@ -1098,13 +1098,13 @@
10981098
"#@markdown Place the **< Gridbox >** at the center of binding site. \\\n",
10991099
"\n",
11001100
"Focus_residues = \"\" #@param {type:\"string\"}\n",
1101-
"Method = \"LABOGRID\" #@param [\"LABOGRID\", \"eBoxSize\", \"eBoxSize-modified\", \"Autodock-Grid\", \"manual\"]\n",
1101+
"Method = \"LaBOX\" #@param [\"LaBOX\", \"eBoxSize\", \"eBoxSize-modified\", \"Autodock-Grid\", \"manual\"]\n",
11021102
"\n",
11031103
"#@markdown ---\n",
11041104
"\n",
1105-
"if Method == \"LABOGRID\":\n",
1105+
"if Method == \"LaBOX\":\n",
11061106
" atomCoord = get_atom_coordinate(EXP_pdb_Dfile)\n",
1107-
" grid = labogrid(atomCoord)\n",
1107+
" grid = labox(atomCoord)\n",
11081108
" Center, Size = grid[0], grid[1]\n",
11091109
"\n",
11101110
"if Method == \"eBoxSize\":\n",
@@ -1398,7 +1398,7 @@
13981398
"source": [
13991399
"#@title **Show interaction profile of ligand** {run: \"auto\"}\n",
14001400
"\n",
1401-
"Select_ligand = \"C26A6_2\" #@param {type : \"string\"}\n",
1401+
"Select_ligand = \"C26A6_1\" #@param {type : \"string\"}\n",
14021402
"LIG_inter_CSV_Ifile = os.path.join(INT_FLD, f\"{Select_ligand[:-2]}/{Select_ligand}_inter.csv\")\n",
14031403
"view_interaction(LIG_inter_CSV_Ifile, result=\"summary\")"
14041404
],
@@ -1549,7 +1549,7 @@
15491549
],
15501550
"provenance": [],
15511551
"mount_file_id": "1jj_nqfJuwJhZyR3x8vpiddRd-EWsuQVr",
1552-
"authorship_tag": "ABX9TyOZmzKPcYq9ca4Vc0dM6ZFN",
1552+
"authorship_tag": "ABX9TyOJ7aq4YTm/SBv+Dyg23ETy",
15531553
"include_colab_link": true
15541554
},
15551555
"kernelspec": {

0 commit comments

Comments
 (0)