def set_phagesdb_gnm_file(gnm):
    """Set the filename of a PhagesDB genome object."""
    file_url = gnm.misc['qced_genbank_file']
    if file_url is None:
        gnm.filename = ''
    else:
        gnm.filename = file_url
