Lineage Relationships¶
Metaxy supports a few common mappings from parent to child samples out of the box. These include:
-
1:1mapping withLineageRelationship.identity(the default one) -
1:Nmapping withLineageRelationship.expansion -
N:1mapping withLineageRelationship.aggregation
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:Nlineage relationships in Metaxy.