RNAwolf- RNA folding with non-canonical basepairs and base-triplets.




fHairpin :: [Int] -> BaseF (ExtFeatures (Vector (ExtPairIdx, Double)))Source

A hairpin is a number of 0 or more unpaired nucleotides, enclosed by the nucleotides (i,j) which pair.

TODO should we allow hairpins with no unpaired nucleotides in the pin? They do occur, but only under special circumstances which we should model differently...

TODO re-allow IMI

btHairpin :: Params -> Primary -> EStem -> ExtBTSource

Backtracking hairpins.