variant-risk-explainer / docs /DEMO_EXAMPLES.md
faisalAI27
polish and verification
8fbda8a
|
Raw
History Blame Contribute Delete
1.77 kB

Demo Examples

These examples use synthetic/demo DNA sequences only. They are not real clinical examples and should not be interpreted as medical evidence.

Example 1: Demo Variant A

Request:

{
  "variant_name": "Demo Variant A",
  "gene": "BRCA1",
  "sequence": "ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT",
  "notes": "Synthetic short sequence for endpoint testing."
}

Example curl:

curl -X POST http://127.0.0.1:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "variant_name": "Demo Variant A",
    "gene": "BRCA1",
    "sequence": "ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT",
    "notes": "Synthetic short sequence for endpoint testing."
  }'

Example 2: Demo Variant B

Request:

{
  "variant_name": "Demo Variant B",
  "gene": "TP53",
  "sequence": "TTGCAAGCTTAGGCTAACCGTTGCAAGCTTAGGCTAACCGTTGCAAGCTTAGGCTAACCGTTGCAAGC",
  "notes": "Second synthetic sequence for frontend demo testing."
}

Example curl:

curl -X POST http://127.0.0.1:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "variant_name": "Demo Variant B",
    "gene": "TP53",
    "sequence": "TTGCAAGCTTAGGCTAACCGTTGCAAGCTTAGGCTAACCGTTGCAAGCTTAGGCTAACCGTTGCAAGC",
    "notes": "Second synthetic sequence for frontend demo testing."
  }'

Example 3: Invalid Sequence

Request:

{
  "variant_name": "Invalid Demo Variant",
  "gene": "TP53",
  "sequence": "ACGTXYZACGT",
  "notes": "This should fail validation because X, Y, and Z are not valid DNA bases."
}

Expected behavior:

  • HTTP status: 400
  • Error message includes invalid DNA characters.

Example response:

{
  "detail": "sequence contains invalid DNA characters: XYZ"
}