SWAEV B2B Platform

Access GoldBEAM Structural Predictions

To integrate subquadratic structural chromatin maps into your research pipelines or command-line analysis scripts, authenticate below to generate secure TUI execution keys.

 _ 
| |
| |
|_|
   
(_)
Errors and visual glitches may be present. Please document any problem and send it our way. This is a scientific tool. Suggestions and constructive criticism is ENCOURAGED :)
 _ 
| |
| |
|_|
   
(_)

Lab Simulation 04-B

PHAGE_RUN.EXE

HI_SCORE: 00000 nt
|
SCORE: 00000 nt

[ Press Space or Click to Control ]

Help our Bacteriophage navigate through sliding genomic base pair blocks!

[ SPACE ] or [ CLICK ] to Jump AUTOPILOT
 _ 
| |
| |
|_|
   
(_)
Errors and visual glitches may be present. Please document any problem and send it our way. This is a scientific tool. Suggestions and constructive criticism is ENCOURAGED :)
 _ 
| |
| |
|_|
   
(_)

Subscription & Plans Individual

Your current active tier is Individual Sandbox ($0/mo). Expand to manage or upgrade.

Compare Plans

Sandbox Tier

Independent Devs

Individual

Perfect for local development, trial runs, and light genomic processing simulations.

$0 / month

  • 50.0 MB cumulative limit
  • 2 Slots concurrent capacity
  • Standard GPU nodes (shared)
  • Community Slack Support

Popular Tier

PhD Candidates

Academic Pro

Enhanced limits for academic labs and professional genetic researchers.

$99 / month

  • 500.0 MB cumulative limit
  • 10 Slots concurrent capacity
  • Dedicated GPU slots (no queue wait)
  • Prioritized support response

Department Tier

Lab Core / PIs

Institutional Lab

Robust computing capacity with dedicated resources for academic departments and core facilities.

$1,499 / month

  • 10,000 MB (10 GB) limit
  • 50 Slots concurrent capacity
  • Dedicated multi-GPU cluster allocation
  • 24/7 dedicated support & SLAs

Sovereign Tier

Pharma / Biotech

Enterprise Sovereign

Sovereign infrastructure custom-tuned for enterprise commercial pharma and biotech R&D pipelines.

Custom / Contact

  • Uncapped / Custom limit
  • Unlimited Slots concurrent capacity
  • Custom private deployments & on-prem options
  • Dedicated solution engineer & direct SLAs

Subscribed Metrics

Real-Time Data Gating

Megabase Usage (cumulative) 0.00 / 50.00 MB
0.0%
Plan Individual
Concurrency 2 Active Slots
Active Jobs 0 Running

Terminal Credentials

GoldBEAM API Key

Paste this key into the Bacteriophage terminal TUI config prompt. Treat it with absolute confidentiality.

••••••••••••••••••••••••••••••••

Active Compute Slots

Concurrent Tasks Management

These tasks are currently allocated to your high-throughput GPU worker node slots. If a task is taking longer than expected or you wish to reclaim a slot immediately, you can securely abort it below.

No concurrent tasks currently active.

Visual Genomic Analytics

Interactive Chromatin Contact Map

Hover over the heatmap below to scan topologically associating domains (TADs) and predict distal enhancer-promoter loops in real-time. This live visual represents subquadratic chromatin contact mapping.

Active Scan Locus chr17:43,044,295-44,044,295
Contact Probability 0.912

Scroll to zoom · drag to pan · dbl-click to reset

Insulation score ▼ TAD boundaries
Palette

Live Inference

Submit a Prediction

Paste a genomic region in FASTA or raw sequence format (800 kbp–1.2 Mbp). GoldBEAM tokenizes and submits the job using your API key -> the result renders directly on the contact map above when complete.

Terminal Client

Install the GoldBEAM TUI

One command installs the full interactive TUI → chromatin structure prediction, TAD browser, motif deletion sweeps, saliency maps, and publication-ready exports. Runs entirely in your terminal.

  • Requires Python 3.9+ and an active API key
  • bash · zsh · fish → shell auto-detected
  • Adds swaev to your PATH automatically
One-command install
# Downloads client, installs deps, adds swaev to PATH
curl -fsSL https://raw.githubusercontent.com/CK5515/SWAEV_TUI/main/install.sh | bash
Launch
# Start the bacteriophage TUI
swaev
Uninstall
# Removes ~/.swaev/ and the swaev command
rm -rf ~/.swaev ~/.local/bin/swaev && echo "SWAEV TUI uninstalled."

Developer Reference

API Quick-Start

Every example below is copy-paste ready. Your API key is auto-filled from the Key Management section above. Tokenisation convention: A=0 C=1 G=2 T=3 N=4.

1
Export your API key
Set it once in your shell and every command below picks it up automatically.
Shell · export
export SWAEV_API_KEY="your_api_key"
2
Confirm the gateway is reachable
No key required. Returns {"status":"ok"} when the service is live.
curl · GET /healthz
curl https://gateway.swaev.com/healthz
3
Submit a prediction
POST a tokenised integer array (800 kbp–1.2 Mbp). Returns a job_id immediately → inference runs asynchronously.
curl · POST /v1/predict
# Replace [...] with your tokenised sequence (800k–1.2M integers)
curl -X POST "https://gateway.swaev.com/v1/predict" \
  -H "X-API-Key: $SWAEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sequence": [0,1,2,3,0,1,2,3,0,2,1,3,2,0,1,3,0,2]}' 
# → {"job_id": "3f7a...", "status": "queued"}
4
Poll for the 256×256 contact map
Swap in your job_id from step 3. Status cycles queued → processing → completed. The matrix field is a 256×256 float array.
curl · GET /v1/results/:job_id
curl "https://gateway.swaev.com/v1/results/YOUR_JOB_ID" \
  -H "X-API-Key: $SWAEV_API_KEY"
# → {"status": "completed", "matrix": [[0.82, 0.61, …], …]}
5
Python: tokenise a FASTA file and submit
Reads any FASTA file, converts bases to GoldBEAM tokens, and queues a prediction. Run pip install requests first.
Python · submit
import requests

GATEWAY = "https://gateway.swaev.com"
API_KEY = "your_api_key"
TOKEN   = {"A": 0, "C": 1, "G": 2, "T": 3}   # N → 4

# Tokenise → drop header lines, upper-case, map bases
with open("region.fa") as f:
    seq = "".join(l.strip() for l in f if not l.startswith(">"))
tokens = [TOKEN.get(b.upper(), 4) for b in seq]  # 800 kbp – 1.2 Mbp

r = requests.post(f"{GATEWAY}/v1/predict",
    headers={"X-API-Key": API_KEY},
    json={"sequence": tokens}, timeout=60)
r.raise_for_status()
job_id = r.json()["job_id"]
print(f"Queued: {job_id}")
6
Python: full pipeline → tokenise → submit → poll → save NumPy
End-to-end script. Blocks until inference completes, then saves the 256×256 contact matrix as a .npy file ready for matplotlib, cooler, or any downstream tool.
Python · full pipeline
import requests, time, numpy as np

GATEWAY = "https://gateway.swaev.com"
API_KEY = "your_api_key"
TOKEN   = {"A": 0, "C": 1, "G": 2, "T": 3}

# 1. Tokenise FASTA (800 kbp – 1.2 Mbp window)
with open("region.fa") as f:
    seq = "".join(l.strip() for l in f if not l.startswith(">"))
tokens = [TOKEN.get(b.upper(), 4) for b in seq]

# 2. Submit
r = requests.post(f"{GATEWAY}/v1/predict",
    headers={"X-API-Key": API_KEY},
    json={"sequence": tokens}, timeout=60)
r.raise_for_status()
job_id = r.json()["job_id"]
print(f"Queued: {job_id}")

# 3. Poll until complete
while True:
    r = requests.get(f"{GATEWAY}/v1/results/{job_id}",
                     headers={"X-API-Key": API_KEY})
    data = r.json()
    if data["status"] == "completed":
        matrix = np.array(data["matrix"])      # shape (256, 256)
        np.save("contact_map.npy", matrix)
        print(f"✓ Saved contact_map.npy  shape={matrix.shape}  max={matrix.max():.3f}")
        break
    if data["status"] == "failed":
        raise RuntimeError("Inference failed → check sequence length (800 kbp–1.2 Mbp).")
    time.sleep(3)