python-linearpartition
Unofficial CPython binding to LinearPartition
Installation
Use pip to install the module.
pip install linearpartition-unofficial
You may build from the source code for unsupported Python versions or platforms.
git clone --recursive https://github.com/ChangLabSNU/python-linearpartition
cd python-linearpartition
pip install .
Usage
The module currently only has one function called partition(seq).
The seq parameter should be an RNA sequence in uppercase letters,
and any T should be converted to U before passing it to the function.
>>> import linearpartition as lp
>>> seq = 'UGUCGGGGUUGGCUGUCUGACA'
>>> pred = lp.partition(seq)
>>> pred['free_energy']
-7.216465644007023
>>> pred['structure']
'(((((((........)))))))'
>>> import pandas as pd
>>> pd.DataFrame(pred['bpp']).sort_values('prob', ascending=False).head()
i j prob
19 3 18 0.999201
18 2 19 0.998801
17 1 20 0.997717
21 5 16 0.996692
22 4 17 0.996508
Functions
linearpartition.partition()
The linearpartition.partition function is a Python C extension function that
calls LinearPartition to
perform a linear partitioning operation and get the base pairing probability
matrix.
linearpartition.partition(seq, mode='eterna', beamsize=100, dangles=2)
Parameters
seq(required): A string containing the RNA sequence to be analyzed. The sequence must be in uppercase and only contain A, C, G, and U. This parameter is required.mode(optional): The name of free energy parameters to use. Use'vienna'for Vienna RNA parameters, or'eterna'for EternaFold parameters.beamsize(optional): An integer representing the beam size for the operation. Larger value requires more computational time and memory. The default value is 100.dangles(optional): An integer representing the number of dangles for the partitioning operation. The default value is 2.
Return Value
This function returns a dictionary containing the MEA structure, base-pairing probability matrix and free energy of the ensemble structure in kcal/mol from the result of the partitioning operation.
Author
Hyeshik Chang <hyeshik@snu.ac.kr>
License
This Python binding is licensed under the MIT-style license. However, the compiled binary includes code from the LinearPartition package, which is licensed for non-commercial use.
Metadata
Release files for linearpartition-unofficial 0.3
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 |
|---|---|---|---|---|
| linearpartition-unofficial-0.3.tar.gz | 8.4 kB | Without provenance | Details for linearpartition-unofficial-0.3.tar.gz |
Built distributions (wheels)
Total release size: 6.4 MB
Release files / linearpartition-unofficial-0.3.tar.gz
| Download URL | linearpartition-unofficial-0.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03c579e6a1bc16e67dc588237a9a54f5f4c0fe2b69086dff17fde8ae555ea59c
|
|
BLAKE2b-256 checksum How to use checksums |
a5c025268493b65aa628d428b1429f7032da3a11513ee434c5b4b0457688ab66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-pp310-pypy310_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 101.2 kB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
9e0cb1563a9beb03bb2cad764e0c8751bdcebde22fe3ab96a24aa23a2c35729a
|
|
BLAKE2b-256 checksum How to use checksums |
ab15dca97d2c61b520d30bda4fb69c2bf2a69a6d7a58e1b867730b2240ef8310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-pp39-pypy39_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-pp39-pypy39_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 101.1 kB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
3048a93c134356ff693f716afeff94f4bca273acf688f533d2fac47b68f24986
|
|
BLAKE2b-256 checksum How to use checksums |
8052415cb3b7d55e4e18bb5cffd3f69f2c8a589b27383f8c260f2d84a0c48420
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-pp38-pypy38_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-pp38-pypy38_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 101.3 kB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
245cf364c0ae2804a85ceba82b416350f06feb2d789fbf7d66e732e12ffc6cf6
|
|
BLAKE2b-256 checksum How to use checksums |
36d69d3c074a5613b5966cd094d6a895c5eef166ee3fef2e41991e2bc4ac2616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-pp37-pypy37_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-pp37-pypy37_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 102.4 kB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
b0166c41a2c4d09c118ddf659dd91a8b0b2b6f9784a55bf5be8c7b7b25f8446d
|
|
BLAKE2b-256 checksum How to use checksums |
2e106f0768ac081cb5f6e6d4622695ee10b6baa78ff08215b7acb6273b37abe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 851.1 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9f1fb9f839a05200c6c6547df454ae1a6fe5a5b8051d74b793bce4f9a78305ca
|
|
BLAKE2b-256 checksum How to use checksums |
59ee9def4c281d6d331b12ff47965084e814337deaeab7aeddd5782e422b513d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 850.9 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1097497a9facf6080360a6fc82de8fefd91e2da681b681f4b28698798c888105
|
|
BLAKE2b-256 checksum How to use checksums |
c6bc5a462d0a9bcf820f232c8efbf9eb2522560896730fa6c35c82bede38d8c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 850.1 kB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
aa2a4e1b3bc2456670a9b9d5ee8e6dfc95fbfd55e6ef509f58436d226a834efc
|
|
BLAKE2b-256 checksum How to use checksums |
296fc97c2c2dbbed2e6e7ae6b71ab4d601621e95987afc263fb786d67cbff3ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 849.9 kB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
7f8c9db4406db083b201c2af5458a0893c997ac0b48b035f91a4f99472f43966
|
|
BLAKE2b-256 checksum How to use checksums |
33b67c237979bda22529e40aa74b86a2f0cf3aced25b35856b9333a4d885d43b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 851.2 kB |
| Tags | CPython 3.8 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a15048ebf17b1095c6abecf7b5ae9cdbf6a3780759b32eed362c2d5d92185b83
|
|
BLAKE2b-256 checksum How to use checksums |
96d7890ac0ae9951e9312c1b9b60067f4ec6cd18e67fd7534ec2f6d4e7b3bfc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 849.4 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
11a83bfb85c8b3dab06c67021f736b488e5e929091d5ea7df4082093edd44c54
|
|
BLAKE2b-256 checksum How to use checksums |
94f8331f4782681a22eeb75601a2146bdcc002223e715c6673b8d222e36a19f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / linearpartition_unofficial-0.3-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | linearpartition_unofficial-0.3-cp36-cp36m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 847.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e87e86e3835c511b3b41c9d90c287f69783d04d57efc8d43f8a5f1f5eafa6e6
|
|
BLAKE2b-256 checksum How to use checksums |
4511ddaead668c006e3fb8dae13e9e8b0a1a62d6776923afb636aa3c71ffd2d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for linearpartition-unofficial 0.3
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.