# MSA Pairformer
Predict zero-shot effects for one or more variants against a reference sequence.
- Job type: `MSA_PAIRFORMER`
- Task: Analysis
- Price: 1 credit a run
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Variants may combine substitutions and indels. Sequences cap at 1024 residues.
- Source: pending
- Paper: citation pending

## Example

### CLI

```bash
# variants takes a list the example cannot fill; pass it from Python or HTTP
phi jobs submit MSA_PAIRFORMER \
  --input reference="<reference>" \
  --input msa_uri="<gs:// uri from POST /v1/uploads/url>" \
  --param msa_strategy=reuse \
  --param full_sequence=false \
  --param max_msa_depth=512 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    msa = phi.files.upload(path="msa.a3m")
    job = phi.jobs.submit(
        "MSA_PAIRFORMER",
        inputs={
        "reference": "<reference>",
        "variants": [],
        "msa_uri": msa
        },
        params={
        "msa_strategy": "reuse",
        "full_sequence": false,
        "max_msa_depth": 512
        },
    )
    print(phi.jobs.wait(job.job_id).status)
```

### HTTP

```bash
curl -X POST https://api.dynophi.com/v1/jobs \
  -H "x-api-key: $PHI_KEY" -H "content-type: application/json" \
  -d '{
  "job_type": "MSA_PAIRFORMER",
  "inputs": {
    "reference": "<reference>",
    "variants": [],
    "msa_uri": "<gs:// uri from POST /v1/uploads/url>"
  },
  "params": {
    "msa_strategy": "reuse",
    "full_sequence": false,
    "max_msa_depth": 512
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `gpu` | string one of a100, t4, a100_80gb, h100, a100_or_h100, a100_80gb_or_h100, a100_preferred, h100_preferred | `null` | Per-job GPU class override. |
| `msa_strategy` (essential) | string one of reuse, per_variant | `"reuse"` | 'reuse' shares the reference alignment; 'per_variant' resolves one alignment per distinct variant sequence. |
| `full_sequence` (essential) | boolean | `false` | Return the masked-marginal score for every standard amino acid at every reference position. |
| `max_msa_depth` (essential) | integer | `512` | Maximum MSA rows retained after hhfilter and greedy subsampling. |
| `seed` | integer | `0` | Seed used for deterministic MSA subsampling. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `reference` (essential) | string |  | Reference protein sequence. |
| `variants` (essential) | list of MSAPairformerVariant |  | Variants to score; each entry may combine multiple mutations. |
| `msa_uri` (essential) | string | `null` | Optional gs:// URI to the reference .a3m alignment. |

---
Source: https://dynophi.com/docs/models/MSA_PAIRFORMER. From the live API schema and phi-api's model catalog, 2026-11-23.