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

Biobase.Primary.IUPAC

Description

Degenerate base symbol representation. We use the same conventions as in which ignores Uracil, except if it stands alone for Char and XNA targets. If the Degenerate target is RNA, then we create Us instead of Ts.

TODO Shall we handle Complement for degenerates?

Synopsis

Documentation

data DEG Source #

Allow the full, including degenerates, alphabet.

Instances

Instances details
MkPrimary (Vector Char) DEG (n :: k) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

IsString [Letter DEG n] Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Methods

fromString :: String -> [Letter DEG n] #

Bounded (Letter DEG n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Enum (Letter DEG n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Show (Letter DEG n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Methods

showsPrec :: Int -> Letter DEG n -> ShowS #

show :: Letter DEG n -> String #

showList :: [Letter DEG n] -> ShowS #

pattern A :: Letter DEG n Source #

pattern C :: Letter DEG n Source #

pattern G :: Letter DEG n Source #

pattern T :: Letter DEG n Source #

pattern U :: Letter DEG n Source #

pattern W :: Letter DEG n Source #

pattern S :: Letter DEG n Source #

pattern M :: Letter DEG n Source #

pattern K :: Letter DEG n Source #

pattern R :: Letter DEG n Source #

pattern Y :: Letter DEG n Source #

pattern B :: Letter DEG n Source #

pattern D :: Letter DEG n Source #

pattern H :: Letter DEG n Source #

pattern V :: Letter DEG n Source #

pattern N :: Letter DEG n Source #

charDEG :: forall k (n :: k). Char -> Letter DEG n Source #

degChar :: forall k (n :: k). Letter DEG n -> Char Source #

Conversions

class Degenerate x where Source #

Instances

Instances details
Degenerate Char Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Degenerate (Letter XNA n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Degenerate (Letter DNA n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Degenerate (Letter RNA n) Source # 
Instance details

Defined in Biobase.Primary.IUPAC

Raw embeddings

iupacXDNAchars :: [(Char, String)] Source #

list of characters, using the XNA alphabet, but degenerate chars assume DNA characters.

iupacNucleotides :: ByteString Source #

Raw iupac data, embedded into the library.