Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides detailed information on isostericity of RNA basepairs. All data is extracted from csv files which were created from supplemental files in:
Frequency and isostericity of RNA base pairs Jesse Stombaugh, Craig L. Zirbel, Eric Westhof, and Neocles B. Leontis Nucl. Acids Res. (2009) doi:10.1093nargkp011
Synopsis
- class IsostericityLookup a where
- getClasses :: a -> [String]
- inClass :: String -> [a]
- defaultIsostericityMap :: Map (ExtPair n) [String]
- mkIsostericityMap :: [[[String]]] -> Map (ExtPair n) [String]
- mkIsostericityList :: [[[String]]] -> [(ExtPair n, [String])]
- parsedCSV :: [[[[Char]]]]
- detailedCSV :: ByteString
Documentation
class IsostericityLookup a where Source #
Methods to determine the isostericity classes for a given basepair type, or alternatively which basepair types are in a certain isostericity class.
TODO This requires a major cleanup: right now we are handling String
s as
class descriptors, but we should really be newtype-wrapping or create enum
data constructors.
getClasses :: a -> [String] Source #
To which classes does a basepair+type belong
inClass :: String -> [a] Source #
What basepairs+type are in a particular class
Instances
IsostericityLookup (ExtPair n) Source # | For extended basepairs, we take the default mapping and go from there. TODO inClass missing |
IsostericityLookup (Pair n) Source # | Normal basepairs are assumed to have cWW basepairing. TODO inClass missing |
default data
mkIsostericityMap :: [[[String]]] -> Map (ExtPair n) [String] Source #
Mapping of (pair,pairtype) to isostericity class.
mkIsostericityList :: [[[String]]] -> [(ExtPair n, [String])] Source #
Process CSV list-of-lists to get the isostericity data.
Raw embeddings
detailedCSV :: ByteString Source #
Raw CSV data, embedded into the library.