File: parser.rst

package info (click to toggle)
pybel 0.15.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,492 kB
  • sloc: python: 29,392; javascript: 246; makefile: 226; sh: 20
file content (39 lines) | stat: -rw-r--r-- 1,222 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Parsers
=======
This page is for users who want to squeeze the most bizarre possibilities out of PyBEL. Most users will not need this
reference.

PyBEL makes extensive use of the PyParsing module. The code is organized to different modules to reflect
the different faces ot the BEL language. These parsers support BEL 2.0 and have some backwards compatibility
for rewriting BEL v1.0 statements as BEL v2.0. The biologist and bioinformatician using this software will likely never
need to read this page, but a developer seeking to extend the language will be interested to see the inner workings
of these parsers.

See: https://github.com/OpenBEL/language/blob/master/version_2.0/MIGRATE_BEL1_BEL2.md

BEL Parser
----------
.. autoclass:: pybel.parser.parse_bel.BELParser
    :members:

.. autofunction:: pybel.io.line_utils.parse_lines

Metadata Parser
---------------
.. autoclass:: pybel.parser.parse_metadata.MetadataParser
    :members:

Control Parser
--------------
.. autoclass:: pybel.parser.parse_control.ControlParser
    :members:

Concept Parser
--------------
.. autoclass:: pybel.parser.parse_concept.ConceptParser
    :members:

Sub-Parsers
-----------
.. automodule:: pybel.parser.modifiers
    :members: