dnacurve


Namednacurve JSON
Version 2024.5.24 PyPI version JSON
download
home_pagehttps://www.cgohlke.com
SummaryDNA curvature analysis
upload_time2024-05-25 05:26:42
maintainerNone
docs_urlNone
authorChristoph Gohlke
requires_python>=3.9
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            DNA curvature analysis
======================

Dnacurve is a Python library, console script, and web application to calculate
the global 3D structure of a B-DNA molecule from its nucleotide sequence
according to the dinucleotide wedge model. Local bending angles and macroscopic
curvature are calculated at each nucleotide.

:Author: `Christoph Gohlke <https://www.cgohlke.com>`_
:License: BSD 3-Clause
:Version: 2024.5.24
:DOI: `10.5281/zenodo.7135499 <https://doi.org/10.5281/zenodo.7135499>`_

Quickstart
----------

Install the dnacurve package and all dependencies from the
`Python Package Index <https://pypi.org/project/dnacurve/>`_::

    python -m pip install -U "dnacurve[all]"

Print the console script usage::

    python -m dnacurve --help

Run the web application::

    python -m dnacurve --web

See `Examples`_ for using the programming interface.

Source code and support are available on
`GitHub <https://github.com/cgohlke/dnacurve>`_.

Requirements
------------

This revision was tested with the following requirements and dependencies
(other versions may work):

- `CPython <https://www.python.org>`_ 3.9.13, 3.10.11, 3.11.9, 3.12.3
- `Numpy <https://pypi.org/project/numpy/>`_ 1.26.4
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.8.4
- `Flask <https://pypi.org/project/Flask/>`_ 3.0.3 (optional)

Revisions
---------

2024.5.24

- Fix docstring examples not correctly rendered on GitHub.

2024.5.10

- Fix mypy errors.

2023.8.30

- Fix linting issues.
- Add py.typed marker.

2023.4.30

- Improve type hints.
- Drop support for Python 3.8 and numpy < 1.21 (NEP29).

2022.10.4

- Rename dnacurve_web.py to web.py (breaking).
- Deprecate save functions (use write functions).
- Add options to specify URL of web application and not opening web browser.
- Run web application using Flask if installed.
- Convert to Google style docstrings.
- Add type hints.
- Remove support for Python 3.7 and numpy < 1.19 (NEP29).

2021.6.29

- Improve export to PDB.

2021.6.18

- Remove support for Python 3.6 (NEP 29).
- Fix dnacurve_web.py failure on WSL2.

2021.3.6

- Update copyright and formatting.

2020.1.1

- Remove support for Python 2.7 and 3.5.
- Update copyright.

2018.8.15

- Move modules into dnacurve package.

2018.5.29

- Add option to start web interface from console.
- Use matplotlib OOP interface.

2018.5.25

- Add functions to return PDB and CSV results as string.

2018.2.6

- Style and doctest fixes.

2014.6.16

- DNAse I Consensus model.

2013.11.21

- Overlapping chunks iterator.

2013.11.17

- Limit maximum sequence length to 510 nucleotides.
- Read simple FASTA sequence files.
- Save positive coordinates to PDB files.
- Fix sequence display for matplotlib 1.3.

2005.x.x

- Initial release.

Notes
-----

The algorithms, plots, and PDB format are not meant to be used with very
long sequences. By default, sequences are truncated to 510 nucleotides,
which can be overridden by the user.

The generated PDB files can be visualized interactively using
`UCSF Chimera <https://www.cgl.ucsf.edu/chimera/>`_.

Dnacurve.py was derived from DNACG.PAS (c) 1993, and DNACURVE.CPP (c) 1995.

References
----------

1. Bending and curvature calculations in B-DNA.
   Goodsell DS, Dickerson RE. Nucleic Acids Res 22, 5497-503, 1994.
   See also http://mgl.scripps.edu/people/goodsell/research/bend/index.html.
2. Curved DNA without A-A: experimental estimation of all 16 DNA wedge angles.
   Bolshoy A et al. Proc Natl Acad Sci USA 88, 2312-6, 1991.
3. A comparison of six DNA bending models.
   Tan RK and Harvey SC. J Biomol Struct Dyn 5, 497-512, 1987.
4. Curved DNA: design, synthesis, and circularization.
   Ulanovsky L et al. Proc Natl Acad Sci USA 83, 862-6, 1986.
5. The ten helical twist angles of B-DNA.
   Kabsch W, Sander C, and Trifonov EN. Nucleic Acids Res 10, 1097-1104, 1982.
6. Rod models of DNA: sequence-dependent anisotropic elastic modelling of
   local bending phenomena.
   Munteanu MG et al. Trends Biochem Sci 23(9), 341-7, 1998.

Examples
--------

>>> from dnacurve import CurvedDNA
>>> cdna = CurvedDNA('ATGCAAATTG' * 5, 'trifonov', name='Example')
>>> cdna.curvature[:, 18:22]
array([[0.58062, 0.58163, 0.58278, 0.58378],
       [0.0803 , 0.11293, 0.07676, 0.03166],
       [0.57924, 0.5758 , 0.57368, 0.5735 ]])
>>> cdna.write_csv('_test.csv')
>>> cdna.write_pdb('_test.pdb')
>>> cdna.plot('_test.png', dpi=120)

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.cgohlke.com",
    "name": "dnacurve",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Christoph Gohlke",
    "author_email": "cgohlke@cgohlke.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/55/e8834d992d35fa1f15b95d75edef6f84a9ac3ba606822ab5469bd807b95e/dnacurve-2024.5.24.tar.gz",
    "platform": "any",
    "description": "DNA curvature analysis\r\n======================\r\n\r\nDnacurve is a Python library, console script, and web application to calculate\r\nthe global 3D structure of a B-DNA molecule from its nucleotide sequence\r\naccording to the dinucleotide wedge model. Local bending angles and macroscopic\r\ncurvature are calculated at each nucleotide.\r\n\r\n:Author: `Christoph Gohlke <https://www.cgohlke.com>`_\r\n:License: BSD 3-Clause\r\n:Version: 2024.5.24\r\n:DOI: `10.5281/zenodo.7135499 <https://doi.org/10.5281/zenodo.7135499>`_\r\n\r\nQuickstart\r\n----------\r\n\r\nInstall the dnacurve package and all dependencies from the\r\n`Python Package Index <https://pypi.org/project/dnacurve/>`_::\r\n\r\n    python -m pip install -U \"dnacurve[all]\"\r\n\r\nPrint the console script usage::\r\n\r\n    python -m dnacurve --help\r\n\r\nRun the web application::\r\n\r\n    python -m dnacurve --web\r\n\r\nSee `Examples`_ for using the programming interface.\r\n\r\nSource code and support are available on\r\n`GitHub <https://github.com/cgohlke/dnacurve>`_.\r\n\r\nRequirements\r\n------------\r\n\r\nThis revision was tested with the following requirements and dependencies\r\n(other versions may work):\r\n\r\n- `CPython <https://www.python.org>`_ 3.9.13, 3.10.11, 3.11.9, 3.12.3\r\n- `Numpy <https://pypi.org/project/numpy/>`_ 1.26.4\r\n- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.8.4\r\n- `Flask <https://pypi.org/project/Flask/>`_ 3.0.3 (optional)\r\n\r\nRevisions\r\n---------\r\n\r\n2024.5.24\r\n\r\n- Fix docstring examples not correctly rendered on GitHub.\r\n\r\n2024.5.10\r\n\r\n- Fix mypy errors.\r\n\r\n2023.8.30\r\n\r\n- Fix linting issues.\r\n- Add py.typed marker.\r\n\r\n2023.4.30\r\n\r\n- Improve type hints.\r\n- Drop support for Python 3.8 and numpy < 1.21 (NEP29).\r\n\r\n2022.10.4\r\n\r\n- Rename dnacurve_web.py to web.py (breaking).\r\n- Deprecate save functions (use write functions).\r\n- Add options to specify URL of web application and not opening web browser.\r\n- Run web application using Flask if installed.\r\n- Convert to Google style docstrings.\r\n- Add type hints.\r\n- Remove support for Python 3.7 and numpy < 1.19 (NEP29).\r\n\r\n2021.6.29\r\n\r\n- Improve export to PDB.\r\n\r\n2021.6.18\r\n\r\n- Remove support for Python 3.6 (NEP 29).\r\n- Fix dnacurve_web.py failure on WSL2.\r\n\r\n2021.3.6\r\n\r\n- Update copyright and formatting.\r\n\r\n2020.1.1\r\n\r\n- Remove support for Python 2.7 and 3.5.\r\n- Update copyright.\r\n\r\n2018.8.15\r\n\r\n- Move modules into dnacurve package.\r\n\r\n2018.5.29\r\n\r\n- Add option to start web interface from console.\r\n- Use matplotlib OOP interface.\r\n\r\n2018.5.25\r\n\r\n- Add functions to return PDB and CSV results as string.\r\n\r\n2018.2.6\r\n\r\n- Style and doctest fixes.\r\n\r\n2014.6.16\r\n\r\n- DNAse I Consensus model.\r\n\r\n2013.11.21\r\n\r\n- Overlapping chunks iterator.\r\n\r\n2013.11.17\r\n\r\n- Limit maximum sequence length to 510 nucleotides.\r\n- Read simple FASTA sequence files.\r\n- Save positive coordinates to PDB files.\r\n- Fix sequence display for matplotlib 1.3.\r\n\r\n2005.x.x\r\n\r\n- Initial release.\r\n\r\nNotes\r\n-----\r\n\r\nThe algorithms, plots, and PDB format are not meant to be used with very\r\nlong sequences. By default, sequences are truncated to 510 nucleotides,\r\nwhich can be overridden by the user.\r\n\r\nThe generated PDB files can be visualized interactively using\r\n`UCSF Chimera <https://www.cgl.ucsf.edu/chimera/>`_.\r\n\r\nDnacurve.py was derived from DNACG.PAS (c) 1993, and DNACURVE.CPP (c) 1995.\r\n\r\nReferences\r\n----------\r\n\r\n1. Bending and curvature calculations in B-DNA.\r\n   Goodsell DS, Dickerson RE. Nucleic Acids Res 22, 5497-503, 1994.\r\n   See also http://mgl.scripps.edu/people/goodsell/research/bend/index.html.\r\n2. Curved DNA without A-A: experimental estimation of all 16 DNA wedge angles.\r\n   Bolshoy A et al. Proc Natl Acad Sci USA 88, 2312-6, 1991.\r\n3. A comparison of six DNA bending models.\r\n   Tan RK and Harvey SC. J Biomol Struct Dyn 5, 497-512, 1987.\r\n4. Curved DNA: design, synthesis, and circularization.\r\n   Ulanovsky L et al. Proc Natl Acad Sci USA 83, 862-6, 1986.\r\n5. The ten helical twist angles of B-DNA.\r\n   Kabsch W, Sander C, and Trifonov EN. Nucleic Acids Res 10, 1097-1104, 1982.\r\n6. Rod models of DNA: sequence-dependent anisotropic elastic modelling of\r\n   local bending phenomena.\r\n   Munteanu MG et al. Trends Biochem Sci 23(9), 341-7, 1998.\r\n\r\nExamples\r\n--------\r\n\r\n>>> from dnacurve import CurvedDNA\r\n>>> cdna = CurvedDNA('ATGCAAATTG' * 5, 'trifonov', name='Example')\r\n>>> cdna.curvature[:, 18:22]\r\narray([[0.58062, 0.58163, 0.58278, 0.58378],\r\n       [0.0803 , 0.11293, 0.07676, 0.03166],\r\n       [0.57924, 0.5758 , 0.57368, 0.5735 ]])\r\n>>> cdna.write_csv('_test.csv')\r\n>>> cdna.write_pdb('_test.pdb')\r\n>>> cdna.plot('_test.png', dpi=120)\r\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "DNA curvature analysis",
    "version": "2024.5.24",
    "project_urls": {
        "Bug Tracker": "https://github.com/cgohlke/dnacurve/issues",
        "Homepage": "https://www.cgohlke.com",
        "Source Code": "https://github.com/cgohlke/dnacurve"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2aea651d4441ac0b2ef8965d9221dadfb71ae4e381b6c389aac1db62e679419f",
                "md5": "047c67cf99bf85308a313ed17dc5a59e",
                "sha256": "27fdbb460d1f3ff58f471c6182e6be0c9b55740e09e900054402eb14e8a0b538"
            },
            "downloads": -1,
            "filename": "dnacurve-2024.5.24-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "047c67cf99bf85308a313ed17dc5a59e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 27227,
            "upload_time": "2024-05-25T05:26:40",
            "upload_time_iso_8601": "2024-05-25T05:26:40.834618Z",
            "url": "https://files.pythonhosted.org/packages/2a/ea/651d4441ac0b2ef8965d9221dadfb71ae4e381b6c389aac1db62e679419f/dnacurve-2024.5.24-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c255e8834d992d35fa1f15b95d75edef6f84a9ac3ba606822ab5469bd807b95e",
                "md5": "7c6a9a34f9507447ac916be3c5702504",
                "sha256": "6ebfe3a841f84d1f35fa14239f0b6eaa2d18988d6094c82bd29e4f794f641004"
            },
            "downloads": -1,
            "filename": "dnacurve-2024.5.24.tar.gz",
            "has_sig": false,
            "md5_digest": "7c6a9a34f9507447ac916be3c5702504",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 26436,
            "upload_time": "2024-05-25T05:26:42",
            "upload_time_iso_8601": "2024-05-25T05:26:42.156303Z",
            "url": "https://files.pythonhosted.org/packages/c2/55/e8834d992d35fa1f15b95d75edef6f84a9ac3ba606822ab5469bd807b95e/dnacurve-2024.5.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-25 05:26:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cgohlke",
    "github_project": "dnacurve",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dnacurve"
}
        
Elapsed time: 0.40920s