コード例 #1
0
def get_chain_type(res_name):
    if Library.library_is_amino_acid(res_name):
        #chain_type = 0
        return 0
    elif Library.library_is_nucleic_acid(res_name):
        return 1
    else:
        ## Unknown residue type
        print "# UNKOWN RESIDUE!"
        return 9
コード例 #2
0
ファイル: skittles.py プロジェクト: masci/mmLib
def get_chain_type(res_name):
    """Assign an integer value for residue type, identified by the actual name
    of the residue. Assigns "0" to amino acids, "1" to nucleic acids, and "9"
    to everything else.
    """
    if Library.library_is_amino_acid(res_name):
        return 0
    elif Library.library_is_nucleic_acid(res_name):
        return 1
    else:
        ## Unknown residue type
        print "# UNKOWN RESIDUE!"
        return 9
コード例 #3
0
def get_chain_type(res_name):
    """Assign an integer value for residue type, identified by the actual name
    of the residue. Assigns "0" to amino acids, "1" to nucleic acids, and "9"
    to everything else.
    """
    if Library.library_is_amino_acid(res_name):
        return 0
    elif Library.library_is_nucleic_acid(res_name):
        return 1
    else:
        ## Unknown residue type
        print "# UNKOWN RESIDUE!"
        return 9