@staticmethod
def _clean_up_gene_id(geneid, sp):
    '\n        A series of identifier rewriting to conform with\n        standard gene identifiers.\n        :param geneid:\n        :param sp:\n        :return:\n        '
    geneid = re.sub('MGI:MGI:', 'MGI:', geneid)
    geneid = re.sub('Ensembl', 'ENSEMBL', geneid)
    geneid = re.sub('Gene:CELE', 'WormBase:', geneid)
    if (sp == 'CAEEL'):
        if re.match('(Gene|ENSEMBLGenome):\\w+\\.\\d+', geneid):
            geneid = re.sub('(?:Gene|ENSEMBLGenome):(\\w+\\.\\d+)', 'WormBase:\\1', geneid)
    if (sp == 'DROME'):
        if re.match('(ENSEMBLGenome):\\w+\\.\\d+', geneid):
            geneid = re.sub('(?:ENSEMBLGenome):(\\w+\\.\\d+)', 'FlyBase:\\1', geneid)
    geneid = re.sub('GeneID', 'NCBIGene', geneid)
    geneid = re.sub('Gene:Dmel_', 'FlyBase:', geneid)
    geneid = re.sub('Gene:CG', 'FlyBase:CG', geneid)
    geneid = re.sub('ENSEMBLGenome:FBgn', 'FlyBase:FBgn', geneid)
    geneid = re.sub('Gene:ENS', 'ENSEMBL:ENS', geneid)
    geneid = re.sub('Gene:Xenbase:', 'Xenbase:', geneid)
    pfxlcl = re.split(':', geneid)
    pfx = pfxlcl[0]
    if ((pfx is None) or (pfx not in curie_map.get())):
        logger.warning('No curie prefix for (species %s): %s', sp, geneid)
        geneid = None
    return geneid
A series of identifier rewriting to conform with
standard gene identifiers.
:param geneid:
:param sp:
:return:
@staticmethod
def _clean_up_gene_id(geneid, sp):
    '\n        A series of identifier rewriting to conform with\n        standard gene identifiers.\n        :param geneid:\n        :param sp:\n        :return:\n        '
    geneid = re.sub('MGI:MGI:', 'MGI:', geneid)
    geneid = re.sub('Ensembl', 'ENSEMBL', geneid)
    geneid = re.sub('Gene:CELE', 'WormBase:', geneid)
    if (sp == 'CAEEL'):
        if re.match('(Gene|ENSEMBLGenome):\\w+\\.\\d+', geneid):
            geneid = re.sub('(?:Gene|ENSEMBLGenome):(\\w+\\.\\d+)', 'WormBase:\\1', geneid)
    if (sp == 'DROME'):
        if re.match('(ENSEMBLGenome):\\w+\\.\\d+', geneid):
            geneid = re.sub('(?:ENSEMBLGenome):(\\w+\\.\\d+)', 'FlyBase:\\1', geneid)
    geneid = re.sub('GeneID', 'NCBIGene', geneid)
    geneid = re.sub('Gene:Dmel_', 'FlyBase:', geneid)
    geneid = re.sub('Gene:CG', 'FlyBase:CG', geneid)
    geneid = re.sub('ENSEMBLGenome:FBgn', 'FlyBase:FBgn', geneid)
    geneid = re.sub('Gene:ENS', 'ENSEMBL:ENS', geneid)
    geneid = re.sub('Gene:Xenbase:', 'Xenbase:', geneid)
    pfxlcl = re.split(':', geneid)
    pfx = pfxlcl[0]
    if ((pfx is None) or (pfx not in curie_map.get())):
        logger.warning('No curie prefix for (species %s): %s', sp, geneid)
        geneid = None
    return geneid