Protein Roundtrip

PDB → Protein to Music → MIDI → Music to Protein → PDB. Test how well the dual translation preserves structural information through a full cycle.

Input Parameters
If no sequence is entered, the sequence will be extracted from the PDB automatically. If no PDB is uploaded, ESMFold predicts the structure. You can use sequence-only, PDB-only, or both.
Tip for richer music: provide both a DNA/RNA sequence and a PDB file. The DNA codons add species-specific rhythmic weight (1–4 beats per residue), while the PDB structure determines the 3D neighbor-driven melody & timbre.
Codon usage bias for frequency mapping

0=JazzGPT ↔ 4=Pure physics (best roundtrip)
0% ESM2 · 100% physics
Positive integer. Time-signature beats grouped into each MIDI grid cell.
Leave empty to sample five melody environments; enter a seed for one reproducible trial.
How It Works

1. Protein → Music (P2M)
Your sequence/PDB is mapped to a jazz MIDI composition. Amino acid properties drive chord selection; 3D spatial neighbors shape timbre.

2. Music → Protein (M2P)
The generated MIDI is decoded back into a protein sequence via chord→amino-acid mapping, then folded by ESMFold into a new 3D structure.

3. Compare
The results page shows both 3D structures side by side, the audio, score notation, and a sequence alignment to quantify roundtrip fidelity.