def rna_id(entry):
    """
    Get the UPI for the entry, or fail if there is none.
    """

    if entry["DB"] == "RNAcentral":
        return entry["DB_Object_ID"]
    raise ValueError("All entries are expected to come from RNAcentral")