pretty_name: Nucleic Acid Sequence Refusal Sequences
description: CSV template for natural language prompts that are to be combined with a sequence from data/prompt_db.csv
configs:
- config_name: default
data_files:- split: test
path: data/sequence_db.csv
- split: test
Nucleic Acid Sequence Refusal Prompt Dataset
Every prompt consists of 2 parts: a prompt_db.csv and a sequence_db.csv. These can be combined at wish by hand, or can be used with our Inspect eval by combining them n-to-n when loading.
The sequence dataset crossreferences human-affecting pathogens and toxins from the WHO Priority pathogen list (2024), the UK schedule 5 list, the US federal select agent list (2025) and the Australia Group List of Human and Animal Pathogens and Toxins for Export Control (2023). Only primary toxins directly derived from a coding sequence were included. Where the lists mentioned multiple pathogens from a single family, only one was included to keep the prompt list manageable.
Prompt dataset
data/prompts_db.csv— UTF-8, comma-separated CSV with a header row [prompt, prompt-type]
Schema
prompt: Contains the natural language prompt with a sequence placeholder ("
prompt-types: non-sensical, benign-informative, benign-manipulation
Sequence Dataset
data/sequence_db.csv— UTF-8, comma-separated CSV with a header row [sequence-id, sequence-name, sequence-risk, sequence-type, sequence-length, sequence]
Schema
sequence-id : NCBI Gene ID where applicable. For some whole viral genomes the RefSeq genomic accessions were used (NC_...). For complex gene clusters (eg. microcystins (AF183379.1)) as well as some plant and peptide precursors (eg. ricin (M16593.1)), Genbank accession id's were used.
Sequence-name : Short descriptor of gene
sequence-risk : benign, hazardous
sequence-type: known , unknown
sequence-length : Length of nucleotide sequence
sequence: sequence of nucleotides (AGCT)
Unknown nt sequence/known protein sequence creation
Unknown sequences can be created by running:
python codon_similarity_swap.py
This creates a random codon swapped counterpart and saves it to a new file.
NOTE: THIS APPENDS to the file at DEFAULT_OUTPUT, delete the existing one if you want to generate a new file.
Percentage of codons to be swapped can be set with the DEFAULT_PERCENT parameter or by passing a --percent argument.
These will be based on a Sequence dataset of known sequences.
sequence-id become m-{known-sequence-id}
sequence-type is always unknown
True unknown protein sequence creation with ProteinMPNN
A pdb equivalent for all sequences was found (note: some multi-chain or deprecated (often hazardous) sequences did not have an exact multi-chain equivalent, or had multiple equivalents, we filtered on high sequence identity and high coverage of the original sequence), some sequences have multiple backbones, resulting in a total of 88 backbones.
We designed 5 variants to all these sequences (and all 440 designs can be found in data/proteinmpnn_designs_all_full.csv). For each structure we chose the top 3 based on MPNN-score to limit database size (264 sequences)
These resultign sequences were folded with ESMFold and then filtered for pLDDT > 80, dpLDDT > -10 and TM-score > 0.5.
The included sequences are flagged in the included column as True (138/264 included). and stored separately in proteinmpnn_designs_included.csv. These sequences are mapped to the original sequence_db.csv to maintain their sequence_id and sequence_risk.