transform

package
v0.14.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complement

func Complement(sequence string) string

Complement takes the complement of a sequence.

Example
sequence := "GATTACA"
complement := Complement(sequence)
fmt.Println(complement)
Output:

CTAATGT

func ComplementBase

func ComplementBase(basePair rune) rune

ComplementBase accepts a base pair and returns its complement base pair

func GetKmerTable added in v0.14.5

func GetKmerTable(k int, sequence string) map[string]bool

getKmerTable receive a sequence string and a k int and generates a set of unique k-mers

func Reverse

func Reverse(sequence string) string

Reverse takes the reverse of a sequence.

Example
sequence := "GATTACA"
reverse := Reverse(sequence)
fmt.Println(reverse)
Output:

ACATTAG

func ReverseComplement

func ReverseComplement(sequence string) string

ReverseComplement takes the reverse complement of a sequence.

Example
sequence := "GATTACA"
reverseComplement := ReverseComplement(sequence)
fmt.Println(reverseComplement)
Output:

TGTAATC

func Transcription added in v0.11.4

func Transcription(sequence string) string
Example
sequence := "GATTACA"
transcription := Transcription(sequence)
fmt.Println(transcription)
Output:

CUAAUGU

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL