/cmdrnafold

Primitive wrapper around the Vienna RNAFold commandline tool.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

cmdrnafold - a commandline wrapper library for viennaRNA

check

A very simple python wrapper around ViennaRNA Fold.

This is handy commandline wrapper if you can not get the proper ViennaRNA package to run right.

Currently it only provides one interface that is a kind of drop in replacement:

from cmdrnafold import RNA
# import RNA // Could not get ViennaRNA package to work

sequence = "CGCAGGGAUACCCGCG"

# create new fold_compound object
fc = RNA.fold_compound(sequence)

# compute minimum free energy (mfe) and corresponding structure
(ss, mfe) = fc.mfe()

# print output
print("{} [ {:6.2f} ]".format(ss, mfe))

This tool requires the viennaRNA commandline tools.