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 | Provenance | Actions |
|---|---|---|---|---|
| hotknots-2.4.tar.gz | 435.3 kB | Without provenance | Details for hotknots-2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.14+ x86-64 | Details for hotknots-2.4-cp38-cp38-macosx_10_14_x86_64.whl |
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
|
Security for hotknots 2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.