in data/contact_map_utils.py [0:0]
def is_aa_by_target_atoms(res):
"""Tell if a Residue object is AA
Args:
res: a Bio.PDB.Residue object representing the residue.
Return:
Bool. Wheather or not the residue is AA.
"""
target_atoms = ["N", "CA", "C", "O"]
for atom in target_atoms:
try:
res[atom]
except KeyError:
return False
return True