Skip to main content

Nucleic Acid Sequence tools

Crate Docs PyPI

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 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:

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 plasmid editor and Daedalus molecule viewer.

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

Metadata

Release files for na-seq 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for na-seq 0.3.5
File Size Uploaded
na_seq-0.3.5.tar.gz 29.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for na-seq 0.3.5
File
na_seq-0.3.5-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
na_seq-0.3.5-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
na_seq-0.3.5-cp310-abi3-musllinux_1_2_armv7l.whl CPython 3.10 abi3 Linux musl 1.2+ ARMv7l Details
na_seq-0.3.5-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
na_seq-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
na_seq-0.3.5-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl CPython 3.10 abi3 Linux glibc 2.17+ IBM System/390x Details
na_seq-0.3.5-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl CPython 3.10 abi3 Linux glibc 2.17+ PowerPC 64-le Details
na_seq-0.3.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.10 abi3 Linux glibc 2.17+ ARMv7l Details
na_seq-0.3.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
na_seq-0.3.5-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
na_seq-0.3.5-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 4.2 MB

Release files / na_seq-0.3.5.tar.gz

Download URL na_seq-0.3.5.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
42dc0872217d5dfceccaba80b830f98a19003013a4c6c7f048f209099dac4b7b
BLAKE2b-256 checksum
How to use checksums
a4452d63e1ee133527fee010310c5f478c7da3cd10af5b08d8e599a2c252c7f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-win_amd64.whl

Download URL na_seq-0.3.5-cp310-abi3-win_amd64.whl
Size 180.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
32792b1cfa2320d2bf5495a242822bcc00f3504e6172c6dcdcc3c79322d5b8b9
BLAKE2b-256 checksum
How to use checksums
7356c6ad6290e3f17bc2ee4639f8e2a37e8e5eccb1d5e33b4c4b0b4789374095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL na_seq-0.3.5-cp310-abi3-musllinux_1_2_x86_64.whl
Size 493.0 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
df0624212927aa397db833cc0c0138c3486cd77627d7f020beea15b800ffd616
BLAKE2b-256 checksum
How to use checksums
a7d5aa0b6ea4f03ae50c922d3d41ef9ea5c230ce4b1ffd7551e61a561b6c26ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-musllinux_1_2_armv7l.whl

Download URL na_seq-0.3.5-cp310-abi3-musllinux_1_2_armv7l.whl
Size 593.0 kB
Tags CPython 3.10 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
7af07d0840e69ba758de85483f15c1b267f809234ecd096c0f872ba4dfbc441d
BLAKE2b-256 checksum
How to use checksums
50b1c01e0d976ce18ea6509c4c3a25ee56870c3338562922fed48d56fc5dcb64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL na_seq-0.3.5-cp310-abi3-musllinux_1_2_aarch64.whl
Size 501.4 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
dfc1cbf5961d942786e0266d59d6f77f8c13d572e42d41c56fe2aee726d9edb6
BLAKE2b-256 checksum
How to use checksums
7526c1cf88f343a7213fb4be24951c362772083c788b15d53cd407ae3d729118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL na_seq-0.3.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 322.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
db7207942bd281c1281bc5a818fa9eaae2f963e0e6f0cae6926952fd8bef655a
BLAKE2b-256 checksum
How to use checksums
6fdde5d2e51750163bb6609d6226965777ae873bc2905c216a3e2381fd1de9ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL na_seq-0.3.5-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 352.0 kB
Tags CPython 3.10 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
a5aaa0229a55381747bc4b9428fc7c5062ce37ae7ba92651736e512962fe7c32
BLAKE2b-256 checksum
How to use checksums
76eb5c390f8780e3dd0d44a6e09a62c49ed2ea37202bd30c363df69f6d7ac8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL na_seq-0.3.5-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 466.3 kB
Tags CPython 3.10 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
955bf76a2b3132563e96f78017b0c54542ddedee21dbb6edfda60d0177e3b85e
BLAKE2b-256 checksum
How to use checksums
9afec7c49b2fcc36bce2df98a5102c0006ba792af867569448761c1c6e72d18c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL na_seq-0.3.5-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 328.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
72a038d4bc02e01f830242c15043039974362e918c4a36a3d1529bcaf45060dd
BLAKE2b-256 checksum
How to use checksums
69e16321ac48cff7a40b9723378ec7f204aa94b9d3fecfdef45666077f936b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL na_seq-0.3.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 322.5 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b54b045688443099d51eac5aecdd2145ce8686b788de4c7f0a60ef1b0d1a07e0
BLAKE2b-256 checksum
How to use checksums
93e0c8130857cb5e1f279b0da58e877fd5b0dfb4d1c4b8807a08f0e46b06b050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-macosx_11_0_arm64.whl

Download URL na_seq-0.3.5-cp310-abi3-macosx_11_0_arm64.whl
Size 286.0 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
af24cd0204610480b9b6b6ef93d3a99c5d176341c4bc747c7749b0b42863f448
BLAKE2b-256 checksum
How to use checksums
37e4f4e68c9354b7f490d8ba0de6c63ea73b56a9c63f9d1c9dd4644b94900158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / na_seq-0.3.5-cp310-abi3-macosx_10_12_x86_64.whl

Download URL na_seq-0.3.5-cp310-abi3-macosx_10_12_x86_64.whl
Size 294.9 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c85906f6705f9f47d39dcaff089cc156dc5dc86a2157276b8e89489478f58bee
BLAKE2b-256 checksum
How to use checksums
9edebe8a25ff6cf165994cc4840f6cc837f60a4e430cce382a3a2e354738035a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release history Release notifications | RSS feed

This release

0.3.5 This release

12 release files

0.3.2

15 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page