How can I produce such stem-loop structure from a sequence (like mirbase website).
c guug uc g u ug
gggguug uua uuugguuaucuagcu uaugag gg u
||||||| ||| ||||||||||||||| |||||| || g
ccccaau aau aagccaauagaucga auacuu cu g
a -aaa ga a - ga
Disadvantage of your notation is that it only works for very simple structures with a single terminal loop! The dot-bracket notation (and the post-script) is more powerful. If there is only one loop however, creating a (e.g. perl) script that converts to this notatios is almost trivial, I would like toleave that to you as an exercise, but maybe there is one script out there already.
Do you want to predict the structure or are you looking for a method to visualize already predicted structures?