def _parse_name(seq):
    """Parse a fasta header and remove > and new lines.
    From a contig name:
    >VirSorter_<renamed>-metadata returns
    renamed, metadata
    Note: this assumes the there are no dashes (-) in renamed
    """
    if not seq:
        return seq

    clean = seq.replace(">", "").replace("\n", "").replace("VIRSorter_", "")
    contig_name, *metadata = clean.split("-")

    return contig_name, "-".join(metadata)