Skip to main content

rnaviewparser is a simple parser for RNAVIEW_ filename.pdb.out files.

.. _RNAVIEW: http://ndbserver.rutgers.edu/ndbmodule/services/download/rnaview.html .. _ply: https://www.dabeaz.com/ply/"

It uses ply_ for the lexing/parsing bit and python dataclasses to store the data. It allows an export to CSV files.

It works with Python 3.7.

:Author: Maria Climent-Pommeret (Chopopope) :License: MIT License :Homepage: https://gitlab.climent-pommeret.red/Chopopope/rnaviewparser

Installating

Please install in a virtual environment that uses Python3.7 by typing::

pip install rnaviewparser

Usage example

Consider this::

In[1]: from rnaviewparser import rnaviewparser

In[2]: basepairs = rnaviewparser.RnaviewParser("~/playground/tr0001.pdb.out").parse()

In[3]: factory = basepairs.generate_interactions()

In[4]: wh = factory["W/H"]

In[5]: wh.pretty()
Out[5]:
+------------------+-------------+-------+
| Interaction type | Orientation | Total |
+------------------+-------------+-------+
|       std        |     cis     |   0   |
|       std        |    trans    |   0   |
+------------------+-------------+-------+

In[6]: basepairs.csv("/tmp/foo.csv")

In[7]: ww = factory["W/W"]

In[8]: ww.find_interaction_by_position(8)
Out[8]:
(1,
 [BasePair(orientation='cis', position_1=1, position_2=72, base_1='G', base_2='C', interaction_type='+/+')])


Release files for rnaviewparser 0.1.3

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

Source distribution (sdist)

Source distribution for rnaviewparser 0.1.3
File Size Uploaded
rnaviewparser-0.1.3.tar.gz 6.3 kB Details

Built distribution (wheel)

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

Total release size: 14.5 kB

Release files / rnaviewparser-0.1.3.tar.gz

Download URL rnaviewparser-0.1.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5595fad5e5723c60afac0e4c1a64c8a4e4344797323e0b3a0372b1b3b9774b96
BLAKE2b-256 checksum
How to use checksums
292e10225ad548da9991eb033994e4aabc352519646acfd6ee3819ac558b2c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / rnaviewparser-0.1.3-py3-none-any.whl

Download URL rnaviewparser-0.1.3-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a4a83f69c45aae65649d74c601a41b096d159a66a6542ce58528441321b450a
BLAKE2b-256 checksum
How to use checksums
1d5e17a6a61f595b87ab9a7177a13dda47a5689deda77988a02d5cc04ec3715f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.3 This release

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