{ "info": { "author": "Sy Redding", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "=======\nsmtools\n=======\n\nSingle Molecule analysis Tools\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis package contains tools analysis package of the `Redding Lab`_, at the University of Cailfornia, San Francisco.\n\n.. _Redding Lab: https://www.reddinglab.com\n\nDependencies\n------------\n * numpy\n * scipy\n * scikit-image\n * matplotlib\n\n.. _numpy: http://www.numpy.org/\n.. _scipy: https://www.scipy.org/\n.. _scikit-image: https://scikit-image.org/\n.. _matplotlib: https://matplotlib.org/\n\nInstallation\n------------\n\nThe easiest way to install the package is via ``pip``::\n\n $ pip install smtools\n\n\nDocumentation\n-------------\nDocumentation: https://smtools.readthedocs.io/en/latest/\n\nUsage\n-----\n\nThe `smtools.algnment` module is designed to align images split into separate\nchannels. It relies on using fluorescent particles that appear on both channels.\nWhen executed, the following code will yield the image output below.\n\n.. code-block:: python\n\n import smtools.testdata as test\n import smtools.alignment as al\n import matplotlib.pyplot as plt\n dx, dy, params = al.inspect_global_fit(test.image_stack(), showplot=False)\n im = test.image_stack()[0]\n im_old = al.overlay(im)\n im_adj_image = al.align_by_offset(im,dx,dy)\n im_new = al.overlay(im_adj_image)\n fig = plt.figure(figsize=(12,12))\n ax1 = fig.add_subplot(211)\n ax2 = fig.add_subplot(212,sharex=ax1)\n ax1.set_title('Original Image', fontsize = \"18\")\n ax2.set_title('Aligned Image', fontsize = \"18\")\n ax1.imshow(im_old)\n ax2.imshow(im_new)\n plt.show()\n\n.. figure:: https://github.com/ReddingLab/smtools/blob/master/images/alignment.png\n :alt:\n\nThe `smtools.curtains` module is designed to locate individual DNA molecules within\na DNA curtain.\n\n.. code-block:: python\n\n import smtools.curtains as cs\n import smtools.alignment as al\n from scipy.ndimage.interpolation import rotate\n import matplotlib.pyplot as plt\n import smtools.testdata as test\n im = test.test_curtain()\n ch1,ch2 = al.im_split(im)\n angle = cs.find_rotang(ch2)\n rotated_ch2 = rotate(ch2,angle)\n bounds, mask = cs.find_curtain(rotated_ch2)\n strands = cs.find_DNA(rotated_ch2,bounds)\n DNAs = cs.fit_DNA(rotated_ch2, strands)\n fig = plt.figure(figsize=(5,10))\n plt.axis('off')\n plt.imshow(rotated_ch2)\n for x0,x1,y in DNAs:\n plt.plot([x0,x1],[y,y],\"r.\", markersize = 5)\n plt.show()\n\n.. figure:: https://github.com/ReddingLab/smtools/blob/master/images/curtain_finder.png\n :alt: \n\n\nVersion History\n---------------\n * 0.1.0 Initial release with `alignment`, `point_fitting` modules\n * 0.2.0 Included `curtains` and `misc` modules\n\n\nReferences\n----------\n * PyPI Page: https://pypi.org/project/smtools/\n * Readthedocs: https://smtools.readthedocs.io/en/latest/\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ReddingLab/smtools", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "smtools", "package_url": "https://pypi.org/project/smtools/", "platform": "", "project_url": "https://pypi.org/project/smtools/", "project_urls": { "Homepage": "https://github.com/ReddingLab/smtools" }, "release_url": "https://pypi.org/project/smtools/0.2.2/", "requires_dist": [ "numpy", "scipy", "scikit-image", "matplotlib" ], "requires_python": "", "summary": "Redding Lab analysis tools", "version": "0.2.2" }, "last_serial": 4862604, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "6e6d3df8a8cca331b4cf8e75c06d3702", "sha256": "13ec1f1be75a23e0bfb05265d934f4e9ddfccc1061479f7d35fe307df6e6a865" }, "downloads": -1, "filename": "smtools-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6e6d3df8a8cca331b4cf8e75c06d3702", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5383372, "upload_time": "2019-02-24T20:06:51", "url": "https://files.pythonhosted.org/packages/7f/7c/232532b9ae3bd8a2e6dbc9125707bd124b4d0dbbca53a62c232d6c65ea13/smtools-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37f25dbb4a0a84508c8b0a7ca0e76490", "sha256": "3a5ec45f264bc82f5678401698333b756ed54dd59969b069c79f878a6cbec3cc" }, "downloads": -1, "filename": "smtools-0.2.0.tar.gz", "has_sig": false, "md5_digest": "37f25dbb4a0a84508c8b0a7ca0e76490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682206, "upload_time": "2019-02-24T20:06:59", "url": "https://files.pythonhosted.org/packages/ca/41/be1df5269b9dcbdbb7219bf33464983bc0b5d20156124535297669173b21/smtools-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3b377c148db390b530ef6704931a0d7b", "sha256": "ea784d9e29fb7d34428582ace6fae711f81e8112f811075569412c325c645bf8" }, "downloads": -1, "filename": "smtools-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3b377c148db390b530ef6704931a0d7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5384018, "upload_time": "2019-02-25T02:06:03", "url": "https://files.pythonhosted.org/packages/25/b9/288c726dacb0b95194ccf6efe8b91ff68e61f5951d75a10a035a9e1d9bd3/smtools-0.2.1-py3-none-any.whl" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2a7fd2020a2a87026421499f0e4cb9d0", "sha256": "4691bcfe8942071630fa42a0047db5eebae0658efe31a6827251bfb84556c457" }, "downloads": -1, "filename": "smtools-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2a7fd2020a2a87026421499f0e4cb9d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5384021, "upload_time": "2019-02-25T02:10:36", "url": "https://files.pythonhosted.org/packages/5f/38/49b403dbb5e951e18485c3bb3109994d7439db002f994c16e8c95557ffee/smtools-0.2.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a7fd2020a2a87026421499f0e4cb9d0", "sha256": "4691bcfe8942071630fa42a0047db5eebae0658efe31a6827251bfb84556c457" }, "downloads": -1, "filename": "smtools-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2a7fd2020a2a87026421499f0e4cb9d0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5384021, "upload_time": "2019-02-25T02:10:36", "url": "https://files.pythonhosted.org/packages/5f/38/49b403dbb5e951e18485c3bb3109994d7439db002f994c16e8c95557ffee/smtools-0.2.2-py3-none-any.whl" } ] }