Skip to content

Lineage Relationships

Metaxy supports a few common mappings from parent to child samples out of the box. These include:

Tip

Always use these classmethods to create instances of lineage relationships. They use Pydantic's discriminated unions under the hood to ensure correct type construction.

Examples

  • 1:N example demonstrates how to use 1:N lineage relationships in Metaxy.