Lifespark.Genetics 1.0.1

dotnet add package Lifespark.Genetics --version 1.0.1                
NuGet\Install-Package Lifespark.Genetics -Version 1.0.1                
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="Lifespark.Genetics" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lifespark.Genetics --version 1.0.1                
#r "nuget: Lifespark.Genetics, 1.0.1"                
#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 Lifespark.Genetics as a Cake Addin
#addin nuget:?package=Lifespark.Genetics&version=1.0.1

// Install Lifespark.Genetics as a Cake Tool
#tool nuget:?package=Lifespark.Genetics&version=1.0.1                

Lifespark Genetics Library

Lifespark Genetics Library is a biomimetic genetic encoder capable of encoding English or Latin text in to genetic code.

Utilizing four letters and classifying them as nucleotide bases allows us to simulate the hydrogen bond found in the nucleotide pairs of DNA. Using a rolling window against the gene code we can form codons by iterating every three char slots. There are only 24 permutation codons, but a total of 64 possible codons. For example: including AAA, GGG, TTT, and CCC as valid codons.

Ironically the classical Latin alphabet contains 23 letters, and the 24th one is a break codon enabling the ability to encode Latin or English text


using Lifespark.Genetics;

//Encode text to mDNA
string genetic_code = LifeSparkClient.WriteDNA("hello");
Console.WriteLine("Genecode: "+genetic_code);

//Form a molecule with the mDNA and retrieve the DNA strand from it
DNA_Molecule dna = new DNA_Molecule(genetic_code);
string mDNA = "";
dna.ForEach(molecule => DNA += molecule.Item1);
Console.WriteLine("Molecule: "+ DNA);

//mDNA to mRNA conversion
string rna_genetic_code = LifeSparkClient.DNAtoRNA(genetic_code);

//Decode genetic code back to english/latin
string decoded_message = LifeSparkClient.ReadDNA(dna);
string decoded_message2 = LifeSparkClient.ReadRNA(rna_genetic_code);

Console.WriteLine("Encoded Message: " + genetic_code);
Console.WriteLine("Decoded DNA Message: " + decoded_message);
Console.WriteLine("Decoded RNA Message: " + decoded_message2);

//Construct a genome which contains an array of unique molecules
Genome genome = new Genome(genetic_code);
//View the genomes genecode
Console.WriteLine("Encoded Genome: " + LifeSparkClient.ExportGenomeData(genome));
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
1.0.1 193 2/24/2023