DNALab 0.0.6-alpha
dotnet add package DNALab --version 0.0.6-alpha
NuGet\Install-Package DNALab -Version 0.0.6-alpha
<PackageReference Include="DNALab" Version="0.0.6-alpha" />
<PackageVersion Include="DNALab" Version="0.0.6-alpha" />
<PackageReference Include="DNALab" />
paket add DNALab --version 0.0.6-alpha
#r "nuget: DNALab, 0.0.6-alpha"
#:package DNALab@0.0.6-alpha
#addin nuget:?package=DNALab&version=0.0.6-alpha&prerelease
#tool nuget:?package=DNALab&version=0.0.6-alpha&prerelease
DNA Laboratory
A modern and lightweight .NET library for encoding and decoding digital data into DNA sequences, inspired by biological information storage. The package targets .NET 10 (net10.0).
Legal Notice
All source code and opinions expressed in this repository are solely my own and do not represent the views, policies, or endorsements of my employer. This project is not commercially funded, not affiliated with any organization, and was developed entirely in my personal time with the intention of supporting learning, research, and the open-source community.
Overview
DNA Laboratory provides a practical implementation of DNA-based information encoding concepts.
It allows binary digital data to be converted into DNA nucleotide representations — and enables decoding back to binary when required.
This library can serve as:
- A learning tool for understanding DNA data encoding concepts.
- A proof-of-concept for DNA-based digital storage approaches.
- A lightweight utility for experimenting with bio-inspired information systems.
Requirements
- .NET 10 or later for applications and libraries that reference this package (the NuGet asset targets
net10.0). - SDK: .NET 10 SDK to build the solution from source. The repository includes
global.jsonto pin a compatible SDK version.
Installation
Install the latest version via NuGet Package Manager:
PM> Install-Package DNALab -Version 0.0.6-alpha
More details are available on the NuGet package page:
https://www.nuget.org/packages/DNALab
Encoding Binary Data into DNA Sequences
Any digital data can be represented as an array of bytes.
Each byte consists of 8 bits, representing values in the range 0 (00000000) to 255 (11111111) [1].
In a byte array (1 × N matrix), values are processed from left to right [2][3].
To perform encoding:
- Each byte is split into four bit-pairs (00, 01, 10, 11).
- Each pair is mapped to a specific DNA nucleotide.
- The result is a sequence composed of the four nucleotides: A, T, C, G.
A DNA nucleotide consists of:
- a sugar molecule (deoxyribose),
- a phosphate group,
- one of four bases: adenine (A), thymine (T), cytosine (C), or guanine (G) [4].
This makes it possible to represent ordinary digital data using biological-style encoding, translating bits into nucleotide sequences.
References
[1] Byte — Digital Information Unit
Explanation of what a byte is, how it represents digital information, and its role in computing.
https://en.wikipedia.org/wiki/Byte[2] Array in .NET
Official Microsoft documentation describing arrays, data layout, indexing, and their use in .NET applications.
https://learn.microsoft.com/dotnet/api/system.array[3] Matrix Representation Concepts
Mathematical background of matrices, their structure, and relevance to ordered data representation.
https://en.wikipedia.org/wiki/Matrix_mathematics[4] Nucleotide — The Foundation of DNA
Detailed description of nucleotides, their structure, biological purpose, and their role in DNA encoding — which inspired this project.
https://en.wikipedia.org/wiki/Nucleotide
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.6-alpha | 114 | 3/31/2026 |
| 0.0.5-alpha | 226 | 4/12/2025 |
| 0.0.4-alpha | 172 | 7/26/2024 |
| 0.0.3-alpha | 323 | 11/23/2023 |
| 0.0.2-alpha | 542 | 10/23/2020 |
| 0.0.1-alpha | 597 | 9/19/2020 |