test_build_splicegraph.py 文件源码

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

项目:exfi 作者: jlanga 项目源码 文件源码
def _prepare_overlaps(exons):
    """Compute splicegraph prior the computation of overlaps"""
    splice_graph = nx.DiGraph()
    exon_df = exons_to_df(exons)
    exon2coord = exon_to_coordinates(exons)
    splice_graph.add_nodes_from(exon2coord.keys())
    nx.set_node_attributes(
        G=splice_graph,
        name='coordinates',
        values = exon2coord
    )
    transcript2path = transcript_to_path(exon_df)
    for path in transcript2path.values():
        splice_graph.add_path(path)
    return splice_graph
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号