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)
评论列表
文章目录