Skip to content

Golang implementation of the Nearest-neighbor method for DNA oligo melting temperature calculations

License

Notifications You must be signed in to change notification settings

mimikwang/gomelt

Repository files navigation

gomelt

GoDoc mimikwang

Overview

gomelt is a golang implementation of DNA oligo melting temperature calculations based on the Nearest-neighbor method.

Specific information for this can be found on this Wikipedia page.

Installation

$ go get github.com/mimikwang/gomelt

Examples

Calculate melting temperature:

package main

import (
	"fmt"

	"github.com/mimikwang/gomelt"
)

func main() {
	// Set up thermodynamics parameters
	parameters := gomelt.Params{
		Monovalent: 50.0,
		Divalent:   1.5,
		Dntp:       0.2,
		Dna:        200.0,
		T:          37.0,
	}

	// Calculate melting thermodynamics
	result, _ := gomelt.MeltingTemp("AAAGGCCTT", parameters)

	fmt.Println(result.Tm)
	// 20.24
	fmt.Println(result.Dh)
	// -59.6
	fmt.Println(result.Ds)
	// -169.74
	fmt.Println(result.Dg)
	// -6.96

}

About

Golang implementation of the Nearest-neighbor method for DNA oligo melting temperature calculations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages