Skip to main content

MrBayes Secondary Structure Converter

Originally written by Diogo Margins de Sá (http://lattes.cnpq.br/2090058491124450)

Convert the dot-bracket format to MrBayes readable format. The dot-bracket format consists of a combination of brackets (complementary parenthesis) the Watson–Crick pairs of RNA and dots representing loops.

Usage

It receives only a -s parameter containing a dot-bracket string.

python ./converter.py -s '.((((((((((((((((((((((...)))))))))))...))).))))))))....(((((....(.((.(((.((((...))))))).)))))))).'

The output like this:

stems = 2 52 3 51 4 50 5 49 6 48 7 47 8 46 9 45 10 43 11 42 12 41 13 37 14 36 15 35 16 34 17 33 18 32 19 31 20 30 21 29 22 28 23 27 57 97 58 96 59 95 60 94 61 93 66 92 68 91 69 90 71 88 72 87 73 86 75 85 76 84 77 83 78 82

loops = 1 24-26 38-40 44 53-56 62-65 67 70 74 79-81 89 98

pairs: 2:52,3:51,4:50,5:49,6:48,7:47,8:46,9:45,10:43,11:42,12:41,13:37,14:36,15:35,16:34,17:33,18:32,19:31,20:30,21:29,22:28,23:27,57:97,58:96,59:95,60:94,61:93,66:92,68:91,69:90,71:88,72:87,73:86,75:85,76:84,77:83,78:82

Let's code and be happy!!

Release files for MrBayeStruConverter 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MrBayeStruConverter 0.0.2
File Size Uploaded
MrBayeStruConverter-0.0.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MrBayeStruConverter 0.0.2
File Interpreter ABI Platform
MrBayeStruConverter-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / MrBayeStruConverter-0.0.2.tar.gz

Download URL MrBayeStruConverter-0.0.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a82bd9c9557b21e2470c4279d970960a34af29622e3f28d439769b5a200a1a23
BLAKE2b-256 checksum
How to use checksums
2f6381bc9e84e51fa06fbf21526d9d7f6381f1604e97f62d773af632f77996fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / MrBayeStruConverter-0.0.2-py3-none-any.whl

Download URL MrBayeStruConverter-0.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f7b3eea00f7dbdadc9e7fbc2dc6211f59723c97e9a417ea5020061be54b1b9
BLAKE2b-256 checksum
How to use checksums
3f6f21254e22ae16e4bbe0174ab49309b2533ceb862a29cbc7568a58d45d5052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page