INNER CODE UNIT · Python

_print_summary

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

def _print_summary(graph: BELGraph, ticks: bool = False):
    if not ticks:
        click.secho("Summary", fg="red", bold=True)
        graph.summarize()

    unused_namespaces = get_unused_namespaces(graph)
    if unused_namespaces:
        click.secho(
            f"\nUnused Namespaces ({len(unused_namespaces)}/{len(graph.defined_namespace_keywords)})",
            fg="red",
            bold=True,
        )
        if ticks:
            click.echo("```")
        for namespace in sorted(unused_namespaces):
            click.echo(namespace)
        if ticks:
            click.echo("```")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…