Esempio n. 1
0
def summarize() -> Statistics:
    """Returns summary statistics on the graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_SUMMARIZE)
Esempio n. 2
0
def subgraphs() -> Statistics():
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_SUBGRAPH)
Esempio n. 3
0
def total_bel_edges() -> Statistics():
    """Returns the total number of BEL curated edges in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_TOTAL_STATEMENTS)
Esempio n. 4
0
def total_publications() -> Statistics():
    """Returns the total number of publications in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_TOTAL_PUBLICATIONS)
Esempio n. 5
0
def nodes() -> Statistics():
    """Returns statistics on the frequency of each node type in the knowledge graph."""
    return Statistics().apply_api_function(ss_functions.BEL_STATISTICS_NODES)
Esempio n. 6
0
def total_bel_nodes() -> Statistics():
    """Returns the total number of nodes generated from curated statements in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_TOTAL_BEL_NODES)
Esempio n. 7
0
def node_namespace_order_by_count() -> Statistics():
    """Returns statistics on the frequency of each node type and each namespace in the knowledge graph
    in order of count."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_NODE_NAMESPACE_ORDER_BY_COUNT)
Esempio n. 8
0
def node_namespace_order_by_namespace() -> Statistics():
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_NODE_NAMESPACE_ORDER_BY_NAMESPACE)
Esempio n. 9
0
def namespace_by_count() -> Statistics:
    """Returns the number of nodes for each namespace in KG."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_NAMESPACE_COUNT)
Esempio n. 10
0
def last_author_by_number_of_statements() -> Statistics():
    """Returns statistics on the number of statements per author in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_LAST_AUTHOR_BY_NUMBER_OF_STATEMENTS)
Esempio n. 11
0
def last_author_by_number_of_publications() -> Statistics:
    """Returns statistics on the number of publications per author in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_LAST_AUTHOR_BY_NUMBER_OF_PUBLICATIONS)
Esempio n. 12
0
def publication_by_number_of_statements() -> Statistics:
    """Returns statistics on the number of statements per publication in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_PUBLICATION_BY_NUMBER_OF_STATEMENTS)
Esempio n. 13
0
def publication_by_year() -> Statistics:
    """Returns statistics on the number of publications per year in the knowledge graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_PUBLICATION_BY_YEAR)