import re


def _mags_name_clean(query_name):
    """Clean the MAGs genome name.
    MAGs .embl query_name is:
    
    GUT_GENOME096033_1-NZ_JH815228.1-Fusobacterium-ulcerans-ATCC-49185-genomic

    That name is not proper for the .gff file so it is cleaned in order to return:
    GUT_GENOME096033_1
    """
    return re.sub(r'[-|\s].+', '', query_name)