pymod_sup.py 文件源码

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

项目:pymod 作者: pymodproject 项目源码 文件源码
def ramachandran(PDB_file, title="Ramachandran Plot", AA_list=None,
    pymol_selection=None, engine=None):
    """PROCHECK style Ramachandran Plot
    A wrapper around ramachandran_tkinter and ramachandran_matplotlib

    engine (graphic engine for plotting)
        None - (Default) Use ramachandran_matplotlib if matplotlib is present
               Use ramachandran_tkinter if matplotlib is not importable
        "matplotlib" - Use ramachandran_matplotlib
        "tkinter" - Use ramachandran_tkinter
    """
    if not engine:
        engine="tkinter"

    if engine.lower().startswith("matplotlib"):
        ramachandran_matplotlib(PDB_file=PDB_file,title=title,AA_list=AA_list)
    elif engine.lower().startswith("tk"):
        ramachandran_tkinter(PDB_file=PDB_file,title=title,AA_list=AA_list,
            pymol_selection=pymol_selection)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号