knobs_into_holes.py 文件源码

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

项目:isambard 作者: woolfson-group 项目源码 文件源码
def get_coiledcoil_region(self, cc_number=0, cutoff=7.0, min_kihs=2):
        """ Assembly containing only assigned regions (i.e. regions with contiguous KnobsIntoHoles. """
        g = self.filter_graph(self.graph, cutoff=cutoff, min_kihs=min_kihs)
        ccs = sorted(networkx.connected_component_subgraphs(g, copy=True),
                                 key=lambda x: len(x.nodes()), reverse=True)
        cc = ccs[cc_number]
        helices = [x for x in g.nodes() if x.number in cc.nodes()]
        assigned_regions = self.get_assigned_regions(helices=helices, include_alt_states=False, complementary_only=True)
        coiledcoil_monomers = [h.get_slice_from_res_id(*assigned_regions[h.number]) for h in helices]
        return Assembly(coiledcoil_monomers)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号