distance_matrix.py 文件源码

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

项目:DeepFold 作者: largelymfs 项目源码 文件源码
def get_distance_matrix(pdb_path):
    parser = PDBParser()
    structure = parser.get_structure('structure', pdb_path).get_list()[0]
    residue_positions = get_residue_positions(structure)
    pdb_dist_mat = scipy.spatial.distance.squareform(scipy.spatial.distance.pdist(residue_positions, 'euclidean'))
    pdb_dist_mat[numpy.isnan(pdb_dist_mat)] = float('inf')
    return pdb_dist_mat
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号