{ "info": { "author": "Mario Krenn", "author_email": "mario.krenn@utoronto.ca, alan@aspuru.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "## SELFIES\n\nSELFIES (SELF-referencIng Embedded Strings) is a general-purpose, sequence-based,\nrobust representation of semantically constrained graphs. It is based on a Chomsky\ntype-2 grammar, augmented with two self-referencing functions. A main objective is\nto use SELFIES as direct input into machine learning models, in particular in\ngenerative models, for the generation of graphs with high semantical and syntactical\nvalidity.\n\nSee the paper at arXiv: https://arxiv.org/abs/1905.13741\n\nThe code presented here is a concrete application of SELFIES in chemistry, for\nthe robust representation of molecule. We show the encoding and decoding of three\nmolecules from various databases, and the generation of a new, random molecule\nwith high semantical and syntactical validity.\n\n### Installation\nYou can install SELFIES via\n```\npip install selfies\n```\n\n### Examples\nSeveral examples can be seen in examples/selfies_example.py. Here is a simple encoding and decoding:\n\n```python\nfrom selfies import encoder, decoder\n\ntest_molecule1='CN1C(=O)C2=C(c3cc4c(s3)-c3sc(-c5ncc(C#N)s5)cc3C43OCCO3)N(C)C(=O)C2=C1c1cc2c(s1)-c1sc(-c3ncc(C#N)s3)cc1C21OCCO1' # non-fullerene acceptors for organic solar cells\nselfies1=encoder(test_molecule1)\nsmiles1=decoder(selfies1)\n\nprint('test_molecule1: '+test_molecule1+'\\n')\nprint('selfies1: '+selfies1+'\\n')\nprint('smiles1: '+smiles1+'\\n')\nprint('equal: '+str(test_molecule1==smiles1)+'\\n\\n\\n')\n```\n\n- an example of SELFIES in a generative model can be seen in the directory 'VariationalAutoEncoder_with_SELFIES\\'. There, SMILES datasets are automatically translated into SELFIES, and used for training of a variational autoencoder (VAE).\n\n### Python version\nfully tested with Python 3.7.1 on\n- 134.000 molecules at QM9 database (https://www.nature.com/articles/sdata201422)\n- 250.000 molecues from the ZINC database (https://en.wikipedia.org/wiki/ZINC_database)\n- 72 million molecules from PubChem (https://pubchem.ncbi.nlm.nih.gov/)\n- 50.000 molecules for organic solar cells (https://www.sciencedirect.com/science/article/pii/S2542435117301307)\n- 1 million molecules from organic chemical reactions (https://pubs.rsc.org/en/content/articlehtml/2018/sc/c8sc02339e)\n\nsupported:\n- Python 3.7.2, 3.7.1, 3.6.8, 3.6.7, 2.7.15\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aspuru-guzik-group/selfies", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "selfies", "package_url": "https://pypi.org/project/selfies/", "platform": "", "project_url": "https://pypi.org/project/selfies/", "project_urls": { "Homepage": "https://github.com/aspuru-guzik-group/selfies" }, "release_url": "https://pypi.org/project/selfies/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "Self-referencing embedded strings", "version": "0.2.4" }, "last_serial": 5911325, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "60437fa7f5aa3a8033914b906d3a01e3", "sha256": "4cb93a32c822e29ce82f1432b5ae23c817b38562836f8a7d95a70d9c148f595a" }, "downloads": -1, "filename": "selfies-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "60437fa7f5aa3a8033914b906d3a01e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13712, "upload_time": "2019-06-02T22:08:15", "url": "https://files.pythonhosted.org/packages/07/08/8b391bbb0bf7944080460495ade83b326f1b7e2d28b96051d149b90cb572/selfies-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8100fe03d560b8431205143898490999", "sha256": "c28c1e6ee17b0fe222972b3fc668d9898ba78ea3e67946511807d9bd7304a0dc" }, "downloads": -1, "filename": "selfies-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8100fe03d560b8431205143898490999", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9219, "upload_time": "2019-06-02T22:08:17", "url": "https://files.pythonhosted.org/packages/ac/19/037b6a3db9cb9cf6bf9f5f362be8b7be15f1ba946ba2963c5e12bf59ed84/selfies-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "45de66b016b38230cc456ee76e39454e", "sha256": "153ca7bcff9c4525d93520d42505a5d4e44b682b5951907ff259f6e64861af85" }, "downloads": -1, "filename": "selfies-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "45de66b016b38230cc456ee76e39454e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15039, "upload_time": "2019-09-02T20:06:09", "url": "https://files.pythonhosted.org/packages/1c/50/2cd49bee6d75451ee48b611db5b1009faf66ad24af33572e8f6dc2e8f61c/selfies-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01e428b46f42e0fc4a8aedd54693729b", "sha256": "8a6cbc05e558b317ed50df25e776190fec8efdff5b1780b7f16612cdc6c904ba" }, "downloads": -1, "filename": "selfies-0.2.0.tar.gz", "has_sig": false, "md5_digest": "01e428b46f42e0fc4a8aedd54693729b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14569, "upload_time": "2019-09-02T19:48:40", "url": "https://files.pythonhosted.org/packages/88/82/afe7a70ae7d2305ffde113419fd9ef05006b1dccdd2c1bcfe7d23f67b92b/selfies-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b4333b9547b717334ec79a2d9fb0e445", "sha256": "946746cc24ff434793ff5f5231eb2468aeb195ea3df5a89a6571b9995bf1cabf" }, "downloads": -1, "filename": "selfies-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b4333b9547b717334ec79a2d9fb0e445", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15038, "upload_time": "2019-09-02T20:07:52", "url": "https://files.pythonhosted.org/packages/8a/04/1d10f76ee389d2616600d10e91d9bb18176d7cf14e1f13836a4f125d99eb/selfies-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50bf435f5e03b71500d31b6304499186", "sha256": "0e49a0608a9bf7910dfd867e0b4b72e4a82daf5be0d025cfadcaaac60ceae3ea" }, "downloads": -1, "filename": "selfies-0.2.1.tar.gz", "has_sig": false, "md5_digest": "50bf435f5e03b71500d31b6304499186", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15108, "upload_time": "2019-09-02T20:07:54", "url": "https://files.pythonhosted.org/packages/88/61/69d3e5c68b4c53976b8bebdac91eee237582ad728cc609de8591d4b970c1/selfies-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "f60fda0ab3d9adcb174b4825f603201a", "sha256": "367820d404f462705555747e6b5fb39b258106296e1084451447fb3d8fc60fb5" }, "downloads": -1, "filename": "selfies-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f60fda0ab3d9adcb174b4825f603201a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15131, "upload_time": "2019-09-24T18:40:36", "url": "https://files.pythonhosted.org/packages/85/64/161bcab8e81aa4f30dfa64e611741810fd5acd58efabb0ffb947c7f9b80a/selfies-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aab872f2420f6fb3155334dd8b0d3060", "sha256": "4147fed99453564afec64dfae9dad77990b875c5f56698ded608e954bac009d7" }, "downloads": -1, "filename": "selfies-0.2.2.tar.gz", "has_sig": false, "md5_digest": "aab872f2420f6fb3155334dd8b0d3060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15169, "upload_time": "2019-09-24T18:40:39", "url": "https://files.pythonhosted.org/packages/78/cb/6930a0c68fd6f5fa83fa894268be25d6dd76c2b268f512f9a478aae8d09a/selfies-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "5179cbd736a1ce0ee01ca358c37738ee", "sha256": "e44c856d4fc9952121ed6512d0d9f8f1087b614a98861ea58ee3960d1b0d74cf" }, "downloads": -1, "filename": "selfies-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5179cbd736a1ce0ee01ca358c37738ee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15799, "upload_time": "2019-10-01T08:35:08", "url": "https://files.pythonhosted.org/packages/08/b2/084baebea4b33b44026b2ccc451557095e6f4e907acaec01001195a414eb/selfies-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8fb4f332bddd2353ea98db02757b84f", "sha256": "f10b40b309a7279d9d58127ee3a35b7304b708e5aac7608c3f5414191965204c" }, "downloads": -1, "filename": "selfies-0.2.3.tar.gz", "has_sig": false, "md5_digest": "c8fb4f332bddd2353ea98db02757b84f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15768, "upload_time": "2019-10-01T08:35:11", "url": "https://files.pythonhosted.org/packages/d9/da/7188e04c6d5b5e502edb92aaced674aef4480950ee8483256cd52228e521/selfies-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "ceb5c456659f07f76d766f04e969e9d0", "sha256": "b23692fec36d3b3149d109452b108a4e5dab6744013447051ff0453a8a032a79" }, "downloads": -1, "filename": "selfies-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ceb5c456659f07f76d766f04e969e9d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15808, "upload_time": "2019-10-01T09:30:49", "url": "https://files.pythonhosted.org/packages/01/67/f8f04deb5bc03b0ff8c7c994802620e62257373c56169485c7465c82235e/selfies-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3b07f2f557cc49a0862c5976e8dc7f2b", "sha256": "d14b15eeb611213d53c56c9aeba8899534090f88e13d0e338ee335621558c4c3" }, "downloads": -1, "filename": "selfies-0.2.4.tar.gz", "has_sig": false, "md5_digest": "3b07f2f557cc49a0862c5976e8dc7f2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15775, "upload_time": "2019-10-01T09:30:51", "url": "https://files.pythonhosted.org/packages/5b/21/a0edb0e3002fe1b2878056b8368e3d19cd4ee19eed84378f8674eb944edf/selfies-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ceb5c456659f07f76d766f04e969e9d0", "sha256": "b23692fec36d3b3149d109452b108a4e5dab6744013447051ff0453a8a032a79" }, "downloads": -1, "filename": "selfies-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ceb5c456659f07f76d766f04e969e9d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15808, "upload_time": "2019-10-01T09:30:49", "url": "https://files.pythonhosted.org/packages/01/67/f8f04deb5bc03b0ff8c7c994802620e62257373c56169485c7465c82235e/selfies-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3b07f2f557cc49a0862c5976e8dc7f2b", "sha256": "d14b15eeb611213d53c56c9aeba8899534090f88e13d0e338ee335621558c4c3" }, "downloads": -1, "filename": "selfies-0.2.4.tar.gz", "has_sig": false, "md5_digest": "3b07f2f557cc49a0862c5976e8dc7f2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15775, "upload_time": "2019-10-01T09:30:51", "url": "https://files.pythonhosted.org/packages/5b/21/a0edb0e3002fe1b2878056b8368e3d19cd4ee19eed84378f8674eb944edf/selfies-0.2.4.tar.gz" } ] }