DRPTranslatorCS 1.0.0

Install-Package DRPTranslatorCS -Version 1.0.0
dotnet add package DRPTranslatorCS --version 1.0.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DRPTranslatorCS, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 😃

  • .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,319 11/18/2017

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.