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"))
Metadata
Release files for hotknots 2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hotknots-2.4.tar.gz | 435.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.14+ x86-64 | Details |
Total release size: 1.0 MB
Release files / hotknots-2.4.tar.gz
| Download URL | hotknots-2.4.tar.gz |
|---|---|
| Size | 435.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9e8b14dc77c250735117452ea57f09c550d2cd56f5403ef0175a1c75cccc5a3
|
|
BLAKE2b-256 checksum How to use checksums |
66138e7f5a2afeb2fa51c9e8b81a4bbc5d75c0b5e35f403f09ab76e4495c6140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
|
Release files / hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl
| Download URL | hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl |
|---|---|
| Size | 603.6 kB |
| Tags | CPython 3.8 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
cc55e00447864849c539a3acb1cdba6c34d9cb38f9cf1ea99cbfe8e875de7f5a
|
|
BLAKE2b-256 checksum How to use checksums |
48e31068c7ff2648921adfa12727976509ddb9044e3c73c776f237ed3d93f279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
|