def parse_error(error):
    """Return the error name."""
    if error.endswith("genome-size-error.txt"):
        return ["genome-size-error", "Poor estimate of genome size"]
    elif error.endswith("low-read-count-error.txt"):
        return ["low-read-count-error", "Low number of reads"]
    elif error.endswith("low-sequence-depth-error.txt"):
        return ["low-sequence-depth-error", "Low depth of sequencing"]
    elif  error.endswith("paired-end-error.txt"):
        return ["paired-end-error", "Paired-end read count mismatch"]
    return ["unknown-error", "Unknown Error"]