na-seq


Namena-seq JSON
Version 0.3.5 PyPI version JSON
download
home_pageNone
SummaryDNA, RNA, and amino acid sequence types and functions
upload_time2025-09-01 22:01:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Nucleic Acid Sequence tools

[![Crate](https://img.shields.io/crates/v/na_seq.svg)](https://crates.io/crates/na_seq)
[![Docs](https://docs.rs/na_seq/badge.svg)](https://docs.rs/na_seq)
[![PyPI](https://img.shields.io/pypi/v/na-seq.svg)](https://pypi.org/project/na-seq)

This Rust and Python library contains types and functions used for performing operations on DNA and amino acid sequences. 
Its most fundamental types are the `Nucleotide` and `AminoAcid` enums, representing a single DNA nucleotide, 
and single amino acid respectively. This library is general, and intended to be used by any program or library 
that uses DNA sequences. It also includes an `Element` enum, with parameters associated with each element.

It includes functions to convert between `&[Nucleotide]` to string and vice-versa, and convert to and from u8 
representations of the UTF-8 characters. It includes functions to serialize and deserialize in a compact binary
format, with 2 bits per nucleotide.

It includes forcefield-parameter amino acid variants, as used by Amber as the `AminoAcidProtenationVariant` enum.

Basic types impl `Display` and `ToStr`, with variants in some cases, e.g. to display an AA as a single letter,
or 3-letter string.

See [the docs](https://docs.rs/na_seq) for details on data structures and functions available.

Also includes restriction enzyme and ligation basics.

Minmal python example. See the rust docs for full details:

```python
from na_seq import *

aa = AminoAcid.from_codons([Nucleotide.A, Nucleotide.T, Nucleotide.G])
aa = AminoAcid.from_str("HIS")

aa.to_str(AaIdent.OneLetter)
aa.to_str(AaIdent.ThreeLetters)

Element.C.atomic_weight()
```


## Utility functionality
- Sequence and nucleotide complements
- Sequence and nucleotide weight
- GC content, and misc general properties of elements and amino acids. ( e.g. hydrophobicity, weight, CPK colors)
- A small restriction enzyme library


We may add Sequence searches, and other utility features in the future.

This library is used by the [PlasCAD](https://github.com/David-OConnor/plascad) plasmid editor and [Daedalus](https://github.com/David-OConnor/daedalus) 
molecule viewer.

Note: The Python version currently does not include restriction-enzyme and ligation functionality.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "na-seq",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "David O'Connor <the_alchemist@fastmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a4/45/2d63e1ee133527fee010310c5f478c7da3cd10af5b08d8e599a2c252c7f4/na_seq-0.3.5.tar.gz",
    "platform": null,
    "description": "# Nucleic Acid Sequence tools\n\n[![Crate](https://img.shields.io/crates/v/na_seq.svg)](https://crates.io/crates/na_seq)\n[![Docs](https://docs.rs/na_seq/badge.svg)](https://docs.rs/na_seq)\n[![PyPI](https://img.shields.io/pypi/v/na-seq.svg)](https://pypi.org/project/na-seq)\n\nThis Rust and Python library contains types and functions used for performing operations on DNA and amino acid sequences. \nIts most fundamental types are the `Nucleotide` and `AminoAcid` enums, representing a single DNA nucleotide, \nand single amino acid respectively. This library is general, and intended to be used by any program or library \nthat uses DNA sequences. It also includes an `Element` enum, with parameters associated with each element.\n\nIt includes functions to convert between `&[Nucleotide]` to string and vice-versa, and convert to and from u8 \nrepresentations of the UTF-8 characters. It includes functions to serialize and deserialize in a compact binary\nformat, with 2 bits per nucleotide.\n\nIt includes forcefield-parameter amino acid variants, as used by Amber as the `AminoAcidProtenationVariant` enum.\n\nBasic types impl `Display` and `ToStr`, with variants in some cases, e.g. to display an AA as a single letter,\nor 3-letter string.\n\nSee [the docs](https://docs.rs/na_seq) for details on data structures and functions available.\n\nAlso includes restriction enzyme and ligation basics.\n\nMinmal python example. See the rust docs for full details:\n\n```python\nfrom na_seq import *\n\naa = AminoAcid.from_codons([Nucleotide.A, Nucleotide.T, Nucleotide.G])\naa = AminoAcid.from_str(\"HIS\")\n\naa.to_str(AaIdent.OneLetter)\naa.to_str(AaIdent.ThreeLetters)\n\nElement.C.atomic_weight()\n```\n\n\n## Utility functionality\n- Sequence and nucleotide complements\n- Sequence and nucleotide weight\n- GC content, and misc general properties of elements and amino acids. ( e.g. hydrophobicity, weight, CPK colors)\n- A small restriction enzyme library\n\n\nWe may add Sequence searches, and other utility features in the future.\n\nThis library is used by the [PlasCAD](https://github.com/David-OConnor/plascad) plasmid editor and [Daedalus](https://github.com/David-OConnor/daedalus) \nmolecule viewer.\n\nNote: The Python version currently does not include restriction-enzyme and ligation functionality.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "DNA, RNA, and amino acid sequence types and functions",
    "version": "0.3.5",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9edebe8a25ff6cf165994cc4840f6cc837f60a4e430cce382a3a2e354738035a",
                "md5": "63c6fbc3835f9b8fc6b592febf55b59e",
                "sha256": "c85906f6705f9f47d39dcaff089cc156dc5dc86a2157276b8e89489478f58bee"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "63c6fbc3835f9b8fc6b592febf55b59e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 294902,
            "upload_time": "2025-09-01T22:01:37",
            "upload_time_iso_8601": "2025-09-01T22:01:37.019776Z",
            "url": "https://files.pythonhosted.org/packages/9e/de/be8a25ff6cf165994cc4840f6cc837f60a4e430cce382a3a2e354738035a/na_seq-0.3.5-cp310-abi3-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "37e4f4e68c9354b7f490d8ba0de6c63ea73b56a9c63f9d1c9dd4644b94900158",
                "md5": "23840f07db58ff4f2d0e81240e7339a2",
                "sha256": "af24cd0204610480b9b6b6ef93d3a99c5d176341c4bc747c7749b0b42863f448"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "23840f07db58ff4f2d0e81240e7339a2",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 285956,
            "upload_time": "2025-09-01T22:01:38",
            "upload_time_iso_8601": "2025-09-01T22:01:38.357848Z",
            "url": "https://files.pythonhosted.org/packages/37/e4/f4e68c9354b7f490d8ba0de6c63ea73b56a9c63f9d1c9dd4644b94900158/na_seq-0.3.5-cp310-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "93e0c8130857cb5e1f279b0da58e877fd5b0dfb4d1c4b8807a08f0e46b06b050",
                "md5": "17da5b0c0b4f96033b851f69ed413970",
                "sha256": "b54b045688443099d51eac5aecdd2145ce8686b788de4c7f0a60ef1b0d1a07e0"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "17da5b0c0b4f96033b851f69ed413970",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 322476,
            "upload_time": "2025-09-01T22:01:39",
            "upload_time_iso_8601": "2025-09-01T22:01:39.467626Z",
            "url": "https://files.pythonhosted.org/packages/93/e0/c8130857cb5e1f279b0da58e877fd5b0dfb4d1c4b8807a08f0e46b06b050/na_seq-0.3.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "69e16321ac48cff7a40b9723378ec7f204aa94b9d3fecfdef45666077f936b6f",
                "md5": "77ebad04946aaecb25c88d0871566680",
                "sha256": "72a038d4bc02e01f830242c15043039974362e918c4a36a3d1529bcaf45060dd"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "77ebad04946aaecb25c88d0871566680",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 328387,
            "upload_time": "2025-09-01T22:01:40",
            "upload_time_iso_8601": "2025-09-01T22:01:40.777735Z",
            "url": "https://files.pythonhosted.org/packages/69/e1/6321ac48cff7a40b9723378ec7f204aa94b9d3fecfdef45666077f936b6f/na_seq-0.3.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9afec7c49b2fcc36bce2df98a5102c0006ba792af867569448761c1c6e72d18c",
                "md5": "a00f2066291ec1ffe505b7d83b3831af",
                "sha256": "955bf76a2b3132563e96f78017b0c54542ddedee21dbb6edfda60d0177e3b85e"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "has_sig": false,
            "md5_digest": "a00f2066291ec1ffe505b7d83b3831af",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 466340,
            "upload_time": "2025-09-01T22:01:42",
            "upload_time_iso_8601": "2025-09-01T22:01:42.021597Z",
            "url": "https://files.pythonhosted.org/packages/9a/fe/c7c49b2fcc36bce2df98a5102c0006ba792af867569448761c1c6e72d18c/na_seq-0.3.5-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "76eb5c390f8780e3dd0d44a6e09a62c49ed2ea37202bd30c363df69f6d7ac8ed",
                "md5": "0d13ecf0118387b2a245cf75a7210b59",
                "sha256": "a5aaa0229a55381747bc4b9428fc7c5062ce37ae7ba92651736e512962fe7c32"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "has_sig": false,
            "md5_digest": "0d13ecf0118387b2a245cf75a7210b59",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 351977,
            "upload_time": "2025-09-01T22:01:43",
            "upload_time_iso_8601": "2025-09-01T22:01:43.193979Z",
            "url": "https://files.pythonhosted.org/packages/76/eb/5c390f8780e3dd0d44a6e09a62c49ed2ea37202bd30c363df69f6d7ac8ed/na_seq-0.3.5-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6fdde5d2e51750163bb6609d6226965777ae873bc2905c216a3e2381fd1de9ff",
                "md5": "96424443a7848de34724ec638b720631",
                "sha256": "db7207942bd281c1281bc5a818fa9eaae2f963e0e6f0cae6926952fd8bef655a"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "96424443a7848de34724ec638b720631",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 322680,
            "upload_time": "2025-09-01T22:01:44",
            "upload_time_iso_8601": "2025-09-01T22:01:44.174211Z",
            "url": "https://files.pythonhosted.org/packages/6f/dd/e5d2e51750163bb6609d6226965777ae873bc2905c216a3e2381fd1de9ff/na_seq-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7526c1cf88f343a7213fb4be24951c362772083c788b15d53cd407ae3d729118",
                "md5": "20c76da24a39b0a781f7b1fec90a187c",
                "sha256": "dfc1cbf5961d942786e0266d59d6f77f8c13d572e42d41c56fe2aee726d9edb6"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-musllinux_1_2_aarch64.whl",
            "has_sig": false,
            "md5_digest": "20c76da24a39b0a781f7b1fec90a187c",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 501395,
            "upload_time": "2025-09-01T22:01:45",
            "upload_time_iso_8601": "2025-09-01T22:01:45.511930Z",
            "url": "https://files.pythonhosted.org/packages/75/26/c1cf88f343a7213fb4be24951c362772083c788b15d53cd407ae3d729118/na_seq-0.3.5-cp310-abi3-musllinux_1_2_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "50b1c01e0d976ce18ea6509c4c3a25ee56870c3338562922fed48d56fc5dcb64",
                "md5": "5a948bf228e79b33e7063a24a4ef2278",
                "sha256": "7af07d0840e69ba758de85483f15c1b267f809234ecd096c0f872ba4dfbc441d"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-musllinux_1_2_armv7l.whl",
            "has_sig": false,
            "md5_digest": "5a948bf228e79b33e7063a24a4ef2278",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 592992,
            "upload_time": "2025-09-01T22:01:46",
            "upload_time_iso_8601": "2025-09-01T22:01:46.818867Z",
            "url": "https://files.pythonhosted.org/packages/50/b1/c01e0d976ce18ea6509c4c3a25ee56870c3338562922fed48d56fc5dcb64/na_seq-0.3.5-cp310-abi3-musllinux_1_2_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a7d5aa0b6ea4f03ae50c922d3d41ef9ea5c230ce4b1ffd7551e61a561b6c26ea",
                "md5": "288017d232396287c14bd6dab93f5fb2",
                "sha256": "df0624212927aa397db833cc0c0138c3486cd77627d7f020beea15b800ffd616"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "288017d232396287c14bd6dab93f5fb2",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 493037,
            "upload_time": "2025-09-01T22:01:48",
            "upload_time_iso_8601": "2025-09-01T22:01:48.135829Z",
            "url": "https://files.pythonhosted.org/packages/a7/d5/aa0b6ea4f03ae50c922d3d41ef9ea5c230ce4b1ffd7551e61a561b6c26ea/na_seq-0.3.5-cp310-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7356c6ad6290e3f17bc2ee4639f8e2a37e8e5eccb1d5e33b4c4b0b4789374095",
                "md5": "a72f17e2b585839ce54088de4f5e4382",
                "sha256": "32792b1cfa2320d2bf5495a242822bcc00f3504e6172c6dcdcc3c79322d5b8b9"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5-cp310-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "a72f17e2b585839ce54088de4f5e4382",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 179979,
            "upload_time": "2025-09-01T22:01:49",
            "upload_time_iso_8601": "2025-09-01T22:01:49.445308Z",
            "url": "https://files.pythonhosted.org/packages/73/56/c6ad6290e3f17bc2ee4639f8e2a37e8e5eccb1d5e33b4c4b0b4789374095/na_seq-0.3.5-cp310-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a4452d63e1ee133527fee010310c5f478c7da3cd10af5b08d8e599a2c252c7f4",
                "md5": "4cdb2a4132e9013e8daba2f8d272bcfb",
                "sha256": "42dc0872217d5dfceccaba80b830f98a19003013a4c6c7f048f209099dac4b7b"
            },
            "downloads": -1,
            "filename": "na_seq-0.3.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4cdb2a4132e9013e8daba2f8d272bcfb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 29359,
            "upload_time": "2025-09-01T22:01:50",
            "upload_time_iso_8601": "2025-09-01T22:01:50.255576Z",
            "url": "https://files.pythonhosted.org/packages/a4/45/2d63e1ee133527fee010310c5f478c7da3cd10af5b08d8e599a2c252c7f4/na_seq-0.3.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-01 22:01:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "na-seq"
}
        
Elapsed time: 0.75184s