indra.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:pybel 作者: pybel 项目源码 文件源码
def from_indra_pickle(path, name=None, version=None, description=None):
    """Imports a model from :mod:`indra`.

    :param str path: Path to pickled list of :class:`indra.statements.Statement`
    :param str name: The name for the BEL graph
    :param str version: The version of the BEL graph
    :param str description: The description of the BEL graph
    :rtype: pybel.BELGraph
    """
    with open(path, 'rb') as f:
        statements = load(f)

    return from_indra_statements(
        statements=statements,
        name=name,
        version=version,
        description=description
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号