def getID(file):
    """
    This function takes the PDB ID from DSSP file
    :param file: input file in DSSP format
    :return: PDB ID as string
    """
    file.seek(0,0)
    splited = []
    for line in file:
        splited = line.split()
        if "HEADER" in line:
            return splited[-2]