示例#1
0
def summarize() -> Statistics:
    """Returns summary statistics on the graph."""
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_SUMMARIZE)
示例#2
0
def subgraphs() -> Statistics():
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_SUBGRAPH)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#8
0
def node_namespace_order_by_namespace() -> Statistics():
    return Statistics().apply_api_function(
        ss_functions.BEL_STATISTICS_NODE_NAMESPACE_ORDER_BY_NAMESPACE)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)