- Dependencies
$ pip install -r requirements.txt
- package installation
$ python setup.py install
The folllwing code:
import rna_library as rl
for m in rl.SecStruct('(((...(((...(((...)))...)))...)))',
'NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN'):
print(m)
Should produce this:
Helix,NNN&NNN,(((&)))
Junction,NNNNN&NNNNN,(...(&)...)
Helix,NNN&NNN,(((&)))
Junction,NNNNN&NNNNN,(...(&)...)
Helix,NNN&NNN,(((&)))
Hairpin,NNNNN,(...)