7 releases

new 0.2.5 Jan 1, 2025
0.2.4 Dec 9, 2024
0.2.1 Oct 16, 2024
0.1.0 Oct 6, 2024

#137 in Biology

Download history 198/week @ 2024-10-02 73/week @ 2024-10-09 181/week @ 2024-10-16 11/week @ 2024-10-23 5/week @ 2024-10-30 8/week @ 2024-11-06 1/week @ 2024-11-13 4/week @ 2024-11-20 406/week @ 2024-12-04 94/week @ 2024-12-11 4/week @ 2024-12-18 2/week @ 2024-12-25

506 downloads per month
Used in plascad

MIT license

45KB
1K SLoC

Nucleic Acid Sequence tools

Crate Docs

This small 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 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.

See the docs for details on data structures and functions available.

Also includes restriction enzyme and ligation basics.

Utility functionality

  • Sequence and nucleotide complements
  • Sequence and nucleotide weight
  • GC content
  • 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.

Dependencies

~0.5–1MB
~22K SLoC