def biopdbresid_to_pdbresseq(biopdb_residueid,ignore_insertion_codes=False):
    """
    Give a Bio.PDB Residue id tupe (hetatm, resseqnum, icode), return
    the PDB residue sequence number string consisting of the sequence
    number and the insertion code, if not blank.

    Parameters:
       biopdb_residueid - tuple (hetatm, resseqnum, icode) from Residue.get_id()
            ignore_insertion_codes - If True, a hack to make it work with
                      PMML (only) which does not report insertion codes
                      unlike DSSP and STRIDE
    Return value:
       string residue PDB sequence number e.g. '60' or '60A'.
    """
    # Residue.get_id() gives tuple (hetatm, resseqnum, icode)
    res_seq = str(biopdb_residueid[1])
    if not ignore_insertion_codes:
        if biopdb_residueid[2] != ' ':
            res_seq +=  biopdb_residueid[2]
    return res_seq