Su, C., Weir, J. D., Zhang, F., Yan, H., & Wu, T. (2019).
ENTRNA: a framework to predict RNA foldability.
BMC Bioinformatics, 20(1), 1–11. http://doi.org/10.1186/s12859-019-2948-5
In [1]:
from rna_tools.Seq import RNASequence
In [2]:
seq = 'acucggcuaggcgaguauaaauagccgucaggccuagcgcguccaagccuagccccuucuggggcugggcgaagggucggg'
ss = '((((........)))).......((((..............(((((((((((((((....)))))))))))))))..))))'
seq = RNASequence(seq)
seq.ss = ss
fe = seq.eval()
print('free energy: %f' % fe)
fa = seq.get_foldability()
print('foldability: %f' % fa)
In [3]:
seq = 'acucggcuaggcgaguauaaauagccgucaggccuagcgcguccaagccuagccccuucuggggcugggcgaagggucggg'
ss = '((((..[[[[[..)))).......((((....]]]]]....(((((((((((((((....)))))))))))))))..))))'
seq = RNASequence(seq)
seq.ss = ss
fe = seq.eval()
print('free energy: %f' % fe)
fa = seq.get_foldability(verbose=True)
print('foldability: %f' % fa)
In [4]:
seq = RNASequence("GGCAGGGGCGCUUCGGCCCCCUAUGCC")
seq.ss = "((((((((.((....)).)))).))))"
fe = seq.eval()
print('free energy: %f' % fe)
fa = seq.get_foldability()
print('foldability: %f' % fa)
In [7]:
seq = RNASequence("GGCAGGGGCGCUUCGGCCCCCUAUGCC")
ss = "..............()..........."
fe = seq.eval(ss=ss)
print('free energy: %f' % fe)