Find Unknotted Groups {R4RNA} | R Documentation |
Breaks down input helices into basepairs, and assigns each basepair to a numbered group such that basepairs in each group are non-pseudoknotted relative to all other basepairs within the same group.
The algorithm is greedy and thus will not find the best combination of basepairs to minimize the number of groups.
unknottedGroups(helix)
helix |
A helix data.frame. |
An array of integers dictating the groups of each helix. Will only
correspond to the input helix structure if the input had helices of length 1
(e.g. output of expandHelix
).
Daniel Lai
data(helix) known$group <- unknottedGroups(known) print(known)