DNALab 0.0.3-alpha

This is a prerelease version of DNALab.
dotnet add package DNALab --version 0.0.3-alpha                
NuGet\Install-Package DNALab -Version 0.0.3-alpha                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DNALab" Version="0.0.3-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DNALab --version 0.0.3-alpha                
#r "nuget: DNALab, 0.0.3-alpha"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DNALab as a Cake Addin
#addin nuget:?package=DNALab&version=0.0.3-alpha&prerelease

// Install DNALab as a Cake Tool
#tool nuget:?package=DNALab&version=0.0.3-alpha&prerelease                

DNA Laboratory

The .NET Standard Library for encoding/decoding data into DNA sequence.

Code & Opinions expressed in this repository are solely my own and do not express the views or opinions of my employer. This code is not supported by any employer as well as not profitable and do not bring any financial benefits. All work that was done during its creation was conducted in my spare/personal time and based only on my willingness to help the open-source community.


This projects contains implementation of DNA encoding and decoding algorithms which will help you to encode binary data into DNA sequence.



You can install the last stable version of DNA Laboratory using nuget.

PM> Install-Package DNALab -Version 0.0.3-alpha

Encode binary data into DNA sequence

Any digital data can be represented as an array of bytes. in a byte, each bit located from right to left represents values from 0 (00000000) to 255 (11111111) [1].

However, in an array, (matrix 1 x N) values are located from left to right [2][3].

Let's split the array by 'bit pairs' from left to right, this is how we get 4 pairs of bits. Each pair can be in one of 4 possible values: (00), (01), (10), and (11). Each of these states can be represented as DNA nucleotide. A Nucleotide in DNA consists of a sugar (deoxyribose), one of four bases (cytosine (C), thymine (T), adenine (A), guanine (G)), and a phosphate [4].

This means that any information is streamed as an array of bytes, where each byte (eight-bit array), can be represented as a sequence of two base pairs of nucleotides.


Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.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.3-alpha 175 11/23/2023
0.0.2-alpha 274 10/23/2020
0.0.1-alpha 324 9/19/2020