-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParameterSweeps.nb
4732 lines (4674 loc) · 221 KB
/
ParameterSweeps.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.1' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 226585, 4724]
NotebookOptionsPosition[ 222805, 4651]
NotebookOutlinePosition[ 223400, 4673]
CellTagsIndexPosition[ 223357, 4670]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell["MGDrivE: Software Paper Data Analysis", "Title",
CellChangeTimes->{{3.719606471845965*^9, 3.719606478295146*^9}, {
3.7269235411347647`*^9, 3.7269235496701107`*^9}, {3.726924385548077*^9,
3.726924387619165*^9}},ExpressionUUID->"2d6f6f39-7656-4852-8114-\
ddf5567954bc"],
Cell[CellGroupData[{
Cell["Functions And Constants", "Chapter",
CellChangeTimes->{{3.719606480644713*^9, 3.719606483293655*^9}, {
3.729433262960289*^9, 3.7294332638385897`*^9}, {3.729441508236548*^9,
3.729441508563078*^9}, {3.7317625262898693`*^9, 3.731762528597271*^9}, {
3.737720112818437*^9,
3.737720114994378*^9}},ExpressionUUID->"730dcf91-3e4a-44fa-b20a-\
3bb895bd80a7"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"SetDirectory", "[",
RowBox[{"NotebookDirectory", "[", "]"}], "]"}], "\[IndentingNewLine]",
RowBox[{"baseFolders", "=",
RowBox[{
RowBox[{"{",
RowBox[{
"baseFolderRIDL", ",", "baseFolderWolbachia", ",",
"baseFolderWolbachiaRadiation", ",", "baseFolderCRISPRSIT", ",",
"baseFolderfsRIDL", ",", "basefsRIDLEgg", ",", "baseRIDLEgg"}], "}"}],
"=",
RowBox[{"{",
RowBox[{
"\"\<RIDL/\>\"", ",", "\"\<Wolbachia/\>\"", ",",
"\"\<WolbachiaRadiation/\>\"", ",", "\"\<CRISPR_SIT/\>\"", ",",
"\"\<fsRIDL/\>\"", ",", "\"\<fsRIDL_Egg/\>\"", ",",
"\"\<RIDL_Egg/\>\""}], "}"}]}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{
"repFolderRIDL", ",", "repFolderWolbachia", ",",
"repFolderWolbachiaRadiation", ",", "repFolderCRISPRSIT", ",",
"repFolderfsRIDL", ",", "repFolderfsRIDLEgg", ",", "repFolderRIDLEgg"}],
"}"}], "=",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"#", "<>", "\"\<Repetitions/\>\""}], ")"}], "&"}], "/@",
"baseFolders"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{
"meanFolderRIDL", ",", "meanFolderWolbachia", ",",
"meanFolderWolbachiaRadiation", ",", "meanFolderCRISPRSIT", ",",
"meanFolderfsRIDL", ",", "meanFolderfsRIDLEgg", ",",
"meanFolderRIDLEgg"}], "}"}], "=",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"#", "<>", "\"\<Mean/\>\""}], ")"}], "&"}], "/@",
"baseFolders"}]}], "\[IndentingNewLine]",
RowBox[{"(*", "Functions", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"ImportAndReshapeData", "[", "folderName_", "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
"fileNames", ",", "raw", ",", "data", ",", "dataTotal", ",",
"maleFileNames", ",", "femaleFileNames", ",", "rawMale", ",",
"rawFemale", ",", "dataMale", ",", "dataFemale", ",", "dataTotalMale",
",", "dataTotalFemale", ",", "genotypes"}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"fileNames", "=",
RowBox[{
RowBox[{"{",
RowBox[{"maleFileNames", ",", "femaleFileNames"}], "}"}], "=",
RowBox[{
RowBox[{
RowBox[{"FileNames", "[",
RowBox[{"folderName", "<>", "\"\</\>\"", "<>", "#"}], "]"}], "&"}],
"/@",
RowBox[{"{",
RowBox[{"\"\<ADM*.csv\>\"", ",", "\"\<AF1*.csv\>\""}], "}"}]}]}]}],
";", "\[IndentingNewLine]",
RowBox[{"raw", "=",
RowBox[{
RowBox[{"{",
RowBox[{"rawMale", ",", "rawFemale"}], "}"}], "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"ParallelMap", "[",
RowBox[{
RowBox[{
RowBox[{"Import", "[", "#", "]"}], "&"}], ",", "i"}], "]"}], ",",
RowBox[{"{",
RowBox[{"i", ",", "fileNames"}], "}"}]}], "]"}]}]}], ";",
"\[IndentingNewLine]",
RowBox[{"data", "=",
RowBox[{
RowBox[{"{",
RowBox[{"dataMale", ",", "dataFemale"}], "}"}], "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"#", "[",
RowBox[{"[",
RowBox[{
RowBox[{"2", ";;", "All"}], ",",
RowBox[{"3", ";;", "All"}]}], "]"}], "]"}], "&"}], "/@", "i"}],
",",
RowBox[{"{",
RowBox[{"i", ",", "raw"}], "}"}]}], "]"}]}]}], ";",
"\[IndentingNewLine]",
RowBox[{"dataTotal", "=",
RowBox[{
RowBox[{"{",
RowBox[{"dataTotalMale", ",", "dataTotalFemale"}], "}"}], "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"Flatten", "/@",
RowBox[{"Transpose", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Total", "/@", "#"}], ",", "#"}], "}"}], "]"}]}],
"&"}], "/@", "i"}], ",",
RowBox[{"{",
RowBox[{"i", ",", "data"}], "}"}]}], "]"}]}]}], ";",
"\[IndentingNewLine]",
RowBox[{"genotypes", "=",
RowBox[{"Prepend", "[",
RowBox[{
RowBox[{"rawMale", "[",
RowBox[{"[",
RowBox[{"1", ",", "1", ",",
RowBox[{"3", ";;", "All"}]}], "]"}], "]"}], ",", "\"\<Total\>\""}],
"]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"genotypes", ",", "dataTotal"}], "}"}]}]}],
"\[IndentingNewLine]", "]"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"CreateColorBlend", "[",
RowBox[{"genotypes_", ",", "colorSchemeName_", ",",
RowBox[{"{",
RowBox[{"markerSize_", ",", "labelStyle_"}], "}"}]}], "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{"colorPalette", ",", "colorPairs", ",", "colorSwatch"}], "}"}],
",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"colorPalette", "=",
RowBox[{"Prepend", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{
RowBox[{"ColorData", "[", "colorSchemeName", "]"}], "[", "#",
"]"}], "&"}], "/@",
RowBox[{"Range", "[",
RowBox[{"0", ",", "1", ",",
RowBox[{"1", "/",
RowBox[{"(",
RowBox[{
RowBox[{"Length", "[", "genotypes", "]"}], "-", "1"}],
")"}]}]}], "]"}]}], ",",
RowBox[{"Lighter", "[",
RowBox[{"Black", ",", ".75"}], "]"}]}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"colorPairs", "=",
RowBox[{"Transpose", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Prepend", "[",
RowBox[{
RowBox[{"genotypes", "[",
RowBox[{"[",
RowBox[{"All", ",", "1"}], "]"}], "]"}], ",", "\"\<Total\>\""}],
"]"}], ",", "colorPalette"}], "}"}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"colorSwatch", "=",
RowBox[{"SwatchLegend", "[",
RowBox[{
RowBox[{"colorPairs", "[",
RowBox[{"[",
RowBox[{"All", ",", "2"}], "]"}], "]"}], ",",
RowBox[{"colorPairs", "[",
RowBox[{"[",
RowBox[{"All", ",", "1"}], "]"}], "]"}], ",",
RowBox[{"LegendMarkerSize", "\[Rule]", "markerSize"}], ",",
RowBox[{"LabelStyle", "\[Rule]", "labelStyle"}], ",",
RowBox[{"LegendLayout", "\[Rule]",
RowBox[{"{",
RowBox[{"\"\<Column\>\"", ",", "1"}], "}"}]}]}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"colorPalette", ",", "colorSwatch"}], "}"}]}]}],
"\[IndentingNewLine]", "]"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"AggregatePopulationByGenotypeIndices", "[",
RowBox[{"populationDatasets_", ",", "genotypesIndicesToAggregate_"}],
"]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{"popsDatasets", ",", "geneLabels"}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"popsDatasets", "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"Transpose", "[",
RowBox[{
RowBox[{
RowBox[{"Total", "/@",
RowBox[{"populationDatasets", "[",
RowBox[{"[",
RowBox[{"i", ",", "All", ",",
RowBox[{"#", "[",
RowBox[{"[", "2", "]"}], "]"}]}], "]"}], "]"}]}], "&"}], "/@",
"genotypesIndicesToAggregate"}], "]"}], ",",
RowBox[{"{",
RowBox[{"i", ",", "1", ",",
RowBox[{"Length", "[", "populationDatasets", "]"}]}], "}"}]}],
"]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"geneLabels", "=",
RowBox[{"genotypesIndicesToAggregate", "[",
RowBox[{"[",
RowBox[{"All", ",", "1"}], "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"geneLabels", ",",
RowBox[{"AddTotalPopulationToDataset", "[", "popsDatasets", "]"}]}],
"}"}]}]}], "\[IndentingNewLine]", "]"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"AddTotalPopulationToDataset", "[", "dataset_", "]"}], ":=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"Append", "[",
RowBox[{"#", ",",
RowBox[{"Total", "[", "#", "]"}]}], "]"}], "&"}], "/@",
RowBox[{"dataset", "[",
RowBox[{"[", "i", "]"}], "]"}]}], ",",
RowBox[{"{",
RowBox[{"i", ",", "1", ",",
RowBox[{"Length", "[", "dataset", "]"}]}], "}"}]}], "]"}]}],
"\[IndentingNewLine]",
RowBox[{"(*", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{"topRangeGlobal", ",", "topTimeGlobal"}], "}"}], "=",
RowBox[{"{",
RowBox[{"12000", ",", "400"}], "}"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{"Themes`AddThemeRules", "[",
RowBox[{"\"\<BrushStrokes\>\"", ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"dataAggregateTransposed", "[",
RowBox[{"[",
RowBox[{"All", ",", "i"}], "]"}], "]"}], "/", "2"}],
"\[IndentingNewLine]", ",",
RowBox[{"AspectRatio", "\[Rule]",
RowBox[{"1", "/", "5"}]}], "\[IndentingNewLine]", ",",
RowBox[{"Frame", "\[Rule]", "True"}], "\[IndentingNewLine]", ",",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"Map", "[",
RowBox[{
RowBox[{
RowBox[{"Style", "[",
RowBox[{"#", ",", "30"}], "]"}], "&"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"\"\<Allele Count\>\"", ",",
RowBox[{"Rotate", "[",
RowBox[{"\"\<\>\"", ",",
RowBox[{
RowBox[{"-", "90"}], "Degree"}]}], "]"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"\"\<Time\>\"", ",", "\"\<\>\""}], "}"}]}], "}"}], ",",
RowBox[{"{", "2", "}"}]}], "]"}]}], "\[IndentingNewLine]", ",",
RowBox[{"FrameStyle", "\[Rule]",
RowBox[{"Directive", "[",
RowBox[{"Thickness", "[", ".00125", "]"}], "]"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"FrameTicks", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Range", "[",
RowBox[{"0", ",", "topRangeGlobal", ",", "5000"}], "]"}], ",",
"None"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"Range", "[",
RowBox[{"0", ",", "topTimeGlobal", ",", "200"}], "]"}], ",",
"None"}], "}"}]}], "}"}]}], "\[IndentingNewLine]", ",",
RowBox[{"FrameTicksStyle", "\[Rule]",
RowBox[{"Directive", "[", "20", "]"}]}], "\[IndentingNewLine]", ",",
RowBox[{"ImageSize", "\[Rule]", "1500"}], "\[IndentingNewLine]", ",",
RowBox[{"PerformanceGoal", "\[Rule]", "\"\<Speed\>\""}],
"\[IndentingNewLine]", ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "topTimeGlobal"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "topRangeGlobal"}], "}"}]}], "}"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"DefaultPlotStyle", "\[Rule]",
RowBox[{"Thread", "@",
RowBox[{"Directive", "[",
RowBox[{
RowBox[{"Thickness", "[", ".00075", "]"}], ",",
RowBox[{"Opacity", "[", ".025", "]"}]}], "]"}]}]}],
"\[IndentingNewLine]", ",",
RowBox[{"Epilog", "\[Rule]",
RowBox[{"Flatten", "[",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Thickness", "[", ".000075", "]"}], ",",
RowBox[{
RowBox[{
RowBox[{"Line", "[",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"#", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"#", ",", "topRange"}], "}"}]}], "}"}], "]"}], "&"}], "/@",
"releasesPattern"}], ",", "\[IndentingNewLine]",
RowBox[{"Opacity", "[", "0", "]"}], ",", "LightRed", ",",
RowBox[{"EdgeForm", "[",
RowBox[{"Directive", "[",
RowBox[{"Thickness", "[", ".000075", "]"}], "]"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"Rectangle", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Min", "[", "releasesPattern", "]"}], ",", "0"}], "}"}],
",",
RowBox[{"{",
RowBox[{
RowBox[{"Max", "[", "releasesPattern", "]"}], ",", "topRange"}],
"}"}]}], "]"}]}], "\[IndentingNewLine]", "}"}], "]"}]}]}],
"\[IndentingNewLine]", "]"}]}], "Input",
CellChangeTimes->{{3.7377198019873962`*^9, 3.737719881158099*^9}, {
3.737720110745285*^9, 3.737720131250606*^9}, {3.737721212730797*^9,
3.7377213353085747`*^9}, {3.737721372963934*^9, 3.737721374238364*^9}, {
3.737722486811116*^9, 3.737722598492025*^9}, {3.7377275817690973`*^9,
3.737727581963849*^9}, {3.7378053160078287`*^9, 3.737805367757805*^9},
3.7380019662014303`*^9, {3.738005119363777*^9, 3.738005119541009*^9}, {
3.7380053600759487`*^9, 3.738005405447691*^9}, {3.738005449851552*^9,
3.7380054504682283`*^9}, {3.738005493093652*^9, 3.7380054977299213`*^9}, {
3.738440080455381*^9, 3.738440111961534*^9}, {3.738518400146637*^9,
3.738518519165558*^9}, {3.738526799216745*^9, 3.738526840107175*^9}, {
3.739015677787972*^9, 3.739015685109055*^9}, {3.739015732111864*^9,
3.73901580552664*^9}, {3.739016089975305*^9,
3.739016111179081*^9}},ExpressionUUID->"55f9b925-3080-4c88-ac23-\
8157c18938de"],
Cell[BoxData["\<\"/Users/sanchez.hmsc/odrive/MGDrivE_Experiments/CRISPR_SIT\"\
\>"], "Output",
CellChangeTimes->{
3.7377198073933563`*^9, 3.737719881875703*^9, {3.737720123513259*^9,
3.73772013156664*^9}, {3.737721290294745*^9, 3.737721335653235*^9},
3.737721375003083*^9, 3.737722449028373*^9, {3.7377224943588867`*^9,
3.737722519349884*^9}, {3.7377225640350447`*^9, 3.737722598830789*^9},
3.737727582484867*^9, 3.737729284231164*^9, 3.73780464232994*^9, {
3.737805340683423*^9, 3.737805368639079*^9}, 3.7378060152462606`*^9,
3.737806332031913*^9, 3.737806902584382*^9, 3.7378101628413677`*^9,
3.737811093136303*^9, 3.7378118090416737`*^9, 3.738001052267705*^9,
3.738001887547159*^9, 3.738001966354899*^9, 3.738004600049004*^9,
3.738005406356618*^9, 3.7380054980473537`*^9, 3.738005560587672*^9,
3.738005937245748*^9, 3.73800601205547*^9, 3.7383300772146873`*^9,
3.7383302168733063`*^9, 3.738335332430764*^9, 3.7383384246143208`*^9,
3.738353890430894*^9, 3.738353974269285*^9, 3.738356155257172*^9,
3.738409183976782*^9, 3.738410007946558*^9, 3.738422079089614*^9,
3.7384312020237226`*^9, 3.738440117148234*^9, 3.7385181850121527`*^9, {
3.7385184725931673`*^9, 3.7385185200737877`*^9}, 3.738526841690074*^9,
3.738669915658139*^9, 3.7386949153623238`*^9, 3.738931219437492*^9, {
3.7389323679205647`*^9, 3.738932380666607*^9}, 3.738936968520852*^9,
3.7390161197555113`*^9, 3.739131439006119*^9, 3.739548901721879*^9,
3.739559070169177*^9, 3.739639087717136*^9, 3.739639241733539*^9,
3.739651718121347*^9, 3.739705272969179*^9, 3.7397279422111177`*^9,
3.739730948374173*^9, 3.7397381741148767`*^9, 3.739879127631803*^9,
3.7399077706007967`*^9, 3.74113350854253*^9, 3.7411707710665617`*^9, {
3.741170977350801*^9, 3.741170989627211*^9}, 3.741294791517909*^9,
3.741361653455905*^9,
3.741361694360661*^9},ExpressionUUID->"4020aa8f-0605-4eff-95fb-\
cdc7d2fb7943"],
Cell[BoxData[
RowBox[{"{",
RowBox[{"\<\"RIDL/\"\>", ",", "\<\"Wolbachia/\"\>",
",", "\<\"WolbachiaRadiation/\"\>", ",", "\<\"CRISPR_SIT/\"\>",
",", "\<\"fsRIDL/\"\>", ",", "\<\"fsRIDL_Egg/\"\>",
",", "\<\"RIDL_Egg/\"\>"}], "}"}]], "Output",
CellChangeTimes->{
3.7377198073933563`*^9, 3.737719881875703*^9, {3.737720123513259*^9,
3.73772013156664*^9}, {3.737721290294745*^9, 3.737721335653235*^9},
3.737721375003083*^9, 3.737722449028373*^9, {3.7377224943588867`*^9,
3.737722519349884*^9}, {3.7377225640350447`*^9, 3.737722598830789*^9},
3.737727582484867*^9, 3.737729284231164*^9, 3.73780464232994*^9, {
3.737805340683423*^9, 3.737805368639079*^9}, 3.7378060152462606`*^9,
3.737806332031913*^9, 3.737806902584382*^9, 3.7378101628413677`*^9,
3.737811093136303*^9, 3.7378118090416737`*^9, 3.738001052267705*^9,
3.738001887547159*^9, 3.738001966354899*^9, 3.738004600049004*^9,
3.738005406356618*^9, 3.7380054980473537`*^9, 3.738005560587672*^9,
3.738005937245748*^9, 3.73800601205547*^9, 3.7383300772146873`*^9,
3.7383302168733063`*^9, 3.738335332430764*^9, 3.7383384246143208`*^9,
3.738353890430894*^9, 3.738353974269285*^9, 3.738356155257172*^9,
3.738409183976782*^9, 3.738410007946558*^9, 3.738422079089614*^9,
3.7384312020237226`*^9, 3.738440117148234*^9, 3.7385181850121527`*^9, {
3.7385184725931673`*^9, 3.7385185200737877`*^9}, 3.738526841690074*^9,
3.738669915658139*^9, 3.7386949153623238`*^9, 3.738931219437492*^9, {
3.7389323679205647`*^9, 3.738932380666607*^9}, 3.738936968520852*^9,
3.7390161197555113`*^9, 3.739131439006119*^9, 3.739548901721879*^9,
3.739559070169177*^9, 3.739639087717136*^9, 3.739639241733539*^9,
3.739651718121347*^9, 3.739705272969179*^9, 3.7397279422111177`*^9,
3.739730948374173*^9, 3.7397381741148767`*^9, 3.739879127631803*^9,
3.7399077706007967`*^9, 3.74113350854253*^9, 3.7411707710665617`*^9, {
3.741170977350801*^9, 3.741170989627211*^9}, 3.741294791517909*^9,
3.741361653455905*^9,
3.741361694376794*^9},ExpressionUUID->"f00c1e07-d196-4c79-a647-\
1e975f48589a"],
Cell[BoxData[
RowBox[{"{",
RowBox[{"\<\"RIDL/Repetitions/\"\>", ",", "\<\"Wolbachia/Repetitions/\"\>",
",", "\<\"WolbachiaRadiation/Repetitions/\"\>",
",", "\<\"CRISPR_SIT/Repetitions/\"\>", ",", "\<\"fsRIDL/Repetitions/\"\>",
",", "\<\"fsRIDL_Egg/Repetitions/\"\>",
",", "\<\"RIDL_Egg/Repetitions/\"\>"}], "}"}]], "Output",
CellChangeTimes->{
3.7377198073933563`*^9, 3.737719881875703*^9, {3.737720123513259*^9,
3.73772013156664*^9}, {3.737721290294745*^9, 3.737721335653235*^9},
3.737721375003083*^9, 3.737722449028373*^9, {3.7377224943588867`*^9,
3.737722519349884*^9}, {3.7377225640350447`*^9, 3.737722598830789*^9},
3.737727582484867*^9, 3.737729284231164*^9, 3.73780464232994*^9, {
3.737805340683423*^9, 3.737805368639079*^9}, 3.7378060152462606`*^9,
3.737806332031913*^9, 3.737806902584382*^9, 3.7378101628413677`*^9,
3.737811093136303*^9, 3.7378118090416737`*^9, 3.738001052267705*^9,
3.738001887547159*^9, 3.738001966354899*^9, 3.738004600049004*^9,
3.738005406356618*^9, 3.7380054980473537`*^9, 3.738005560587672*^9,
3.738005937245748*^9, 3.73800601205547*^9, 3.7383300772146873`*^9,
3.7383302168733063`*^9, 3.738335332430764*^9, 3.7383384246143208`*^9,
3.738353890430894*^9, 3.738353974269285*^9, 3.738356155257172*^9,
3.738409183976782*^9, 3.738410007946558*^9, 3.738422079089614*^9,
3.7384312020237226`*^9, 3.738440117148234*^9, 3.7385181850121527`*^9, {
3.7385184725931673`*^9, 3.7385185200737877`*^9}, 3.738526841690074*^9,
3.738669915658139*^9, 3.7386949153623238`*^9, 3.738931219437492*^9, {
3.7389323679205647`*^9, 3.738932380666607*^9}, 3.738936968520852*^9,
3.7390161197555113`*^9, 3.739131439006119*^9, 3.739548901721879*^9,
3.739559070169177*^9, 3.739639087717136*^9, 3.739639241733539*^9,
3.739651718121347*^9, 3.739705272969179*^9, 3.7397279422111177`*^9,
3.739730948374173*^9, 3.7397381741148767`*^9, 3.739879127631803*^9,
3.7399077706007967`*^9, 3.74113350854253*^9, 3.7411707710665617`*^9, {
3.741170977350801*^9, 3.741170989627211*^9}, 3.741294791517909*^9,
3.741361653455905*^9,
3.741361694386352*^9},ExpressionUUID->"b54d1512-59d7-4169-862b-\
83d6900ccc5c"],
Cell[BoxData[
RowBox[{"{",
RowBox[{"\<\"RIDL/Mean/\"\>", ",", "\<\"Wolbachia/Mean/\"\>",
",", "\<\"WolbachiaRadiation/Mean/\"\>", ",", "\<\"CRISPR_SIT/Mean/\"\>",
",", "\<\"fsRIDL/Mean/\"\>", ",", "\<\"fsRIDL_Egg/Mean/\"\>",
",", "\<\"RIDL_Egg/Mean/\"\>"}], "}"}]], "Output",
CellChangeTimes->{
3.7377198073933563`*^9, 3.737719881875703*^9, {3.737720123513259*^9,
3.73772013156664*^9}, {3.737721290294745*^9, 3.737721335653235*^9},
3.737721375003083*^9, 3.737722449028373*^9, {3.7377224943588867`*^9,
3.737722519349884*^9}, {3.7377225640350447`*^9, 3.737722598830789*^9},
3.737727582484867*^9, 3.737729284231164*^9, 3.73780464232994*^9, {
3.737805340683423*^9, 3.737805368639079*^9}, 3.7378060152462606`*^9,
3.737806332031913*^9, 3.737806902584382*^9, 3.7378101628413677`*^9,
3.737811093136303*^9, 3.7378118090416737`*^9, 3.738001052267705*^9,
3.738001887547159*^9, 3.738001966354899*^9, 3.738004600049004*^9,
3.738005406356618*^9, 3.7380054980473537`*^9, 3.738005560587672*^9,
3.738005937245748*^9, 3.73800601205547*^9, 3.7383300772146873`*^9,
3.7383302168733063`*^9, 3.738335332430764*^9, 3.7383384246143208`*^9,
3.738353890430894*^9, 3.738353974269285*^9, 3.738356155257172*^9,
3.738409183976782*^9, 3.738410007946558*^9, 3.738422079089614*^9,
3.7384312020237226`*^9, 3.738440117148234*^9, 3.7385181850121527`*^9, {
3.7385184725931673`*^9, 3.7385185200737877`*^9}, 3.738526841690074*^9,
3.738669915658139*^9, 3.7386949153623238`*^9, 3.738931219437492*^9, {
3.7389323679205647`*^9, 3.738932380666607*^9}, 3.738936968520852*^9,
3.7390161197555113`*^9, 3.739131439006119*^9, 3.739548901721879*^9,
3.739559070169177*^9, 3.739639087717136*^9, 3.739639241733539*^9,
3.739651718121347*^9, 3.739705272969179*^9, 3.7397279422111177`*^9,
3.739730948374173*^9, 3.7397381741148767`*^9, 3.739879127631803*^9,
3.7399077706007967`*^9, 3.74113350854253*^9, 3.7411707710665617`*^9, {
3.741170977350801*^9, 3.741170989627211*^9}, 3.741294791517909*^9,
3.741361653455905*^9,
3.741361694395464*^9},ExpressionUUID->"9caf3522-218a-4acb-84d3-\
68a754da8329"],
Cell[BoxData[
TemplateBox[{
"Part","pkspec1",
"\"The expression \\!\\(\\*RowBox[{\\\"i\\\"}]\\) cannot be used as a part \
specification.\"",2,20,2,30055286195644721867,"Local"},
"MessageTemplate"]], "Message", "MSG",
CellChangeTimes->{3.741361653527582*^9,
3.7413616944044313`*^9},ExpressionUUID->"7f0894f4-a96b-4cfd-af6d-\
0c8a9a7a8d7b"],
Cell[BoxData["\<\"BrushStrokes\"\>"], "Output",
CellChangeTimes->{
3.7377198073933563`*^9, 3.737719881875703*^9, {3.737720123513259*^9,
3.73772013156664*^9}, {3.737721290294745*^9, 3.737721335653235*^9},
3.737721375003083*^9, 3.737722449028373*^9, {3.7377224943588867`*^9,
3.737722519349884*^9}, {3.7377225640350447`*^9, 3.737722598830789*^9},
3.737727582484867*^9, 3.737729284231164*^9, 3.73780464232994*^9, {
3.737805340683423*^9, 3.737805368639079*^9}, 3.7378060152462606`*^9,
3.737806332031913*^9, 3.737806902584382*^9, 3.7378101628413677`*^9,
3.737811093136303*^9, 3.7378118090416737`*^9, 3.738001052267705*^9,
3.738001887547159*^9, 3.738001966354899*^9, 3.738004600049004*^9,
3.738005406356618*^9, 3.7380054980473537`*^9, 3.738005560587672*^9,
3.738005937245748*^9, 3.73800601205547*^9, 3.7383300772146873`*^9,
3.7383302168733063`*^9, 3.738335332430764*^9, 3.7383384246143208`*^9,
3.738353890430894*^9, 3.738353974269285*^9, 3.738356155257172*^9,
3.738409183976782*^9, 3.738410007946558*^9, 3.738422079089614*^9,
3.7384312020237226`*^9, 3.738440117148234*^9, 3.7385181850121527`*^9, {
3.7385184725931673`*^9, 3.7385185200737877`*^9}, 3.738526841690074*^9,
3.738669915658139*^9, 3.7386949153623238`*^9, 3.738931219437492*^9, {
3.7389323679205647`*^9, 3.738932380666607*^9}, 3.738936968520852*^9,
3.7390161197555113`*^9, 3.739131439006119*^9, 3.739548901721879*^9,
3.739559070169177*^9, 3.739639087717136*^9, 3.739639241733539*^9,
3.739651718121347*^9, 3.739705272969179*^9, 3.7397279422111177`*^9,
3.739730948374173*^9, 3.7397381741148767`*^9, 3.739879127631803*^9,
3.7399077706007967`*^9, 3.74113350854253*^9, 3.7411707710665617`*^9, {
3.741170977350801*^9, 3.741170989627211*^9}, 3.741294791517909*^9,
3.741361653455905*^9,
3.7413616944112453`*^9},ExpressionUUID->"b83e5835-2485-4072-966a-\
81df8aeeb429"]
}, Open ]]
}, Closed]],
Cell[CellGroupData[{
Cell["Paper Plots", "Chapter",
CellChangeTimes->{{3.729359830128415*^9,
3.729359833961483*^9}},ExpressionUUID->"c34efbaf-7f2e-4295-966d-\
bf0ab17a22aa"],
Cell[CellGroupData[{
Cell["\[Mu] Sweep", "Subchapter",
CellChangeTimes->{{3.739558201064348*^9, 3.739558207759872*^9}, {
3.739564673665222*^9, 3.739564673903603*^9}, {3.7397059201252003`*^9,
3.7397059208953037`*^9}},ExpressionUUID->"18942a17-b432-4634-8a2d-\
538d94020127"],
Cell[BoxData[{
RowBox[{
RowBox[{"SetDirectory", "[",
RowBox[{"NotebookDirectory", "[", "]"}], "]"}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"folders", "=",
RowBox[{
RowBox[{"FileNames", "[",
RowBox[{
RowBox[{"Directory", "[", "]"}], "<>",
"\"\</ParameterSweeps/LifespanReduction/Repetitions/\>\"", "<>",
"\"\<0*\>\""}], "]"}], "//", "Reverse"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"levels", "=",
RowBox[{
RowBox[{
RowBox[{"ToExpression", "[",
RowBox[{"Last", "/@",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"StringSplit", "[",
RowBox[{"#", ",", "\"\</\>\""}], "]"}], "&"}], "/@", "folders"}],
")"}]}], "]"}], "/", "1000"}], "//", "N"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"wildIndex", "=", "1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"genotypesIndicesToAggregate", "=",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{"\"\<W\>\"", ",",
RowBox[{"{",
RowBox[{"1", ",", "1", ",", "2"}], "}"}]}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"\"\<R\>\"", ",",
RowBox[{"{",
RowBox[{"2", ",", "3", ",", "3"}], "}"}]}], "}"}]}],
"\[IndentingNewLine]", "}"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{"(*", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"dataTotals", "=",
RowBox[{"ParallelTable", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"folder", "=",
RowBox[{"folders", "[",
RowBox[{"[", "i", "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"files", "=",
RowBox[{
RowBox[{"{",
RowBox[{"filesMale", ",", "filesFemale"}], "}"}], "=",
RowBox[{"{",
RowBox[{
RowBox[{"FileNames", "[",
RowBox[{"folder", "<>", "\"\</ADM*\>\""}], "]"}], ",",
RowBox[{"FileNames", "[",
RowBox[{"folder", "<>", "\"\</AF1_Aggregate*\>\""}], "]"}]}],
"}"}]}]}], ";", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{"dataMale", ",", "dataFemale"}], "}"}], "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{
RowBox[{"Import", "[", "#", "]"}], "[",
RowBox[{"[",
RowBox[{
RowBox[{"2", ";;", "All"}], ",",
RowBox[{"3", ";;", "All"}]}], "]"}], "]"}], "&"}], "/@", "i"}],
",",
RowBox[{"{",
RowBox[{"i", ",", "files"}], "}"}]}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"dataTotal", "=", "dataFemale"}],
RowBox[{"(*", "dataFemale",
RowBox[{"(*",
RowBox[{"(",
RowBox[{"dataMale", "+", "dataFemale"}], ")"}], "*)"}], "*)"}], ";",
"\[IndentingNewLine]",
RowBox[{"dataAggregate", "=",
RowBox[{
RowBox[{"AggregatePopulationByGenotypeIndices", "[",
RowBox[{"dataTotal", ",", "genotypesIndicesToAggregate"}], "]"}],
"[",
RowBox[{"[", "2", "]"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"dataAggregateTransposed", "=",
RowBox[{"Transpose", "/@", "dataAggregate"}]}], ";",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Median", "/@",
RowBox[{"(",
RowBox[{"dataAggregateTransposed", "//", "Transpose"}], ")"}]}], "//",
"N"}]}], "\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"i", ",", "1", ",",
RowBox[{"Length", "[", "folders", "]"}]}], "}"}]}], "]"}]}],
";"}]}], "Input",
CellChangeTimes->{{3.7395581174249687`*^9, 3.739558122319133*^9}, {
3.739558224642312*^9, 3.739558255999302*^9}, {3.739558289344817*^9,
3.739558335472151*^9}, {3.739558532789179*^9, 3.739558533047173*^9}, {
3.739558591600675*^9, 3.739558634996447*^9}, {3.739558833775436*^9,
3.739558906476029*^9}, {3.7395590404981127`*^9, 3.739559057457623*^9}, {
3.739559156516121*^9, 3.739559156966012*^9}, {3.739559678119132*^9,
3.739559731348674*^9}, {3.73955979271987*^9, 3.7395598170492687`*^9}, {
3.739561709802397*^9, 3.739561710757423*^9}, {3.7395625414204073`*^9,
3.739562541794407*^9}, {3.739563296217326*^9, 3.739563335223094*^9}, {
3.739563371016466*^9, 3.73956337700992*^9}, {3.7395634545103407`*^9,
3.739563459559616*^9}, {3.739563512482727*^9, 3.7395635165967903`*^9}, {
3.73956355849058*^9, 3.739563565114977*^9}, {3.739563676090049*^9,
3.739563677142707*^9}, {3.7395641034857903`*^9, 3.739564126623106*^9}, {
3.739564168878416*^9, 3.73956419467338*^9}, {3.739564680130353*^9,
3.739564680251964*^9}, 3.7396212859553757`*^9, 3.7396213227895107`*^9,
3.739622978922861*^9, {3.739625848151396*^9, 3.739625848647811*^9},
3.739639315308179*^9, {3.739640168283667*^9, 3.739640169297978*^9}, {
3.7396464939910707`*^9, 3.739646494136265*^9}, {3.739730951916876*^9,
3.739730952432136*^9}, 3.739887096907321*^9, {3.739888809801752*^9,
3.739888812368835*^9}, {3.741295014244934*^9, 3.7412950169824047`*^9}, {
3.741361892369416*^9,
3.741361893897284*^9}},ExpressionUUID->"9c874fcf-167e-4e99-b9dd-\
b8a6606f4b57"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"listLine", "=",
RowBox[{"ListLinePlot", "[",
RowBox[{
RowBox[{
RowBox[{"dataTotals", "[",
RowBox[{"[",
RowBox[{
RowBox[{"1", ";;", "All"}], ",", "wildIndex"}], "]"}], "]"}], "/",
"2"}], "\[IndentingNewLine]", ",",
RowBox[{"Frame", "\[Rule]", "True"}], "\[IndentingNewLine]", ",",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"Style", "[",
RowBox[{"#", ",", "75"}], "]"}], "&"}], "/@",
RowBox[{"{",
RowBox[{
"\"\<Time (days)\>\"", ",", "\"\<No. adult female\\nmosquitoes\>\""}],
"}"}]}], ")"}]}], "\[IndentingNewLine]", ",",
RowBox[{"FrameStyle", "\[Rule]", "Thick"}], "\[IndentingNewLine]", ",",
RowBox[{"FrameTicks", "\[Rule]",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"5000", ",", "\"\<5k\>\""}], "}"}], ",",
RowBox[{"{",
RowBox[{"10000", ",", "\"\<10k\>\""}], "}"}]}], "}"}], ",",
"None"}], "}"}], ",", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"0", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"0", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"1", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"1", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"2", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"2", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"3", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"3", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"4", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"4", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"5", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"5", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"6", "*",
RowBox[{"(",
RowBox[{"7", "*", "4"}], ")"}]}], "+", "20"}], ",",
RowBox[{"6", "*", "7", "*", "4"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"220", ",", "200"}], "}"}], ",",
RowBox[{"{",
RowBox[{"320", ",", "300"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"365", "+", "20"}], ",", "365"}], "}"}], ",",
RowBox[{"{",
RowBox[{"420", ",", "400"}], "}"}]}], "}"}], ",", "None"}],
"}"}]}], "\[IndentingNewLine]", "}"}]}], "\[IndentingNewLine]", ",",
RowBox[{"FrameTicksStyle", "\[Rule]", "40"}], "\[IndentingNewLine]", ",",
RowBox[{"GridLines", "\[Rule]", "Automatic"}], "\[IndentingNewLine]", ",",
RowBox[{"GridLinesStyle", "\[Rule]",
RowBox[{"Directive", "[",
RowBox[{"Thick", ",",
RowBox[{"Opacity", "[", ".15", "]"}]}], "]"}]}], "\[IndentingNewLine]",
",",
RowBox[{"ImageSize", "\[Rule]", "1500"}], "\[IndentingNewLine]", ",",
RowBox[{"PlotLabel", "\[Rule]",
RowBox[{"Style", "[",
RowBox[{"\"\<pgSIT Eggs (100:1)\>\"", ",", "100"}], "]"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"17.5", ",",
RowBox[{"365", "+", "20"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "11000"}], "}"}]}], "}"}]}], "\[IndentingNewLine]",
",",
RowBox[{"PlotStyle", "\[Rule]",
RowBox[{"{",
RowBox[{"Directive", "[",
RowBox[{
RowBox[{"Opacity", "[", ".75", "]"}], ",",
RowBox[{"Thickness", "[", ".0075", "]"}]}], "]"}], "}"}]}],
"\[IndentingNewLine]", ",",
RowBox[{"PlotLegends", "\[Rule]",
RowBox[{"SwatchLegend", "[",
RowBox[{"Automatic", ",",
RowBox[{
RowBox[{
RowBox[{"StringPadRight", "[",
RowBox[{"#", ",", "4", ",", "\"\<0\>\""}], "]"}], "&"}], "/@",
RowBox[{"(",
RowBox[{"ToString", "/@", "levels"}], ")"}]}], ",",
RowBox[{"LegendMarkerSize", "\[Rule]", "50"}], ",",
RowBox[{"LabelStyle", "\[Rule]", "40"}], ",",
RowBox[{"LegendLabel", "\[Rule]",
RowBox[{"Style", "[",
RowBox[{"\"\<Lifespan\\nReduction\>\"", ",", "40"}], "]"}]}]}],
"]"}]}]}], "\[IndentingNewLine]", "]"}]}], "\[IndentingNewLine]",
RowBox[{"Export", "[",
RowBox[{"\"\<Lifespan100Line.pdf\>\"", ",", "listLine"}], "]"}]}], "Input",
CellChangeTimes->{{3.739728038754592*^9, 3.739728437920631*^9}, {
3.7397284687320957`*^9, 3.739728475229534*^9}, {3.7397285207912893`*^9,
3.7397286006417933`*^9}, {3.7397296233269157`*^9, 3.739729643149744*^9},
3.739729692852105*^9, {3.7397311119148006`*^9, 3.739731115154464*^9}, {
3.739731857582295*^9, 3.73973187260676*^9}, {3.7397359193259*^9,
3.739735968140768*^9}, {3.7397362191572313`*^9, 3.7397362194110603`*^9}, {
3.73973670931913*^9, 3.739736709713224*^9}, {3.739738015193675*^9,
3.7397380522022552`*^9}, {3.739738110404388*^9, 3.739738125963025*^9},
3.739738357811326*^9, {3.73990887064624*^9, 3.739908870939725*^9},
3.739908910955452*^9, {3.741295023524143*^9, 3.741295023675784*^9}, {
3.741361862055654*^9,
3.741361862258753*^9}},ExpressionUUID->"7a9ad380-711e-4096-b76f-\
58258e2a633e"],
Cell[BoxData[
TemplateBox[{GraphicsBox[{{}, {{{}, {}, {
Hue[0.67, 0.6, 0.6],
Directive[
PointSize[0.006944444444444445],
RGBColor[0.368417, 0.506779, 0.709798],
AbsoluteThickness[1.6],
Opacity[0.75],
Thickness[0.0075]],
LineBox[CompressedData["
1:eJxd2FlsVHUUx/G/4sqSNEAibvFCCBJBGS0iIsrf4oIidigiKtuVRZZaGRQK
uPEXwQ2FGkWJAblFVESQgmgRUC5IwgNqmhhiiA9eUaPxQZso+KAhas/3N8lc
Xk4+nG1OS+md6T1tXt3M051zq09z7v9of9pHdIRnP/f8ha/0OR3RPyNXdcR0
hdzT4vNyL4vl/EW5eVFHDOX6Puby/L7m5+R+uf39bX953mU5DzS/KF9h81bK
BZv3knxlLn+V5cuutnmr5MFW/7J8teXLHmL95fprch5qsTz/Wut/QR5m9d3l
68yzDuLhFncewNdbPEu+wWJ9ikdY3Lcfe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5Pia/Hgfyg3j+T/BBnFI/lfcTGfnv9f7iIctP4v1HZHZfYY+reb8S
U/+63s+Q/xMn5rQ3739SPBZn9Dfq/dG8jujX4ggfwB4fx7G5/P4umNP+OKH+
FpySn4Uzc1ih94cly2/AVeawB0fkv8IFs/sZe+rdQXORfA8ck++LS8wbjgP5
MbjJ7CfihHkNuIX+pTilfyVuo/5VnJHfhNvJb8Vuvs1rxVXmcAhHZv81LuDv
sKf/R1zEv+OYeSdxifwpHJh3Ju/vm3BnnNDfA7fgXjg1u964jXx/nDFvAG7H
A/V5wsPmIbjK7AbjyJwOxwU8Ans8EhfNoQbHzBuDS7gWB/qLup/+8bqf+nt1
P6/3Pt1P/TTdz7zZup/6Gbqf/Ezd/4jF6bofqz8yp/W63xwadD/5ku7POTb7
ebqf+XJgXqPup/5h3U+98i3MX6T78eO6n/oluj/n9tw8t8DiQt1vDo/qfvJP
6P4Flfu82T+m+3P5mLzmlZinfKA+6H72L9P95JfrfvyU7qde/W25/oz9qm+n
/0ndv9Ci6qsWVs6LzF4uYH2e6anX6ysyT/l4YeV9Jfr1eWagXp9XNjFPTujX
54Et1Ovzw5S8Pg9tw5qfYb2+9tzrdY3mp3W/OZUjrHsKjbn76df+Ita9sdlp
Xol+OeDy/fRrfpLb30Je9Sn9ureNffo8NWvM3Z97PW5R5b6qRZX1Eda/n8Ki
yn6P9XqKuPz9z9WXsL4+gf2a35Tbn1Cvr2+Lufz5d4q1v4169WfMX6r7ma/9
brFZPw9V5vLPZ2Quf78Kiyvv9ebyz1txceU9cW5+aXHl1yMwX6+3iX7dl5Av
f/+Zp/40t7+Nev28ZFj/PtrZ/5//BRWMNPI=
"]]}, {
Hue[0.9060679774997897, 0.6, 0.6],
Directive[
PointSize[0.006944444444444445],
RGBColor[0.880722, 0.611041, 0.142051],
AbsoluteThickness[1.6],
Opacity[0.75],
Thickness[0.0075]],
LineBox[CompressedData["
1:eJxd2H2wTHUYwPEfo9D4Y0mNwszJGAk1G+Ul5JfQ7U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aY+H/Xsr89ba1mv
jlmv+xXI1+j8s6S/7p/C+jw4EDudJy02eryW9cn8WI8vnFXcP4v1ebVjf3Wu
JB9hnSdf0t+XHH9tyfHH4uT5eIF8Mr9cxzt9Pp8SJ8+vA6z5dHXxPJa8OiNO
3t+wuni+LPWad+S1X666ZP7q4vnyOPn7VxfPV1uSj9lf368CXnXM/g8iPhxa
"]]}, {
Hue[0.1421359549995791, 0.6, 0.6],
Directive[
PointSize[0.006944444444444445],
RGBColor[0.560181, 0.691569, 0.194885],
AbsoluteThickness[1.6],
Opacity[0.75],
Thickness[0.0075]],
LineBox[CompressedData["
1:eJxd12/MlXMcx/Ff2Nw2s7PlQQ/aXDVawzgVSairQv7FEZFUrv4RUielGtEv
7lJpOv4lMS6E/ImD9B8/emI2djZN5tE1j7Wdh2w9sPq+v7edz3lwf/c639/3
9zn3fc59Xb8zbP6y6YvOCCFsGxTCqWqP7sRTP+OmozlPWN3s7jtd44BrVgfW
ny/rh5yu+YCHnq5pYH1mft49XOYvlP1HyPxImb9YfKnV9e7LrK5z1+31bXCP
st/vOfdo88B+Y2z/gfVXWO13X2n7bXSPtfVb3FfJ+nGy/9VWB+bH236D3dfY
fot/xNea9/+ArzOf455g88sSnmg1fY9zy1+AozmU3p9k/RrzEc/x/Saz3vvm
uMT7Uyw/eN8c+nz/661e8B19c7zhW/o3mNcfoY+X43CjebD3zWHRYfpTre48
RB//dpD+TTZ/Lo7mMOsA/ZutrsLRHOd5/xar/+6nb45LcbjV6u/76OMpONxm
9fA39M3xOA7TzAe9P43X5/3brX9sL31zmIrDHdbf+zV9c7gEh4bVCTg3x4t8
Pf7lK3Ni/Qwc7rTa+ZJ5c2zgiH9tM49P4DDd/BfO8Q4c8eU+bw5rv2D+Lqv9
nzOPt+9hHh/ECX+Nw91WR+Acz/2Medz/KfN41yfMz7B69GPmcYUj/hknPBOH
e6yWu5nHf37EPO7DCU/+kPl7rU7HOZ6CIz7+AfO4jsNMq2t2MY+PvM88Djjh
QTjcZ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