BiobaseXNA-0.11.1.1: Efficient RNA/DNA/Protein Primary/Secondary Structure
Safe HaskellNone
LanguageHaskell2010

Biobase.Primary.Nuc

Description

The primary structure: interface to efficient encoding of RNA and DNA sequences. The design aims toward the vector library and repa. In particular, everything is strict; if you want to stream full genomes, use text or lazy bytestrings instead and cast to Biobase.Primary definitions only at the last moment.

Degenerate encoding can be found in the IUPAC module.

TODO enable OverloadedLists

Synopsis

Documentation

charDNA :: forall k (n :: k). Char -> Letter DNA n Source #

dnaChar :: forall k (n :: k). Letter DNA n -> Char Source #

cdna :: Iso' Char (Letter DNA n) Source #

An isomorphism from Char to 'Letter DNA'. This assumes that the underlying Chars actually represent a DNA sequence. This allows typesafe modification of DNA sequences since only [A,C,G,T,N] are allowed.

charRNA :: forall k (n :: k). Char -> Letter RNA n Source #

rnaChar :: forall k (n :: k). Letter RNA n -> Char Source #

crna :: Iso' Char (Letter RNA n) Source #

An isomorphism from Char to 'Letter RNA'. This assumes that the underlying Chars actually represent an RNA sequence. This allows typesafe modification of RNA sequences since only [A,C,G,U,N] are allowed.

viennaPairs :: forall k1 k2 (n1 :: k1) (n2 :: k2). [(Letter RNA n1, Letter RNA n2)] Source #

viennaPairsNN :: forall k1 k2 (n1 :: k1) (n2 :: k2). [(Letter RNA n1, Letter RNA n2)] Source #

charXNA :: forall k (n :: k). Char -> Letter XNA n Source #

xnaChar :: forall k (n :: k). Letter XNA n -> Char Source #