def NDBColors(self): from chimera import selection if selection.currentEmpty(): import Midas residues = Midas._selectedResidues('#') else: residues = selection.currentResidues() NA.NDBColors(residues)
def ndbcolor(sel='sel'): residues = Midas._selectedResidues(sel) NA.NDBColors(residues)