A a tool to predict RNA secondary structure, including pseudoknots
Project description
HotKnots
Fast, and best, DNA/RNA folding algorithm
This was my attempt to get an RNA/DNA secondary structure program that included pseudoknot structures working as a Python C Extenstion.
I tried several different algoritms/packages, and Hotknots was not only the fastest, but also the only that actually did pseudoknots.
I got it mostly working, but have not gottten around to making the parameter files as internal variables. Having extenal data files with python PIP pacakges is a hassle due to operating environments being virtual and not having actual file system paths. Currently the params folder has to be in the same folder that you run HotKnots
To install:
git clone https://github.com/deprekate/HotKnots.git
pip install HotKnots/ --user
To use on the command line:
echo AACCCCUGCUGAAUAAAGCGGGGAAUAACUAUUCUAC | hotknots.py
and the output should be the sequence, followed by the structure and mfe of the best folding
AACCCCUGCUGAAUAAAGCGGGGAAUAACUAUUCUAC
...((((((([[[[[.)))))))......]]]]]... -9.883
To import and use in other python code, you need to import the package, and then find out where it is installed, so it can find the various parameter files. This is also when you can specify which model and paramters to use:
import HotKnots as hk
# initialize everything first
params = os.path.dirname(hk.__file__)
hk.initialize( "DP", os.path.join(params,"parameters_DP09.txt") , os.path.join(params,"multirnafold.conf"), os.path.join(params,"pkenergy.conf") )
print(hk.fold("AACCCCUGCUGAAUAAAGCGGGGAAUAACUAUUCUAC", "DP"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc55e00447864849c539a3acb1cdba6c34d9cb38f9cf1ea99cbfe8e875de7f5a |
|
MD5 | 0f9733732081e64babcb2a6614c44eb8 |
|
BLAKE2b-256 | 48e31068c7ff2648921adfa12727976509ddb9044e3c73c776f237ed3d93f279 |