77 "var_c" : "NM_004119.2:c.1837+21_1837+22insCGAGAGAATATGAATATGATCTCAAATGGGAGTTTCCAAGAGAAAATTTAGAGTTTGGTAAGAATGGAATGTGCCAAA" ,
88 "exonic" :{
99 "var_p" : "NP_004110.2:p.(Lys614_Val615insAsnGlyMetCysGlnThrArgGluTyrGluTyrAspLeuLysTrpGluPheProArgGluAsnLeuGluPheGlyLys)" ,
10- "shifts_into_exon_and_intron" : True ,
11- "is_shifted" : True ,
1210 },
1311 "intronic" : {
1412 "var_p" : "NP_004110.2:p.?" ,
15- "shifts_into_exon_and_intron" : True ,
16- "is_shifted" : False ,
1713 },
1814 },
1915 {
2016 "name" : "dup with splice region preserved" ,
2117 "var_c" : "NM_004119.2:c.1835_1837+3dup" ,
2218 "exonic" :{
2319 "var_p" : "NP_004110.2:p.(Gly613_Lys614insIleGly)" ,
24- "shifts_into_exon_and_intron" : True ,
25- "is_shifted" : True ,
2620 },
2721 "intronic" : {
2822 "var_p" : "NP_004110.2:p.?" ,
29- "shifts_into_exon_and_intron" : True ,
30- "is_shifted" : False ,
3123 },
3224 },
3325 {
3426 "name" : "dup with splice region preserved" ,
3527 "var_c" : "NM_005228.4:c.2284-5_2290dup" ,
3628 "exonic" :{
3729 "var_p" : "NP_005219.2:p.(Ala763_Tyr764insPheGlnGluAla)" ,
38- "shifts_into_exon_and_intron" : True ,
39- "is_shifted" : True ,
4030 },
4131 "intronic" : {
4232 "var_p" : "NP_005219.2:p.?" ,
43- "shifts_into_exon_and_intron" : True ,
44- "is_shifted" : False ,
4533 },
4634 },
4735 {
4836 "name" : "dup with splice region preserved" ,
4937 "var_c" : "NM_004456.4:c.2196-1_2196dup" ,
5038 "exonic" :{
5139 "var_p" : "NP_004447.2:p.(Tyr733AspfsTer8)" ,
52- "shifts_into_exon_and_intron" : True ,
53- "is_shifted" : True ,
5440 },
5541 "intronic" : {
5642 "var_p" : "NP_004447.2:p.?" ,
57- "shifts_into_exon_and_intron" : True ,
58- "is_shifted" : False ,
5943 },
6044 },
6145 {
6246 "name" : "dup with splice region preserved" ,
6347 "var_c" : "NM_016222.3:c.27+2_27+5dup" ,
6448 "exonic" :{
6549 "var_p" : "NP_057306.2:p.(Arg10ValfsTer20)" ,
66- "shifts_into_exon_and_intron" : True ,
67- "is_shifted" : True ,
6850 },
6951 "intronic" : {
7052 "var_p" : "NP_057306.2:p.?" ,
71- "shifts_into_exon_and_intron" : True ,
72- "is_shifted" : False ,
7353 },
7454 },
7555 {
7656 "name" : "dup with splice region preserved" ,
7757 "var_c" : "NM_182758.2:c.2953-31_2953-26dup" ,
7858 "exonic" :{
7959 "var_p" : "NP_877435.2:p.?" ,
80- "shifts_into_exon_and_intron" : False ,
81- "is_shifted" : False ,
8260 },
8361 "intronic" : {
8462 "var_p" : "NP_877435.2:p.?" ,
85- "shifts_into_exon_and_intron" : False ,
86- "is_shifted" : False ,
8763 },
8864 },
8965 {
9066 "name" : "dup with broken cigar mapping" ,
9167 "var_c" : "NM_000267.3:c.8315-290_8457dup" ,
9268 "exonic" :{
9369 "var_p" : "NP_000258.1:p.?" ,
94- "shifts_into_exon_and_intron" : False ,
95- "is_shifted" : False ,
9670 },
9771 "intronic" : {
9872 "var_p" : "NP_000258.1:p.?" ,
99- "shifts_into_exon_and_intron" : False ,
100- "is_shifted" : False ,
10173 },
10274 }
10375]
@@ -111,13 +83,9 @@ def test_real_c_to_p(case, parser, am37):
11183 var_c = parser .parse (case ["var_c" ])
11284 var_p = am37 .c_to_p (var_c )
11385 assert str (var_p ) == case ["exonic" ]["var_p" ]
114- assert var_p .shifts_into_exon_and_intron == case ["exonic" ]["shifts_into_exon_and_intron" ]
115- assert var_p .is_shifted == case ["exonic" ]["is_shifted" ]
11686
11787 am37 .shift_over_boundary_preference = ShiftOverBoundaryPreference .INTRON
11888
11989 var_c = parser .parse (case ["var_c" ])
12090 var_p = am37 .c_to_p (var_c )
12191 assert str (var_p ) == case ["intronic" ]["var_p" ]
122- assert var_p .shifts_into_exon_and_intron == case ["intronic" ]["shifts_into_exon_and_intron" ]
123- assert var_p .is_shifted == case ["intronic" ]["is_shifted" ]
0 commit comments