Safe Haskell | None |
---|---|
Language | Haskell2010 |
Degenerate base symbol representation. We use the same conventions as in
which ignores
U
racil, except if it stands alone for Char
and XNA
targets. If the
Degenerate
target is RNA
, then we create U
s instead of T
s.
TODO Shall we handle Complement
for degenerates?
Synopsis
- data DEG
- pattern A :: forall k (n :: k). Letter DEG n
- pattern C :: forall k (n :: k). Letter DEG n
- pattern G :: forall k (n :: k). Letter DEG n
- pattern T :: forall k (n :: k). Letter DEG n
- pattern U :: forall k (n :: k). Letter DEG n
- pattern W :: forall k (n :: k). Letter DEG n
- pattern S :: forall k (n :: k). Letter DEG n
- pattern M :: forall k (n :: k). Letter DEG n
- pattern K :: forall k (n :: k). Letter DEG n
- pattern R :: forall k (n :: k). Letter DEG n
- pattern Y :: forall k (n :: k). Letter DEG n
- pattern B :: forall k (n :: k). Letter DEG n
- pattern D :: forall k (n :: k). Letter DEG n
- pattern H :: forall k (n :: k). Letter DEG n
- pattern V :: forall k (n :: k). Letter DEG n
- pattern N :: forall k (n :: k). Letter DEG n
- charDEG :: Char -> Letter DEG n
- degChar :: Letter DEG n -> Char
- degSeq :: MkPrimary p DEG n => p -> Primary DEG n
- class Degenerate x where
- fromDegenerate :: Char -> [x]
- toDegenerate :: [x] -> Maybe Char
- iupacXDNAchars :: [(Char, String)]
- iupacNucleotides :: ByteString
Documentation
Allow the full, including degenerates, alphabet.
Instances
MkPrimary (Vector Char) DEG (n :: k) Source # | |
IsString [Letter DEG n] Source # | |
Defined in Biobase.Primary.IUPAC fromString :: String -> [Letter DEG n] # | |
Bounded (Letter DEG n) Source # | |
Enum (Letter DEG n) Source # | |
Defined in Biobase.Primary.IUPAC succ :: Letter DEG n -> Letter DEG n # pred :: Letter DEG n -> Letter DEG n # toEnum :: Int -> Letter DEG n # fromEnum :: Letter DEG n -> Int # enumFrom :: Letter DEG n -> [Letter DEG n] # enumFromThen :: Letter DEG n -> Letter DEG n -> [Letter DEG n] # enumFromTo :: Letter DEG n -> Letter DEG n -> [Letter DEG n] # enumFromThenTo :: Letter DEG n -> Letter DEG n -> Letter DEG n -> [Letter DEG n] # | |
Show (Letter DEG n) Source # | |
Conversions
class Degenerate x where Source #
fromDegenerate :: Char -> [x] Source #
toDegenerate :: [x] -> Maybe Char Source #
Instances
Degenerate Char Source # | |
Defined in Biobase.Primary.IUPAC | |
Degenerate (Letter XNA n) Source # | |
Defined in Biobase.Primary.IUPAC | |
Degenerate (Letter DNA n) Source # | |
Defined in Biobase.Primary.IUPAC | |
Degenerate (Letter RNA n) Source # | |
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.