INNER CODE UNIT · Python

parse

pybel/pybel · src/pybel/cli.py:166

def parse(text: str, pprint: bool):
    """Parse a single BEL statement and pring JSON output."""
    from .parser.parse_bel import parse as _parse

    click.echo(json.dumps(_parse(text), indent=2 if pprint else None))


@main.command()
@click.argument("path")
@click.option("--allow-naked-names", is_flag=True, help="Enable lenient parsing for naked names")
@click.option(
    "--disallow-nested",
    is_flag=True,
    help="Disable lenient parsing for nested statements",
)
@click.option(
    "--disallow-unqualified-translocations",
    is_flag=True,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…