import re


def file_name_from_fasta_description(name):
    """
    Ga0081612_1001 [organism=Methylophilus methylotrophus-127-2 (UID203)] [tech=wgs] [topology=linear] [gcode=11] [completedness=partial] [project=0]
    --> Methylophilus_methylotrophus-127-2
    """
    # Note that the - in the brackets has to come at the end. 
    m = re.search("[\w_]+ \[organism=([\w\s-]+) \([\w]+\)\]", name)
    if m:
        return m.group(1)
    else:
        return "???"