Skip to content

Instantly share code, notes, and snippets.

@ptosco
Created August 7, 2015 22:24
Show Gist options
  • Save ptosco/18df8551b6ed2bd75bfa to your computer and use it in GitHub Desktop.
Save ptosco/18df8551b6ed2bd75bfa to your computer and use it in GitHub Desktop.
{
"metadata": {
"name": "",
"signature": "sha256:6f1c56bd83c5b48e3eba9511139db05a46dddc7f87aa2a56b3d175470c3839be"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import sys\n",
"import rdkit\n",
"from rdkit import Chem\n",
"from rdkit.Chem.Draw import IPythonConsole"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 38
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol = Chem.MolFromSmiles('[NH2+]=C1C=CC(C=C1)=CN=CN')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 39
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAbAklEQVR4nO3de3RU5b3G8W+ClIAg\nSJCboCJqFZBLogVCQshkZgIhEdCAWCCCPaKUKtSzLF6wtj21RY72LNt6AY+XoiJV4YiMQCaTnQs3\nqQ0ErXIpxRAIdxJuCeTCzPljmigaJCR7MhP281kryyUzs/cPl3uevHu/7+8N8/l8PkRERCwqPNgF\niIiIBJOCUERELE1BKCIilqYgFBERS1MQioiIpSkIRUTE0hSEIiJiaQpCERGxNAWhiIhYmoJQREQs\nTUEoIiKWpiAUERFLUxCKiIilKQhFRMTSFIQiImJpCkIREbE0BaGIiFiaglBERCxNQSgiIpamIBQR\nEUtTEIqIiKUpCEVExNIUhCIiYmkKQhERsTQFoYiIWJqCUERELE1BKCIilqYgFBERS1MQioiIpSkI\nRUTE0hSEIiJiaQpCERGxNAWhiIhYmoJQREQsTUEoIiKWpiAUER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IiJiaQpCERGxNAWhiIhYmoJQ\nREQsTUEoIiKWpiAUERFLUxCKiIilKQhFRMTSFIQiImJpCkIREbE0BaGIiFiaglBERCxNQSgiIpam\nIBQREUtTEIqIiKUpCEVExNIUhCIiYmkKQhERsTQFoYiIWJqCUERELE1BKCIilqYgFBERS/t/tsCH\nE4//KYMAAAAASUVORK5CYII=\n",
"prompt_number": 40,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x259ff30>"
]
}
],
"prompt_number": 40
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# shouldn't this be considered aromatic?\n",
"for b in mol.GetBonds():\n",
" sys.stdout.write('{0:d},{1:d}'.format(b.GetBeginAtomIdx(), b.GetEndAtomIdx()) \\\n",
" + ' arom = ' + str(b.GetIsAromatic()) \\\n",
" + ', conj = ' + str(b.GetIsConjugated()) + '\\n')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"0,1 arom = False, conj = True\n",
"1,2 arom = False, conj = True\n",
"2,3 arom = False, conj = True\n",
"3,4 arom = False, conj = True\n",
"4,5 arom = False, conj = True\n",
"5,6 arom = False, conj = True\n",
"4,7 arom = False, conj = True\n",
"7,8 arom = False, conj = True\n",
"8,9 arom = False, conj = True\n",
"9,10 arom = False, conj = True\n",
"6,1 arom = False, conj = True\n"
]
}
],
"prompt_number": 41
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol=Chem.MolFromSmiles('NC1=CC=C(C=C1)C=NC=[NH2+]')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 42
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAc7ElEQVR4nO3de1RU5d4H8O8AioKK\ngAHel6KnvGVIZioyDg6ghqIlKErk8YKVlbXKLI/Z8X1Xmb6ndY6apXY0o+sR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ImI\nSNYYhEREJGsMQiIikjUGIRERyRqDkIiIZI1BSEREssYgJCIiWWMQEhGRrDEIiYhI1hiEREQkawxC\nIiKSNQYhERHJGoOQiIhkjUFIRESyxiAkIiJZYxASEZGsMQiJiEjWGIRERCRrDEIiIpI1BiEREcka\ng5CIiGSNQUhERLLGICQiIlljEBIRkawxCImISNb+H1+PCVDLWFWnAAAAAElFTkSuQmCC\n",
"prompt_number": 43,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x27c6360>"
]
}
],
"prompt_number": 43
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# if this is aromatic, shouldn't the resonance form above be considered aromatic too?\n",
"# I think both this and the above should match a 'C=[NH2+]' query twice, both on (0,1) and on (9,10), but not on (7,8)\n",
"for b in mol.GetBonds():\n",
" sys.stdout.write('{0:d},{1:d}'.format(b.GetBeginAtomIdx(), b.GetEndAtomIdx()) \\\n",
" + ' arom = ' + str(b.GetIsAromatic()) \\\n",
" + ', conj = ' + str(b.GetIsConjugated()) + '\\n')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"0,1 arom = False, conj = True\n",
"1,2 arom = True, conj = True\n",
"2,3 arom = True, conj = True\n",
"3,4 arom = True, conj = True\n",
"4,5 arom = True, conj = True\n",
"5,6 arom = True, conj = True\n",
"4,7 arom = False, conj = True\n",
"7,8 arom = False, conj = True\n",
"8,9 arom = False, conj = True\n",
"9,10 arom = False, conj = True\n",
"6,1 arom = True, conj = True\n"
]
}
],
"prompt_number": 44
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol = Chem.MolFromSmiles('C=C1C=CC(C=C1)=C')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 45
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAL/klEQVR4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h4eVm5tregrgkfhoFLiEsrIyvfDCC+rs7NStt95qes4V6enpUXBwsDZv3qyFCxea\nngN4JEIIXILT6dTcuXMVFhamLVu2mJ5zRZYtW6b29nZ99dVXGjdunOk5gEcihMA/OHz4sKKjo3Xo\n0CFFRka6/J3q6molJia6edlZlZWVl7yhp6mpSffee68aGho0c+ZMNy8DvAchBEaxePFiHT16VAcO\nHHB5VXXixAm1t7cbWCaFhobK19f3on93Op2aPXu2goOD9cEHHxhYBngPQgiMore3V8HBwdq2bZtS\nUlJMz7ks5eXlWrp0qbq6uuTv7296DuDRuGsUGIW/v79ycnKUmZmpwcFB03NGNTg4qKysLOXm5hJB\n4DIQQuAyZGZmysfHR+vXrzc9ZVRFRUXy8fFRRkaG6SmAV+CjUeAy7dy5U0888YQ6OjoUFBRkeo5L\nv/zyi0JDQ7Vjxw5jN/AA3oYQAv/CI488Ij8/P5WVlZme4tLChQv1xx9/aO/evaanAF7j2n4VNzDG\n1q1bp6ioKE2cONHjvn/r6elReXm5GhsbTU8BvApXhMC/VFNTo+LiYtMzXMrIyFBcXJzpGYBXIYQA\nAKtx1ygAwGqEEABgNUIIALAaIQQAWI0QAgCsRggBAFYjhAAAqxFCAIDVCCEAwGqEEABgNUIIALAa\nIQQAWI0QAgCsRggBAFYjhAAAqxFCAIDVCCEAwGqEEABgNUIIALAaIQQAWI0QAgCsRggBAFYjhAAA\nqxFCAIDVCCEAwGqEEABgNUIIALAaIQQAWI0QAgCsRggBAFYjhAAAqxFCAIDVCCEAwGqEEABgNUII\nALAaIQQAWI0QAgCsRggBAFYjhAAAqxFCAIDV/gcQ1ehrDRBotgAAAABJRU5ErkJggg==\n",
"prompt_number": 35,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x27c6050>"
]
}
],
"prompt_number": 35
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# I think this shouldn't be considered aromatic, because the ring bonds cannot be delocalized\n",
"for b in mol.GetBonds():\n",
" sys.stdout.write('{0:d},{1:d}'.format(b.GetBeginAtomIdx(), b.GetEndAtomIdx()) \\\n",
" + ' arom = ' + str(b.GetIsAromatic()) \\\n",
" + ', conj = ' + str(b.GetIsConjugated()) + '\\n')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"0,1 arom = False, conj = True\n",
"1,2 arom = True, conj = True\n",
"2,3 arom = True, conj = True\n",
"3,4 arom = True, conj = True\n",
"4,5 arom = True, conj = True\n",
"5,6 arom = True, conj = True\n",
"4,7 arom = False, conj = True\n",
"6,1 arom = True, conj = True\n"
]
}
],
"prompt_number": 47
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol = Chem.MolFromSmiles('O=C1C=CC(C=C1)=O')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 48
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAANWElEQVR4nO3dfUzVdcPH8Q+V942b\nl0aKtBwsNyMgxVQUKrVhWRhxb2DodhvmXWrPRoDy0FGuUudNIa4HMtMeIG2TUNsAxZxpKRkMUrlI\nHqRpGRtcxSUxIxHt3H+ou80Lk0DP9xy/79dfzqPHz+Zvvj3n/H6/4+V0Op0CAMBS15keAACASYQQ\nAGA1QggAsBohBABYjRACAKxGCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRACAKxG\nCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRACAKxGCAEAViOEAACrEUIAgNUIIQDA\naoQQAGA1QggAsBohBABYjRACAKxGCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRAC\nAKxGCAEAViOEAACrEUIAgNVuMD0A8DSlpaXKyckxPaNbSUlJioqKMj0D8CiEEPgLvvnmG8XExOiZ\nZ56Rn5+f6Tl/0NzcrJiYGFVUVGjMmDGm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LS9PChQu5wfSf6OjoUFJSklJTU+Xn52d6\nzlkecozBc3HWKPru9L+kDUulrA1S/c+Sz23SjBelvz8hDT13jdfixX26fOJgaKji+3j5xNq1axUS\nEqInnnhCL730Uq+f61q2bNky5eXlqaamRnPnzu3z5ROP9vXyifNnrvbkGAN6iRDCNdzkgvrCwkI9\n9thjqq2tVUBAQK+f71p0/kbk+fn5mj59untdUA9cRYQQ1omMjJS/v79130h/OQkJCWppadFnn31m\negrgUoQQ1uEG0/9u7969mjJlivbv36877uDidNiFEMJKTz31lCorK1VRUaHrrrP7nLHzNyIfP368\nVq9ebXoO4HJ2/wsAay1dulTfffed1q9fb3qKcR999JGOHj2q5cuXm54CGEEIYSVfX18tWbJEixYt\nUnt7u+k5xrS3tys1NVUOh0M33XST6TmAEYQQ1nr++ec1ZMgQvfrqq6anGJOVlSVfX18999xzpqcA\nxvAZIay2bds2xcbGqqamRiNGjDA9x6UOHz6skSNHqqSkRPfff7/pOYAxhBDWi46OVv/+/VVYWGh6\niktNnz5dnZ2dKi4uNj0FMIoQwnqNjY0aOXKkioqKNHXqVNNzXGLHjh2KiYmx8pUwcDFCCEhKTk7W\n9u3brfjS3tOnT+vOO+9UVFSUsrOzTc8BjONkGUBSZmamWltbtW7dOtNTrrq1a9eqtbVVmZmZpqcA\nboFXhMA5a9asUUZGhhoaGjR48GDTc66K1tZWBQYGasWKFZo/f77pOYBbIITAOefvsDJp0iStWrXK\n9JyrIjExUWVlZSovL7f+jjrAeYQQuEBZWZkiIyOvyXtu1tTUaMyYMdq9e7fuuece03MAt0EIgYvE\nx8erra1NO3bsMD3lipo6dap8fHxUUFBgegrgVgghcJFjx44pKChIBQUFio6ONj3niiguLtbMmTNV\nV1cnf39/03MAt8KHBMBF/P39lZSUpMTERHV2dpqe02ednZ1KTExUcnIyEQS6QQiBbqSnp+vUqVPK\nzc01PaXP3nrrLXV1dSk9Pd30FMAt8dYocAnr16/Xs88+q/r6et18882m5/RKc3OzAgMDtXr1as2a\nNcv0HMAtEULgEpxOpyZPnqyQkBCtWbPG9JxemT9/vmpra/Xll1/Ky8vL9BzALRFC4E9UVVUpIiJC\n+/btU1hYWLe/pqSkRLGxsS5edtaWLVsueUJPZWWl7rrrLpWXl2vs2LEuXgZ4DkIIXMacOXPU2Nio\nPXv2dPuq6vjx46qtrTWwTAoODpaPj8+//bzT6dTEiRMVGBioDz74wMAywHMQQuAyWlpaFBgYqHXr\n1ik+Pt70nB4pKCjQvHnz1NDQID8/P9NzALfGWaPAZfj5+SktLU3Jycnq6OgwPeeyOjo6lJKSovT0\ndCII9AAhBHogOTlZ3t7eWrlypekpl5WdnS1vb28lJSWZngJ4BN4aBXpo8+bNevTRR1VXV6eAgADT\nc7r1/fffKzg4WBs2bDB2Ag/gaQgh8Bc8+OCD8vX11fr1601P6dasWbP0888/a/v27aanAB7j2v4q\nbuAKW7FihcLDwzV48GC3+/ytublZBQUFqqioMD0F8Ci8IgT+otLSUuXk5Jie0a2kpCRFRUWZngF4\nFEIIALAaZ40CAKxGCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRACAKxGCAEAViOE\nAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRACAKxGCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1\nQggAsBohBABYjRACAKxGCAEAViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABYjRACAKxGCAEA\nViOEAACrEUIAgNUIIQDAaoQQAGA1QggAsBohBABY7f8A5190vCczv4EAAAAASUVORK5CYII=\n",
"prompt_number": 50,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x27c6600>"
]
}
],
"prompt_number": 50
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# This is not considered aromatic (correct)\n",
"for b in mol.GetBonds():\n",
" sys.stdout.write('{0:d},{1:d}'.format(b.GetBeginAtomIdx(), b.GetEndAtomIdx()) \\\n",
" + ' arom = ' + str(b.GetIsAromatic()) \\\n",
" + ', conj = ' + str(b.GetIsConjugated()) + '\\n')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"0,1 arom = False, conj = True\n",
"1,2 arom = False, conj = True\n",
"2,3 arom = False, conj = True\n",
"3,4 arom = False, conj = True\n",
"4,5 arom = False, conj = True\n",
"5,6 arom = False, conj = True\n",
"4,7 arom = False, conj = True\n",
"6,1 arom = False, conj = True\n"
]
}
],
"prompt_number": 49
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol = Chem.MolFromSmiles('NC=CC=O')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 51
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAN60lEQVR4nO3df2zUdZ7H8RdMW0r5\n2R/IUWV72F8UcNNqK1QCVNKLt2vx9rwtf5At2VtqMe7udN0zW045p7cb3GaD2Xa5Mw45SYrcqeWy\niSBsNwRDuRTbjeciFGxxy1qIUNBKtbL0B533/dHg8VNnoDND/TwfSRPS+X5m3uWP7zPf73fmO+PM\nzAQAgKPGR3sAAACiiRACAJxGCAEATiOEAACnEUIAgNMIIQDAaYQQAOA0QggAcBohBAA4jRACAJxG\nCAEATiOEAACnEUIAgNMIIQDAaYQQAOA0QggAcBohBAA4jRACAJxGCAEATiOEAACnEUIAgNMIIQDA\naYQQAOA0QggAcBohBAA4jRACAJxGCAEATiOEAACnEUIAgNMIIQDAaYQQAOA0QggAcBohBAA4jRAC\nAJxGCAEATiOEAACnEUIAgNMIIQDAaYQQAOA0QggAcBohBAA4jRACAJxGCAEATiOEAACnEUIAgNMI\nIQDAaYQQAOA0QggAcBohBAA4jRACAJxGCAEATiOEAACnEUIAgNMIIQDAaYQQAOA0QggAcBohBAA4\njRACAJxGCAEATiOEAACnEUIAX/jwww+jPQIQcYQQgCTp1KlTyszMVHl5ubq7u6M9DhAxh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mS9POfS2vWXPbLWClpmnT+\n7HVi1y99+Kk09Q5pjJ0ZxthECDG6BqWdVdI3EqRx8dKyf5K6rj5rOF568J+l75v0k19KH43x018T\nJ05UVVWV2tvblZ6ervvuu09r167Vxx9/9WGyx+P5+gbwS42TcldIvb+T3j135UOftUk7P5K+fZ/k\n4n8NIo4QYlT1HZT+7W3J3y71HpbmvSn9uuXa7cYnS1V1UsKb0nufRHzMsLh0DbC5uVltbW3Kzs5W\nXV2dhofHeOnDJfO7Uvk06fv/KDV2SBf6pc69UvlqyVZKq+ZFe0I4ghBiVE25X/r9Xulb35Cm/bWU\nnymlTLr+tklLpE0/kxJus3eI3qpL1wCfe+45bdiwQQ888IB6e3ujPdbtZ9x0qeq30rNzpJ8ukSYn\nSAufkFJ+Ku1+TprB7gmRMc4smNtAACEKSO+8KP3qrPSbf5HucPQUV29vr1577TWtXbs22qMAuAFC\niFFnf5F++wvp96nSL5+Qkh2NIICxIUJ3b4Qzzkv/USl1PiJteuQ674wHgNsMR4QYVV2vSAtXSWcu\n+92qN6T/fDhqIwHAlyKEAACn8bYsAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAA\npxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEII\nAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4j\nhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADg\nNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggB\nAE4jhAAAp/0fNQEfvedJNR0AAAAASUVORK5CYII=\n",
"prompt_number": 52,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x27c60c0>"
]
}
],
"prompt_number": 52
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol = Chem.MolFromSmiles('[NH2+]=CC=C[O-]')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 53
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"mol"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"png": "iVBORw0KGgoAAAANSUhEUgAAAcIAAACWCAYAAABNcIgQAAAN2UlEQVR4nO3de0yVd57H8Y9yKxYU\nAWtL28ELoCJtZMRYO146U2edKttON8v+0Q2kbfTUzDYHd+yUbrQFs7GQpruDOzNrz9RtB+umiSYz\nCbq6s+pEu6LYXVsbqSKKkeiKVPFO53A5fPePE6nWSzlyOcDv/UpIKjy/c772D988v+c55wwzMxMA\nAI4aHu4BAAAIJ0IIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQA\nOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFC\nAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAa\nIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAA\npxFCAIDTCCEAwGmEEADgNEIIAHAaIQQAOI0QAgCcRggBAE4jhAAApxFCAIDTCCEAwGmEEADgNEII\nAHAaIQQAOI0QAgCcRgjhnDNnzoR7BAADCCGEM5qamrRkyRKlpaURQwBdCCGGvGvXrumNN97QhAkT\ndPnyZX3xxRdKSUkJ91gABojIcA8A9BUz00cffaQVK1YoISFBlZWVevrpp286JhAIKCIiIkwTDgyB\nQECSnP//AHdxRoghqbq6WrNmzdLy5cv15ptv6vPPP78lgocOHVJGRoY2bdoUpinDb+PGjUpPT9ek\nSZNUWloqv98f7pGAfkcIMaQ0NTWpoKBAc+fO1cyZM3X06FF5PB5FRt66+TF58mR5vV4tX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9OjReuml\nl1RXVyePx9Pt64iDSvpfS4tHSS++JP3nUenPfql+p7S4QLK/kV7IDPeEcAAhRK+6elD69f9Kvlrp\n0iEp80/SL6tvf2ziHOlXr0sjhvXriIPK0qVLlZCQEO4x+s6wBKno99Jb46Wfz5HiRkgzfyYl/1za\n+rY0hn+i0PeGmdndXtIF3Lt26d/+Vmp8XVo5lHb0AAwp/LqFvtEpffa+tD1T8mSHexgAuDPOCNHr\n7Gvp9/8o/TFFKv2ZlDQEL20BGDp4QT16V4u0rlCqf1b61bO3eXkYAAwwnBGiVzV8LM18QWq64Xsv\nbJH+fVHYRgKAuyKEAACncbMMAMBphBAA4DRCCABwGiEEADiNEAIAnEYIAQBOI4QAAKcRQgCA0wgh\nAMBphBAA4DRCCABwGiEEADiNEAIAnEYIAQBOI4QAAKcRQgCA0wghAMBphBAA4DRCCABwGiEEADiN\nEAIAnEYIAQBOI4QAAKcRQgCA0wghAMBphBAA4DRCCABwGiEEADiNEAIAnEYIAQBOI4QAAKcRQgCA\n0wghAMBphBAA4DRCCABwGiEEADiNEAIAnEYIAQBOI4QAAKcRQgCA0wghAMBphBAA4DRCCABwGiEE\nADiNEAIAnEYIAQBOI4QAAKcRQgCA0wghAMBphBAA4DRCCABwGiEEADiNEAIAnPb/PV3CgIZIDzcA\nAAAASUVORK5CYII=\n",
"prompt_number": 54,
"text": [
"<rdkit.Chem.rdchem.Mol at 0x27c6210>"
]
}
],
"prompt_number": 54
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# In principle both of the above resonance structure should match a 'C=[NH2+]' query on (0,1)"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment