You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For sliding window predictions on a sequence that produce an array of results instead of just one (one result for each window).
To use windowed predictions we have to do the following:
call vrna_fold_compound() with option VRNA_OPTION_WINDOW
set the window size set with vrna_md_t.window_size
use the functions vrna_mfe_window_cb, vrna_mfe_window_zscore_cb, vrna_probs_window
A Julia interface could look like this:
mfe_window(cb::Function, fc::FoldCompound, ...)
mfe_window(fc::FoldCompound, ...)
probs_window(cb::Function, fc::FoldCompound, ...)
probs_window(fc::FoldCompound, ...)
With the callback function in the first position so we can use do-notation to pass custom callback functions.
The second version of each function without the callback just stores all the results in an array and returns that (by calling the first version with a callback that pushes each result to an array).
This style of callback function would also be something useful for subopt, pbacktrack, and maybe other functions where ViennaRNA accepts callback functions.
The text was updated successfully, but these errors were encountered:
Following discussion in #7 (comment)
For sliding window predictions on a sequence that produce an array of results instead of just one (one result for each window).
To use windowed predictions we have to do the following:
vrna_fold_compound()
with optionVRNA_OPTION_WINDOW
vrna_md_t.window_size
vrna_mfe_window_cb
,vrna_mfe_window_zscore_cb
,vrna_probs_window
A Julia interface could look like this:
mfe_window(cb::Function, fc::FoldCompound, ...)
mfe_window(fc::FoldCompound, ...)
probs_window(cb::Function, fc::FoldCompound, ...)
probs_window(fc::FoldCompound, ...)
With the callback function in the first position so we can use do-notation to pass custom callback functions.
The second version of each function without the callback just stores all the results in an array and returns that (by calling the first version with a callback that pushes each result to an array).
This style of callback function would also be something useful for
subopt
,pbacktrack
, and maybe other functions where ViennaRNA accepts callback functions.The text was updated successfully, but these errors were encountered: