Versions in this module Expand all Collapse all v1 v1.0.1 May 1, 2024 Changes in this version + func GCContent(seq []Base) (gcContent float64) + func MeltingTemp(seq []Base) float64 + func SeqsAreSimilar(a, b []Base, numAllowedMismatch int) bool type Base + func ReverseComplementAndCopy(bases []Base) []Base v1.0.0 Aug 25, 2023 Changes in this version + var ErrLenInputSeqNotDivThree = errors.New(...) + var GeneticCode = map[Codon]AminoAcid + func AllToLower(bases []Base) + func AllToUpper(bases []Base) + func AminoAcidToShortString(a AminoAcid) string + func AminoAcidToString(a AminoAcid) string + func BaseToRune(base Base) rune + func BaseToString(b Base) string + func BasesToString(bases []Base) string + func CompareSeqsCaseSensitive(alpha []Base, beta []Base) int + func CompareSeqsCaseSensitiveIgnoreGaps(alpha []Base, beta []Base) int + func CompareSeqsIgnoreCase(alpha []Base, beta []Base) int + func CompareSeqsIgnoreCaseAndGaps(alpha []Base, beta []Base) int + func CompareTwoDSeqsCaseSensitive(alpha [][]Base, beta [][]Base) int + func CompareTwoDSeqsCaseSensitiveIgnoreGaps(alpha [][]Base, beta [][]Base) int + func CompareTwoDSeqsIgnoreCase(alpha [][]Base, beta [][]Base) int + func CompareTwoDSeqsIgnoreCaseAndGaps(alpha [][]Base, beta [][]Base) int + func Complement(bases []Base) + func Count(seq []Base) (ACount int, CCount int, GCount int, TCount int, NCount int, aCount int, ...) + func CountBase(seq []Base, b Base) int + func CountBaseInterval(seq []Base, b Base, start int, end int) int + func CountGaps(seq []Base) int + func CountMask(seq []Base) (unmaskedCount int, maskedCount int, gapCount int) + func DefineBase(b Base) bool + func Dist(a []Base, b []Base) (dist int) + func IsEqual(c1 Codon, c2 Codon) bool + func IsLower(b Base) bool + func IsSeqOfACGT(seq []Base) bool + func NonSynonymous(c1 Codon, c2 Codon) bool + func PeptideToShortString(a []AminoAcid) string + func PeptideToString(a []AminoAcid) string + func RangeToLower(bases []Base, start int, end int) + func RangeToUpper(bases []Base, start int, end int) + func ReverseComplement(bases []Base) + func Synonymous(c1 Codon, c2 Codon) bool + func TranslateToShortString(b []Base) string + func TranslateToString(b []Base) string + type AminoAcid byte + const Ala + const Arg + const Asn + const Asp + const Cys + const Gln + const Glu + const Gly + const His + const Ile + const Leu + const Lys + const Met + const Phe + const Pro + const Ser + const Stop + const Thr + const Trp + const Tyr + const Val + func OneLetterToAminoAcid(b byte) AminoAcid + func StringToAminoAcid(s string, singleLetter bool) []AminoAcid + func ThreeLetterToAminoAcid(s string) AminoAcid + func TranslateCodon(c Codon) AminoAcid + func TranslateSeq(b []Base) []AminoAcid + func TranslateSeqToTer(b []Base) []AminoAcid + type Base byte + const A + const C + const Dot + const G + const Gap + const LowerA + const LowerC + const LowerG + const LowerN + const LowerT + const N + const Nil + const T + func ByteSliceToDnaBases(b []byte) []Base + func ByteToBase(b byte) (Base, error) + func CodonsToBases(c []Codon) []Base + func ComplementSingleBase(b Base) Base + func CreateAllGaps(numGaps int) []Base + func CreateAllNs(numGaps int) []Base + func Delete(seq []Base, delStart int, delEnd int) []Base + func Extract(rec []Base, start int, end int) []Base + func Insert(seq []Base, insPos int, insSeq []Base) []Base + func RemoveBase(bases []Base, baseToRemove Base) []Base + func RemoveGaps(bases []Base) []Base + func Replace(seq []Base, start int, end int, insSeq []Base) []Base + func RuneToBase(r rune) (Base, error) + func StringToBase(s string) Base + func StringToBases(s string) []Base + func StringToBasesForced(s string) []Base + func ToLower(b Base) Base + func ToUpper(b Base) Base + type Codon [3]Base + func BasesToCodons(b []Base) []Codon + func BasesToCodonsIgnoreRemainder(b []Base) []Codon