DNALab 0.0.3-alpha
See the version list below for details.
dotnet add package DNALab --version 0.0.3-alpha
NuGet\Install-Package DNALab -Version 0.0.3-alpha
<PackageReference Include="DNALab" Version="0.0.3-alpha" />
paket add DNALab --version 0.0.3-alpha
#r "nuget: DNALab, 0.0.3-alpha"
// 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.
Legal notice
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.
Overview
This projects contains implementation of DNA encoding and decoding algorithms which will help you to encode binary data into DNA sequence.
Installation
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.
References
- [1] - Byte
- [2] - Array
- [3] - Matrix
- [4] - Nucleotide
Product | Versions 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. |
-
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.4-alpha | 63 | 7/26/2024 |
0.0.3-alpha | 187 | 11/23/2023 |
0.0.2-alpha | 279 | 10/23/2020 |
0.0.1-alpha | 328 | 9/19/2020 |