sequtil

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 1 Imported by: 9

Documentation

Overview

Package sequtil provides genetic sequence processing functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNAFrom2Bit

func DNAFrom2Bit(dst, src []byte)

DNAFrom2Bit writes to dst the nucleotides represented in 2-bit in src. Only outputs characters in "ACGT".

func DNATo2Bit

func DNATo2Bit(dst, src []byte)

DNATo2Bit writes to dst the 2-bit representation of the DNA sequence in src. Any character not in "aAcCgGtT" will cause a panic.

func Iton

func Iton(num int) byte

Iton converts an int to a nucleotide character. Returns 'N' for any value not in {0,1,2,3}.

func Ntoi

func Ntoi(nuc byte) int

Ntoi converts a nucleotide to an int. Returns -1 for unknown nucleotides.

func ReverseComplement

func ReverseComplement(dst, src []byte)

ReverseComplement writes to dst the reverse complement of src. Characters not in "aAcCgGtTnN" will cause a panic.

func ReverseComplementString

func ReverseComplementString(s string) string

ReverseComplementString returns the reverse complement of s. Characters not in "aAcCgGtTnN" will cause a panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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