Преглед изворни кода

updated to add more edge cases

Henry Crosswell пре 2 месеци
родитељ
комит
6125fce6f5

+ 7 - 1
pyrat-data-multiple-parents-1-mutation.csv

@@ -2,4 +2,10 @@ ID,Line / Strain (Name),DOB,Father 1,Mother 1,Father 2,Mother 2,Sacrifice reason
 ID-001,Line-A,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,het,Mut-A,het,Mut-A,wt,Mut-A,het,Mut-A,hom
 ID-002,Line-A,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,wt,Mut-A,het,Mut-A,wt,Mut-A,het,Mut-A,hom
 ID-003,Line-A,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,het,Mut-A,hom,,,Mut-A,het,Mut-A,wt
-ID-004,Line-A,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,hom,Mut-A,hom,,,Mut-A,het,Mut-A,wt
+ID-004,Line-A,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,hom,Mut-A,hom,,,Mut-A,het,Mut-A,wt
+ID-005,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,hom,Mut-A,hom,Mut-A,wt,Mut-A,hom,Mut-A,hom
+ID-006,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,het,Mut-A,wt,Mut-A,wt,Mut-A,wt,Mut-A,wt
+ID-007,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,het,Mut-A,het,Mut-A,het,Mut-A,wt,Mut-A,wt
+ID-008,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,het,Mut-A,hom,,,Mut-A,het,Mut-A,hom
+ID-009,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,wt,Mut-A,hom,,,Mut-A,hom,Mut-A,hom
+ID-010,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,hom,Mut-A,hom,,,Mut-A,hom,Mut-A,hom

+ 7 - 1
pyrat-data-multiple-parents-2-mutations.csv

@@ -2,4 +2,10 @@ ID,Line / Strain (Name),DOB,Father 1,Mother 1,Father 2,Mother 2,Sacrifice reason
 ID-001,Line-AB,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,het,Mut-B,hom,Mut-A,het,Mut-B,wt,Mut-A,wt,Mut-B,het,Mut-A,hom,Mut-B,het,Mut-A,het,Mut-B,wt
 ID-002,Line-AB,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,hom,Mut-B,het,Mut-A,het,Mut-B,wt,Mut-A,wt,Mut-B,het,Mut-A,hom,Mut-B,het,Mut-A,het,Mut-B,wt
 ID-003,Line-AB,02/01/2026,ID-F3,ID-M3,ID-F4,,End of experiment,Mut-A,het,Mut-B,het,Mut-A,hom,Mut-B,wt,Mut-A,wt,Mut-B,hom,Mut-A,het,Mut-B,het,,,,
-ID-004,Line-AB,02/01/2026,ID-F3,ID-M3,ID-F4,,End of experiment,Mut-A,wt,Mut-B,hom,Mut-A,hom,Mut-B,wt,Mut-A,wt,Mut-B,hom,Mut-A,het,Mut-B,het,,,,
+ID-004,Line-AB,02/01/2026,ID-F3,ID-M3,ID-F4,,End of experiment,Mut-A,wt,Mut-B,hom,Mut-A,hom,Mut-B,wt,Mut-A,wt,Mut-B,hom,Mut-A,het,Mut-B,het,,,,
+ID-005,Line-AB,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,hom,Mut-B,het,Mut-A,hom,Mut-B,wt,Mut-A,wt,Mut-B,het,Mut-A,hom,Mut-B,het,Mut-A,hom,Mut-B,het
+ID-006,Line-AB,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,hom,Mut-B,het,Mut-A,wt,Mut-B,het,Mut-A,wt,Mut-B,het,Mut-A,wt,Mut-B,het,Mut-A,wt,Mut-B,het
+ID-007,Line-AB,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,het,Mut-B,wt,Mut-A,het,Mut-B,wt,Mut-A,het,Mut-B,wt,Mut-A,wt,Mut-B,wt,Mut-A,wt,Mut-B,wt
+ID-008,Line-AB,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,het,Mut-B,het,Mut-A,hom,Mut-B,wt,,,,,Mut-A,het,Mut-B,hom,Mut-A,wt,Mut-B,het
+ID-009,Line-AB,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,wt,Mut-B,hom,Mut-A,hom,Mut-B,wt,,,,,Mut-A,hom,Mut-B,hom,Mut-A,hom,Mut-B,hom
+ID-010,Line-AB,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,het,Mut-B,wt,Mut-A,het,Mut-B,het,,,,,Mut-A,het,Mut-B,wt,Mut-A,het,Mut-B,wt

+ 7 - 1
pyrat-data-multiple-parents-3-mutations.csv

@@ -2,4 +2,10 @@ ID,Line / Strain (Name),DOB,Father 1,Mother 1,Father 2,Mother 2,Sacrifice reason
 ID-001,Line-ABC,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,het,Mut-B,wt,Mut-C,hom,Mut-A,wt,Mut-B,wt,Mut-C,het,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,hom,Mut-B,wt,Mut-C,het
 ID-002,Line-ABC,15/12/2025,ID-F1,ID-M1,ID-F2,ID-M2,End of experiment,Mut-A,wt,Mut-B,het,Mut-C,hom,Mut-A,wt,Mut-B,wt,Mut-C,het,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,hom,Mut-B,wt,Mut-C,het
 ID-003,Line-ABC,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,het,Mut-B,hom,Mut-C,wt,,,,,,,Mut-A,het,Mut-B,het,Mut-C,hom,Mut-A,wt,Mut-B,het,Mut-C,het
-ID-004,Line-ABC,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,hom,Mut-B,het,Mut-C,wt,Mut-A,het,Mut-B,hom,Mut-C,wt,,,,,,,Mut-A,het,Mut-B,het,Mut-C,hom,Mut-A,wt,Mut-B,het,Mut-C,het
+ID-004,Line-ABC,02/01/2026,ID-F3,ID-M3,,ID-M4,End of experiment,Mut-A,hom,Mut-B,het,Mut-C,wt,Mut-A,het,Mut-B,hom,Mut-C,wt,,,,,,,Mut-A,het,Mut-B,het,Mut-C,hom,Mut-A,wt,Mut-B,het,Mut-C,het
+ID-005,Line-ABC,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,hom,Mut-B,wt,Mut-C,het,Mut-A,hom,Mut-B,wt,Mut-C,wt,Mut-A,wt,Mut-B,het,Mut-C,het,Mut-A,hom,Mut-B,het,Mut-C,hom,Mut-A,hom,Mut-B,wt,Mut-C,het
+ID-006,Line-ABC,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,het,Mut-B,het,Mut-C,hom,Mut-A,wt,Mut-B,wt,Mut-C,wt,Mut-A,wt,Mut-B,wt,Mut-C,wt,Mut-A,wt,Mut-B,hom,Mut-C,wt,Mut-A,wt,Mut-B,hom,Mut-C,wt
+ID-007,Line-ABC,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,Mut-A,het,Mut-B,wt,Mut-C,wt,Mut-A,het,Mut-B,wt,Mut-C,wt,Mut-A,het,Mut-B,wt,Mut-C,wt,Mut-A,wt,Mut-B,wt,Mut-C,wt,Mut-A,wt,Mut-B,wt,Mut-C,wt
+ID-008,Line-ABC,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,het,Mut-B,het,Mut-C,het,Mut-A,hom,Mut-B,wt,Mut-C,hom,,,,,,,Mut-A,het,Mut-B,hom,Mut-C,wt,Mut-A,wt,Mut-B,het,Mut-C,hom
+ID-009,Line-ABC,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,wt,Mut-B,hom,Mut-C,hom,Mut-A,hom,Mut-B,wt,Mut-C,hom,,,,,,,Mut-A,hom,Mut-B,het,Mut-C,hom,Mut-A,hom,Mut-B,het,Mut-C,hom
+ID-010,Line-ABC,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,Mut-A,het,Mut-B,wt,Mut-C,hom,Mut-A,het,Mut-B,wt,Mut-C,hom,,,,,,,Mut-A,wt,Mut-B,wt,Mut-C,hom,Mut-A,wt,Mut-B,wt,Mut-C,hom

+ 7 - 1
standardised-data-multiple-parents-1-mutation.csv

@@ -2,4 +2,10 @@ ID_offspring,line_name,date_of_birth,ID_father_1,ID_father_2,ID_mother_1,ID_moth
 ID-001,Line-A,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,1,Mut-A,het,het,wt,het,hom
 ID-002,Line-A,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,1,Mut-A,wt,het,wt,het,hom
 ID-003,Line-A,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,1,Mut-A,het,hom,,het,wt
-ID-004,Line-A,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,1,Mut-A,hom,hom,,het,wt
+ID-004,Line-A,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,1,Mut-A,hom,hom,,het,wt
+ID-005,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,1,Mut-A,hom,hom,wt,hom,hom
+ID-006,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,1,Mut-A,het,wt,wt,wt,wt
+ID-007,Line-A,15/02/2026,ID-F5,ID-M5,ID-F6,ID-M6,End of experiment,1,Mut-A,het,het,het,wt,wt
+ID-008,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,1,Mut-A,het,hom,,het,hom
+ID-009,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,1,Mut-A,wt,hom,,hom,hom
+ID-010,Line-A,15/03/2026,ID-F7,ID-M5,,ID-M8,End of experiment,1,Mut-A,hom,hom,,hom,hom

+ 7 - 1
standardised-data-multiple-parents-2-mutations.csv

@@ -2,4 +2,10 @@ ID_offspring,line_name,date_of_birth,ID_father_1,ID_father_2,ID_mother_1,ID_moth
 ID-001,Line-AB,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,2,Mut-A_Mut-B,het_hom,het_wt,wt_het,hom_het,het_wt
 ID-002,Line-AB,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,2,Mut-A_Mut-B,hom_het,het_wt,wt_het,hom_het,het_wt
 ID-003,Line-AB,02/01/2026,ID-F3,ID-F4,ID-M3,,End of experiment,2,Mut-A_Mut-B,het_het,hom_wt,wt_hom,het_het,
-ID-004,Line-AB,02/01/2026,ID-F3,ID-F4,ID-M3,,End of experiment,2,Mut-A_Mut-B,wt_hom,hom_wt,wt_hom,het_het,
+ID-004,Line-AB,02/01/2026,ID-F3,ID-F4,ID-M3,,End of experiment,2,Mut-A_Mut-B,wt_hom,hom_wt,wt_hom,het_het,
+ID-005,Line-AB,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,2,Mut-A_Mut-B,hom_het,hom_wt,wt_het,hom_het,hom_het
+ID-006,Line-AB,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,2,Mut-A_Mut-B,hom_het,wt_het,wt_het,wt_het,wt_het
+ID-007,Line-AB,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,2,Mut-A_Mut-B,het_wt,het_wt,het_wt,wt_wt,wt_wt
+ID-008,Line-AB,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,2,Mut-A_Mut-B,het_het,hom_wt,,het_hom,wt_het
+ID-009,Line-AB,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,2,Mut-A_Mut-B,wt_hom,hom_wt,,hom_hom,hom_hom
+ID-010,Line-AB,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,2,Mut-A_Mut-B,het_wt,het_het,,het_wt,het_wt

+ 7 - 1
standardised-data-multiple-parents-3-mutations.csv

@@ -2,4 +2,10 @@ ID_offspring,line_name,date_of_birth,ID_father_1,ID_father_2,ID_mother_1,ID_moth
 ID-001,Line-ABC,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,3,Mut-A_Mut-B_Mut-C,het_wt_hom,wt_wt_het,het_het_het,het_het_het,hom_wt_het
 ID-002,Line-ABC,15/12/2025,ID-F1,ID-F2,ID-M1,ID-M2,End of experiment,3,Mut-A_Mut-B_Mut-C,wt_het_hom,wt_wt_het,het_het_het,het_het_het,hom_wt_het
 ID-003,Line-ABC,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,3,Mut-A_Mut-B_Mut-C,het_het_het,het_hom_wt,,het_het_hom,wt_het_het
-ID-004,Line-ABC,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,3,Mut-A_Mut-B_Mut-C,hom_het_wt,het_hom_wt,,het_het_hom,wt_het_het
+ID-004,Line-ABC,02/01/2026,ID-F3,,ID-M3,ID-M4,End of experiment,3,Mut-A_Mut-B_Mut-C,hom_het_wt,het_hom_wt,,het_het_hom,wt_het_het
+ID-005,Line-ABC,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,3,Mut-A_Mut-B_Mut-C,hom_wt_het,hom_wt_wt,wt_het_het,hom_het_hom,hom_wt_het
+ID-006,Line-ABC,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,3,Mut-A_Mut-B_Mut-C,het_het_hom,wt_wt_wt,wt_wt_wt,wt_hom_wt,wt_hom_wt
+ID-007,Line-ABC,15/02/2026,ID-F5,ID-F6,ID-M5,ID-M6,End of experiment,3,Mut-A_Mut-B_Mut-C,het_wt_wt,het_wt_wt,het_wt_wt,wt_wt_wt,wt_wt_wt
+ID-008,Line-ABC,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,3,Mut-A_Mut-B_Mut-C,het_het_het,hom_wt_hom,,het_hom_wt,wt_het_hom
+ID-009,Line-ABC,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,3,Mut-A_Mut-B_Mut-C,wt_hom_hom,hom_wt_hom,,hom_het_hom,hom_het_hom
+ID-010,Line-ABC,15/03/2026,ID-F7,,ID-M5,ID-M8,End of experiment,3,Mut-A_Mut-B_Mut-C,het_wt_hom,het_wt_hom,,wt_wt_hom,wt_wt_hom