def strip_seq_log(filename):
    """
    Clean up filename by removing trailing .seq or .log

    Args:
        filename (str): filename with possible file type

    Returns:
        filename (str): filename with .seq or .log stripped
    """
    if filename[-3:] == 'seq' or filename[-3:] == 'log':
        filename = filename[:-4]
    return filename
