DRPTranslatorCS 1.0.0

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

// Install DRPTranslatorCS as a Cake Tool
#tool nuget:?package=DRPTranslatorCS&version=1.0.0                

Hello Everyone!

It now supports netstandard 2.0!

This is DRPTRanslatorCS a (rewritten from the ground up) port of DRPTRanslator npm package.

This library is useful for those that want to do some entry-level genetics. You can Translate, Transcript DNA or RNA sequences, also you can get the Aminoacid sequences based on the provided sequence.

It is also helpful to get some information from the sequences themselves like Starts and Stop Codons, individual codons so If you know someone who needs a little help with their Genetic sequence this might suit you.

However if you are an advanced geneticist looking for complex computations I'm afraid that this will not help you at all. if you want to help me to get more features included in the library go ahead and raise an Issue 😃 I'm glad to help in any way possible, also if you find any bugs or unexpected behaviors please fill a new issue.

Installation

In Visual Studio nuget package manager type

Install-Package DRPTranslatorCS

or

  1. Right click in your solution
  2. Select Manage NuGet Packages...
  3. In the searchbox type DRPTranslatorCS
  4. Select DRPTranslatorCS and click Install

There you go

Usage

Parsing individual characters

using System;
using DRPTranslator;
namespace App
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(GeneticMatcher.ParseDna('C'));
            // Prints out a Symbols.DNA.C.ToString(); enum
        }
    }
}

Translating or Transcribing DNA sequences

using System;
using DRPTranslator.Translators;
namespace App
{
    class Program
    {
        static void Main(string[] args)
        {
            DnaTranslator dnaTrans = new DnaTranslator();
            string transDna = dnaTrans.TransDnaRna("ATC");
            string transcriptedDna = dnaTrans.TransDnaAa("TAC");

            Console.WriteLine(transDna);
            // UAG
            Console.WriteLine(transcriptedDna);
            // MET
            Console.ReadKey();

        }
    }
}

If you need to do more stuff individually, check out Codon class and GeneticMatcher class, both offer some useful methods like Parsing aminoacids or Codons hat could help on more specialized tasks.

TODOS:

  • Upload API Docs Website.
  • Write Demos.

If you have suggestions or found a bug please let me know in the issues 😃

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.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.0 1,915 11/18/2017 1.0.0 is deprecated because it is no longer maintained.

While it's not a full library I never received complains about it so i guess we can pull it out of Beta.
HOWEVER Breaking changes!
- Switched into netstandard 2.0, and ditched the profile 111 PCL
- The default namespace is now DRPTranslator instead of DRPTranslatorCS
Besides that the code remains the same if you are able to target a comatible .net version just switch the namespace name and the could should keep doing what it did before.