# phi.datasets

Organize sequences into datasets within a project.

## phi.datasets.add_sequences

```python
phi.datasets.add_sequences(dataset_id=dataset_id, sequence_ids=sequence_ids)
```

Returns `AddSequencesResult`.

| Parameter | Type | Required |
|---|---|---|
| `dataset_id` | `str \| uuid.UUID` | Required |
| `sequence_ids` | `Sequence[str \| uuid.UUID]` | Required |

### AddSequencesResult fields and schema

```json
{
  "type": "object",
  "required": [
    "added"
  ],
  "properties": {
    "added": {
      "type": "integer"
    }
  }
}
```

## phi.datasets.copy

```python
phi.datasets.copy(dataset_id=dataset_id, name=name)
```

Returns `Dataset`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `dataset_id` | `str \| uuid.UUID` |  | Required |
| `name` | `str` |  | Required |
| `description` | `str \| None` | `None` | Optional |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## phi.datasets.create

```python
phi.datasets.create(project_id=project_id, name=name)
```

Returns `Dataset`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `name` | `str` |  | Required |
| `description` | `str \| None` | `None` | Optional |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## phi.datasets.delete

```python
phi.datasets.delete(dataset_id=dataset_id)
```

| Parameter | Type | Required |
|---|---|---|
| `dataset_id` | `str \| uuid.UUID` | Required |

## phi.datasets.export_sequences_csv

```python
phi.datasets.export_sequences_csv(dataset_id=dataset_id)
```

Returns `Iterator[str]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `dataset_id` | `str \| uuid.UUID` |  | Required |
| `passes_all` | `bool \| None` | `None` | Optional |
| `is_starred` | `bool \| None` | `None` | Optional |
| `curation_status` | `str \| None` | `None` | Optional |
| `plddt_min` | `float \| None` | `None` | Optional |
| `ipae_max` | `float \| None` | `None` | Optional |
| `rmsd_max` | `float \| None` | `None` | Optional |

## phi.datasets.get

```python
phi.datasets.get(dataset_id=dataset_id)
```

Returns `Dataset`.

| Parameter | Type | Required |
|---|---|---|
| `dataset_id` | `str \| uuid.UUID` | Required |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## phi.datasets.iter_datasets

```python
phi.datasets.iter_datasets(project_id=project_id)
```

Returns `Iterator[Dataset]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `page_size` | `int` | `50` | Optional |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## phi.datasets.iter_sequences

```python
phi.datasets.iter_sequences(dataset_id=dataset_id)
```

Returns `Iterator[SequenceModel]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `dataset_id` | `str \| uuid.UUID` |  | Required |
| `page_size` | `int` | `50` | Optional |
| `passes_all` | `bool \| None` | `None` | Optional |
| `is_starred` | `bool \| None` | `None` | Optional |
| `curation_status` | `str \| None` | `None` | Optional |
| `plddt_min` | `float \| None` | `None` | Optional |
| `ipae_max` | `float \| None` | `None` | Optional |
| `rmsd_max` | `float \| None` | `None` | Optional |

### Sequence fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "dataset_id",
    "run_id",
    "name",
    "sequence",
    "length",
    "scores",
    "passes_all",
    "is_starred",
    "user_notes",
    "curation_status",
    "esmfold_pdb_uri",
    "alphafold_pdb_uri",
    "pae_json_uri",
    "backbone_uri",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "alphafold_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "backbone_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "config_fingerprint": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "curated_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "curated_by": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "curation_status": {
      "type": "string"
    },
    "dataset_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "esmfold_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "extra": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "gate_failed_criterion": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "gate_passed": {
      "default": null,
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "import_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "is_starred": {
      "type": "boolean"
    },
    "length": {
      "type": "integer"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "pae_json_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "parent_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "passes_all": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "pipeline_node_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "root_design_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "run_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "score_mode": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "score_tool": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "scores": {
      "$ref": "#/$defs/SequenceScores"
    },
    "sequence": {
      "type": "string"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "user_notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "final_rank": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "default": null,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

## phi.datasets.list

```python
phi.datasets.list(project_id=project_id)
```

Returns `CursorList[Dataset]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `page` | `int` | `1` | Optional |
| `page_size` | `int` | `50` | Optional |
| `cursor` | `str \| None` | `None` | Optional |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```

## phi.datasets.list_sequences

```python
phi.datasets.list_sequences(dataset_id=dataset_id)
```

Returns `SequenceListPage`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `dataset_id` | `str \| uuid.UUID` |  | Required |
| `page` | `int` | `1` | Optional |
| `page_size` | `int` | `50` | Optional |
| `passes_all` | `bool \| None` | `None` | Optional |
| `is_starred` | `bool \| None` | `None` | Optional |
| `curation_status` | `str \| None` | `None` | Optional |
| `plddt_min` | `float \| None` | `None` | Optional |
| `ipae_max` | `float \| None` | `None` | Optional |
| `rmsd_max` | `float \| None` | `None` | Optional |
| `cursor` | `str \| None` | `None` | Optional |
| `include_aggregates` | `bool` | `False` | Optional |

### SequenceListPage fields and schema

```json
{
  "type": "object",
  "required": [
    "sequences"
  ],
  "properties": {
    "gate_passing": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "gate_total": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "next_cursor": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "pass_rate": {
      "default": null,
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "sequences": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Sequence"
      }
    },
    "total": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "SequenceScores": {
      "type": "object",
      "required": [
        "plddt",
        "iptm",
        "ipsae",
        "ipae",
        "rmsd"
      ],
      "properties": {
        "final_rank": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_max": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "ipsae_min": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "iptm": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "lis": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_max": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n0res_min": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "n_contacts": {
          "default": null,
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_mean": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "pdockq2": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_binder": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_complex": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_interface": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_scale": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "plddt_target": {
          "default": null,
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "rmsd": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "selected": {
          "default": null,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "Sequence": {
      "type": "object",
      "required": [
        "id",
        "project_id",
        "dataset_id",
        "run_id",
        "name",
        "sequence",
        "length",
        "scores",
        "passes_all",
        "is_starred",
        "user_notes",
        "curation_status",
        "esmfold_pdb_uri",
        "alphafold_pdb_uri",
        "pae_json_uri",
        "backbone_uri",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "alphafold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "backbone_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "config_fingerprint": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "curated_at": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "curated_by": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "curation_status": {
          "type": "string"
        },
        "dataset_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "esmfold_pdb_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "extra": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_failed_criterion": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "gate_passed": {
          "default": null,
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "import_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "is_starred": {
          "type": "boolean"
        },
        "length": {
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "pae_json_uri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "passes_all": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "project_id": {
          "type": "string",
          "format": "uuid"
        },
        "root_design_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_mode": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "score_tool": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "scores": {
          "$ref": "#/$defs/SequenceScores"
        },
        "sequence": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "user_notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}
```

## phi.datasets.remove_sequence

```python
phi.datasets.remove_sequence(dataset_id=dataset_id, sequence_id=sequence_id)
```

| Parameter | Type | Required |
|---|---|---|
| `dataset_id` | `str \| uuid.UUID` | Required |
| `sequence_id` | `str \| uuid.UUID` | Required |

## phi.datasets.update

```python
phi.datasets.update(dataset_id=dataset_id)
```

Returns `Dataset`.

| Parameter | Type | Required |
|---|---|---|
| `dataset_id` | `str \| uuid.UUID` | Required |

### Dataset fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "project_id",
    "name",
    "description",
    "created_by",
    "status",
    "sequence_count",
    "structure_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "sequence_count": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "structure_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
```


---
Source: https://dynophi.com/docs/sdk/datasets. From the installed client, phi 0.4.2, 2026-11-23.
