Documentation
¶
Overview ¶
Package code describes biological sequence letters coded by bytes and sometimes encoded into hash int64s
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CountDnaBytes ¶
CountBase returns the number of the designated base present in the input sequence.
func CountInterval ¶
CountBaseInterval returns the number of the designated base present in the input range of the sequence.
func DnaToByteNoMask ¶
func ReverseComplement ¶
func ReverseComplement(rc []Dna)
ReverseComplement reverses a sequence of bases and complements each base. Used to switch strands and maintain 5' -> 3' orientation.
Types ¶
type Dna ¶
type Dna byte
func ByteToDnaNoMask ¶
ByteToDna converts a byte into a dna.Base if it matches one of the acceptable DNA characters. Notes: It will also mask the lower case values and return dna.Base as uppercase bases. Note: '*', used by VCF to denote deleted alleles, becomes a Gap in DNA.
func ComplementDna ¶
ComplementSingleBase returns the nucleotide complementary to the input base.