import re


def rename(filename):
    """
    Rename the file to the standard GeneWiz naming convention
    if the filename contains a pattern, remove it
    """
    pattern = re.compile(r'PID-\d+-')
    if pattern.search(filename):
        filename = pattern.sub('', filename)
    return filename