FEAT-1b: Inzuchtkoeffizient endpoints via Wright path method
- PedigreeCalculator: pure, EF-free Wright path-method engine (recursive F_A,
per-common-ancestor contributions, generationsAvailable, cycle guards)
- InbreedingService: loads pedigree from ApplicationContext shadow FKs
(Gerbils.LitterId, Litters.FatherId/MotherId) into in-memory maps
- InbreedingController: GET /gerbils/{id}/inbreeding-coefficient,
POST /genetics/test-inbreeding (hypothetical pairing for Probeverpaarung)
- Injects ApplicationContext directly; no Program.cs change (Dwight owns it)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
9
GerbilManagerWebAPI/Dtos/TestInbreedingDto.cs
Normal file
9
GerbilManagerWebAPI/Dtos/TestInbreedingDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace GerbilManagerWebAPI.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// Request body for a hypothetical pairing's inbreeding coefficient
|
||||
/// (Inzuchtkoeffizient der geplanten Verpaarung). Either parent may be omitted,
|
||||
/// in which case the coefficient is 0.
|
||||
/// </summary>
|
||||
public record TestInbreedingDto(Guid? FatherId, Guid? MotherId);
|
||||
}
|
||||
Reference in New Issue
Block a user