projet de deep-learning. Apprentissage de poches de liaison de protéines-ligands

DeepDrug-checkpoint.ipynb 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# DeepDrug3D"
  8. ]
  9. },
  10. {
  11. "cell_type": "code",
  12. "execution_count": 1,
  13. "metadata": {},
  14. "outputs": [],
  15. "source": [
  16. "import numpy as np"
  17. ]
  18. },
  19. {
  20. "cell_type": "markdown",
  21. "metadata": {},
  22. "source": [
  23. "## Create pocket lists\n",
  24. "4 pockets are created :\n",
  25. " + control\n",
  26. " + steroid\n",
  27. " + heme\n",
  28. " + nucleotide"
  29. ]
  30. },
  31. {
  32. "cell_type": "code",
  33. "execution_count": 3,
  34. "metadata": {},
  35. "outputs": [],
  36. "source": [
  37. "with open(\"control.list\", \"r\") as filin:\n",
  38. " control = filin.read()\n",
  39. "control = control.split(\"\\n\")\n",
  40. "control.pop()"
  41. ]
  42. },
  43. {
  44. "cell_type": "code",
  45. "execution_count": null,
  46. "metadata": {},
  47. "outputs": [],
  48. "source": [
  49. "with open(\"steroid.list\", \"r\") as filin:\n",
  50. " steroid = filin.read()\n",
  51. "steroid = steroid.split(\"\\n\")\n",
  52. "steroid.pop()"
  53. ]
  54. },
  55. {
  56. "cell_type": "code",
  57. "execution_count": null,
  58. "metadata": {},
  59. "outputs": [],
  60. "source": [
  61. "with open(\"heme.list\", \"r\") as filin:\n",
  62. " heme = filin.read()\n",
  63. "heme = heme.split(\"\\n\")\n",
  64. "heme.pop()"
  65. ]
  66. },
  67. {
  68. "cell_type": "code",
  69. "execution_count": null,
  70. "metadata": {},
  71. "outputs": [],
  72. "source": [
  73. "with open(\"nucleotide.list\", \"r\") as filin:\n",
  74. " nucleotide = filin.read()\n",
  75. "nucleotide = nucleotide.split(\"\\n\")\n",
  76. "nucleotide.pop()"
  77. ]
  78. }
  79. ],
  80. "metadata": {
  81. "kernelspec": {
  82. "display_name": "Python 3",
  83. "language": "python",
  84. "name": "python3"
  85. },
  86. "language_info": {
  87. "codemirror_mode": {
  88. "name": "ipython",
  89. "version": 3
  90. },
  91. "file_extension": ".py",
  92. "mimetype": "text/x-python",
  93. "name": "python",
  94. "nbconvert_exporter": "python",
  95. "pygments_lexer": "ipython3",
  96. "version": "3.7.4"
  97. }
  98. },
  99. "nbformat": 4,
  100. "nbformat_minor": 4
  101. }