This tool helps you generate a circular ribbon contact map to visualize residue–residue contacts between two protein chains (e.g., nanobody and antigen). It supports two workflows:
edges.csv (source,target[,distance]).Upload one of the following: edges.csv, edges.json, or .cif. For CIF, choose two chains and cutoff.
Run locally with Python. Requires pandas, holoviews[bokeh], biopython.
File: scripts/circular_ribbon_contact_map.py
Install dependencies
pip install pandas holoviews bokeh biopython matplotlib
A) From mmCIF (recommended)
python scripts/circular_ribbon_contact_map.py --cif complex.cif --chain1 H --chain2 L --cutoff 5.0 --output H_L_contact_map.html
--output <file.png> to render PNG (requires bokeh + selenium + pillow).B) From edges.csv
# edges.csv columns: source,target[,distance]
python scripts/circular_ribbon_contact_map.py edges.csv --output contact_map.html
Chain_RES3_Num (e.g., A_ARG_100).Live Google Analytics 4 metrics rendered via Looker Studio. Use the embedded controls to explore visitors, traffic sources, and geographic distribution.