a short python wrapper for vienna tools
Project description
vienna
a short python wrapper for vienna tools (https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/install.html) Note I did not develop this software just built this short wrapper.
how to install
install anaconda
highly recommended to install anaconda first and create a py3 environment
# to install conda on linux
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
conda create --name py3 python=3.7 --yes
conda activate py3
# to install conda on mac
# https://docs.anaconda.com/anaconda/install/mac-os/
bash ~/Downloads/Anaconda3-2020.02-MacOSX-x86_64.sh
install vienna
Note this is just a wrapper so you must install the vienna fold code
# this can be accomplished using conda
conda install -c bioconda viennarna
# if you do not wish to use conda
# you can install it via many options from the website
https://www.tbi.univie.ac.at/RNA/
install vienna python package
# vienna python package is avialible on PYPI
pip install vienna
# you can also install it from github
git clone https://github.com/jyesselm/vienna
cd vienna
python setup.py install
how to use
>>> import vienna
>>> fr = vienna.fold('GGGGAAAACCCC')
>>> print(fr)
FoldResults(dot_bracket='((((....))))', mfe=-5.4, ens_defect=1.62)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vienna-0.3.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for vienna-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d4a80290211f7d1877f6d866284ba324afe8ab88433191ddf8edd97e73f79b |
|
MD5 | 0332ec9c1e7ad4bc6217b50787af775f |
|
BLAKE2b-256 | 149e7a1f16897f7b2747cd65ab7e20e86e716d5b42244f927386e29697357e83 |