RNAtweaks
Installation
In addition to the RNAtweaks package you also need the viennarna package from anaconda
pip install RNAtweaks
conda install viennarna
Usage
RNAplfold
For RNAplfold usage two different wrappers exist. One uses the command line version of RNAplfold and the other uses the ViennaRNA API
import RNAtweaks.RNAtweaks as RNAtweaks
sequence = "AAATTTTGGGGGGCCCC"
window = 3 # winsize option of RNAplfold
span = 3 # span option of RNAplfold
region = 3 # ulength option of RNAplfold
constraint = ("paired", 3, 5)
api_result = RNAtweaks.api_rnaplfold(sequence, window, span, region=region, temperature=37.0, constraint=[constraint])
cmd_result = RNAtweaks.cmd_rnaplfold(sequence, window, span, region=region, temperature=37.0, constraint=[constraint])
For now only paired and unpaired constraints are supported. The constraints must be a list of
Tuples in the format ("paired"/"unpaired", start, end) in contrast to the ViennaRNA constraints these are zero based.
Both calls will produce an identical PLFoldOutput object that reflects the ViennaRNA _lunp file.
PLFoldOutput
Object that reflects the ViennaRNA _lunp file. The objects supports various functions to get different representations
of the file. The recommended usage is to produce an numpy array as follows:
array = api_result.numpy_array
However, it is also possible to get the text representation of the file, which is usually produced by RNAplfold via:
array = api_result.get_text(nan="NA", truncated=False)
Hereby nan replaced the non float values with "NA" and the truncated flag is used to either keep or drop the header
lines beginning with "#".
Metadata
Release files for RNAtweaks 0.0.2
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 |
|---|---|---|---|---|
| RNAtweaks-0.0.2.tar.gz | 8.5 kB | Without provenance | Details for RNAtweaks-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RNAtweaks-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for RNAtweaks-0.0.2-py3-none-any.whl |
Total release size: 28.9 kB
Release files / RNAtweaks-0.0.2.tar.gz
| Download URL | RNAtweaks-0.0.2.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d83c028bf5641b5d938d849f5bf85d8ae3c037ac85f933bb8c2d488aeb594847
|
|
BLAKE2b-256 checksum How to use checksums |
0ef245daad47cb66a396e4d3451204739080fd056e3cecbc9a5c3fb388ef8aff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / RNAtweaks-0.0.2-py3-none-any.whl
| Download URL | RNAtweaks-0.0.2-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
811f4b225eda08539b1a481303ce29ec3aad6ae81420f733815e8baacf352bb0
|
|
BLAKE2b-256 checksum How to use checksums |
83c866cac9103f55c4957f22ba5b03cb538333540c00e6672ba293d493391ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for RNAtweaks 0.0.2
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.