src/bioseq/sequence

  Source   Edit

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
func toCharSeq[T](data: seq[T]): seq[char]
  Source   Edit
proc toSeq(data: seq[char]; typ: typedesc): seq[typ:type]
  Source   Edit
proc toSeq(data: string; typ: typedesc): seq[typ:type]
  Source   Edit
func toString[T](data: seq[T]): string
  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