module BioInf.ViennaRNA.Bindings
( mfe
, eos
, part
, coeos
, comfe
, copart
, CofoldF (..)
) where
import qualified Data.Array.IArray as A
import BioInf.ViennaRNA.Bindings.FFI.CoFold as FFI
import BioInf.ViennaRNA.Bindings.FFI.Fold as FFI
import BioInf.ViennaRNA.Bindings.FFI.PartFunc as FFI
mfe :: String -> IO (Double,String)
mfe = ffiFold
eos :: String -> String -> IO Double
eos i s = ffiEnergyOfStructure i s 0
part :: String -> IO (Double,String,A.Array (Int,Int) Double)
part = ffi_pf_fold
partConstrained :: String -> String -> IO (Double, String, A.Array (Int,Int) Double)
partConstrained = ffi_pf_fold_constrained
coeos :: String -> String -> Int -> IO Double
coeos i s c = ffiCoEnergyOfStructure c i s 0
comfe :: String -> Int -> IO (Double,String)
comfe s c = ffiCoFold c s
copart :: String -> Int -> IO (CofoldF,String,A.Array (Int,Int) Double)
copart s c = ffiCoPartitionFunction c s