Procs for dealing with sequences of Nucleotides
Procs
func complement[T: AnyNucleotide](s: seq[T]): seq[T]
- Returns the complement of a sequence of nucleotides. Source Edit
func complement[T: AnyNucleotide](s: var seq[T])
- Replaces a sequence of nucleotides with the complement. Source Edit
func reverseComplement[T: AnyNucleotide](s: seq[T]): seq[T]
- Returns the reverse complement of a sequence of nucleotides. Source Edit
func reverseComplement[T: AnyNucleotide](s: var seq[T])
- Replace a sequence of nucleotides with the reverse complement. Source Edit
proc translate[T: AnyNucleotide](s: seq[T]; code: GeneticCode = gCode1): seq[ AminoAcid]
-
Translate sequence of nucleotides to sequence of amino acid.
See documentation for GeneticCode here
Source Edit