# ELIXIR Platform Profile

## Overview

[ELIXIR](https://elixir-europe.org/) is a European intergovernmental organisation for life science data. The ELIXIR network operates Beacon nodes, AAI infrastructure, and data access services across member states.

## Supported GA4GH Specs

| Spec | Support | Notes |
|------|---------|-------|
| Beacon v2 | Full | Federated Beacon network across nodes |
| Passports v1 | Full | ELIXIR AAI is a GA4GH Passport broker |
| DRS v1.4 | Partial | Node-specific DRS endpoints |
| Phenopackets v2 | Partial | Clinical data exchange between nodes |

## Configuration

```toml
# profiles/elixir.toml
[platform]
name = "elixir"
display_name = "ELIXIR European Infrastructure"
base_url = "https://beacon-network.elixir-europe.org"

[auth]
method = "passport"
issuer = "https://login.elixir-czech.org/oidc"

[beacon]
enabled = true
base_url = "https://beacon-network.elixir-europe.org"
# Federated: queries propagate to all registered ELIXIR Beacon nodes

[passports]
enabled = true
broker_url = "https://login.elixir-czech.org/oidc"
```

## Quick Start

```python
from ai4gh.specs.beacon.client import BeaconClient

# Query the ELIXIR Beacon network (federated)
async with BeaconClient(
    base_url="https://beacon-network.elixir-europe.org",
) as client:
    result = await client.query("BRCA1")
    print(result)
```

## Authentication

ELIXIR AAI provides federated identity management:

1. Register via your institution's identity provider
2. Link your account at [ELIXIR AAI](https://elixir-europe.org/services/compute/aai)
3. Request access to specific datasets/services
4. GA4GH Passport visas are issued by ELIXIR AAI

## Compliance Testing

```bash
ai4gh test beacon https://beacon-network.elixir-europe.org
```
