-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data and tutorial linked to manuscript
- Loading branch information
Showing
41 changed files
with
31,455 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
examples/Influenza_data/TempEst_analysis/Plot_root_tip_regression_Influenza.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# plot root-tip regression for several trees (Influenza dataset) | ||
#the original tree has 2063 leaves MRCA = 2010.9206 slope = 0.0027564 | ||
#the 0.99 tree has 1729 leaves 83.8% of original n of leaves MRCA = 2010.8562 slope = 0.0027231 | ||
#the 0.9 tree has 1245 leaves 60.3% of original n of leaves MRCA = 2010.7542 slope = 0.0026904 | ||
#the 0.75 tree has 844 leaves 40.9% of original leaves MRCA = 2010.6383 slope = 0.0026286 | ||
#the 0.5 tree has 430 leaves 20.8% of original n of leaves MRCA = 2010.6808 slope = 0.0027299 | ||
|
||
library(ggplot2) | ||
|
||
|
||
ROOT1 = read.table("root_to_tip_1",head=T) | ||
ROOT0.99 = read.table("root_to_tip_0.99",head=T) | ||
ROOT0.9 = read.table("root_to_tip_0.9",head=T) | ||
ROOT0.75 = read.table("root_to_tip_0.75",head=T) | ||
ROOT0.5 = read.table("root_to_tip_0.5",head=T) | ||
|
||
pdf("root_tip_regr.pdf") | ||
|
||
ggplot(ROOT1,aes(x=date,y=distance)) + xlab("Time") + ylab("Distance from root") + | ||
scale_y_continuous(expand = c(0, 0)) + | ||
theme(panel.background = element_rect(fill='white', colour='black')) + | ||
scale_x_continuous(limits = c(2009, 2018)) +coord_cartesian(ylim = c(0, 0.03))+ | ||
geom_point(color='black', size = 2)+ | ||
stat_smooth(method=lm, color ='black' ,fullrange = T,size = 0.3,level=0.99,fill='gray15')+ | ||
stat_smooth(method=lm,data=ROOT0.9, size = 0.3, aes(x=date,y=distance), color ='red',se=F, fullrange = T ) + | ||
stat_smooth(method=lm,data=ROOT0.75, size = 0.3, aes(x=date,y=distance), color ='green',se=F, fullrange = T ) + | ||
stat_smooth(method=lm,data=ROOT0.5, size = 0.3, aes(x=date,y=distance), color ='blue',se=F, fullrange = T ) + | ||
stat_smooth(method=lm,data=ROOT0.99, size = 0.3, aes(x=date,y=distance), color ='orange',se=F, fullrange = T ) | ||
dev.off() |
1 change: 1 addition & 0 deletions
1
examples/Influenza_data/TempEst_analysis/nextstrain_flu_h3n2_ha_12y_tree.new
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../Influenza_data/TempEst_analysis/nextstrain_flu_h3n2_ha_12y_tree.new_trimmed_tree_RTL_0.5
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...Influenza_data/TempEst_analysis/nextstrain_flu_h3n2_ha_12y_tree.new_trimmed_tree_RTL_0.75
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../Influenza_data/TempEst_analysis/nextstrain_flu_h3n2_ha_12y_tree.new_trimmed_tree_RTL_0.9
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...Influenza_data/TempEst_analysis/nextstrain_flu_h3n2_ha_12y_tree.new_trimmed_tree_RTL_0.99
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
431 changes: 431 additions & 0 deletions
431
examples/Influenza_data/TempEst_analysis/root_to_tip_0.5
Large diffs are not rendered by default.
Oops, something went wrong.
845 changes: 845 additions & 0 deletions
845
examples/Influenza_data/TempEst_analysis/root_to_tip_0.75
Large diffs are not rendered by default.
Oops, something went wrong.
1,246 changes: 1,246 additions & 0 deletions
1,246
examples/Influenza_data/TempEst_analysis/root_to_tip_0.9
Large diffs are not rendered by default.
Oops, something went wrong.
1,730 changes: 1,730 additions & 0 deletions
1,730
examples/Influenza_data/TempEst_analysis/root_to_tip_0.99
Large diffs are not rendered by default.
Oops, something went wrong.
2,064 changes: 2,064 additions & 0 deletions
2,064
examples/Influenza_data/TempEst_analysis/root_to_tip_1
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
examples/Influenza_data/nextstrain_flu_h3n2_ha_12y_timetree.new_+BL
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
examples/Influenza_data/nextstrain_flu_h3n2_ha_12y_timetree.new_+BL_res_100_LD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
0.998865940013 1980 | ||
0.992223203581 1880 | ||
0.980093768618 1780 | ||
0.964594528542 1680 | ||
0.942983503011 1580 | ||
0.919368390287 1480 | ||
0.892779410875 1380 | ||
0.865211597491 1280 | ||
0.833444024677 1180 | ||
0.796632323731 1080 | ||
0.761630151885 980 | ||
0.717102387953 880 | ||
0.669364209884 780 | ||
0.618294535771 680 | ||
0.559647792692 580 | ||
0.493484449775 480 | ||
0.415247560698 380 | ||
0.337576210292 280 | ||
0.237918528053 180 | ||
0.140643743423 99 | ||
0.0854739189395 56 | ||
0.0574035115182 30 | ||
0.0393586342788 16 | ||
0.0313735141439 9 | ||
0.0213840212255 5 | ||
0.0164555128084 3 |
209 changes: 209 additions & 0 deletions
209
examples/Influenza_data/nextstrain_flu_h3n2_ha_12y_timetree.new_+BL_res_10_LD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,209 @@ | ||
1.0 2070 | ||
1.0 2060 | ||
0.999991235966 2050 | ||
0.999970786552 2040 | ||
0.99993280907 2030 | ||
0.999886067554 2020 | ||
0.999694309389 2010 | ||
0.999439810681 2000 | ||
0.999184726861 1990 | ||
0.999006978731 1980 | ||
0.99847061709 1970 | ||
0.997866033328 1960 | ||
0.997579857953 1950 | ||
0.997124917873 1940 | ||
0.996604752369 1930 | ||
0.995709159092 1920 | ||
0.994824690901 1910 | ||
0.994136653682 1900 | ||
0.993318503757 1890 | ||
0.992506741546 1880 | ||
0.991339602505 1870 | ||
0.990270295143 1860 | ||
0.989267362813 1850 | ||
0.9881687528 1840 | ||
0.987082334255 1830 | ||
0.985599608779 1820 | ||
0.984530204745 1810 | ||
0.982890120117 1800 | ||
0.981876218699 1790 | ||
0.980397855954 1780 | ||
0.97846073778 1770 | ||
0.977031443299 1760 | ||
0.975143359136 1750 | ||
0.973073163323 1740 | ||
0.971188780125 1730 | ||
0.96965884962 1720 | ||
0.9679448339 1710 | ||
0.966597886375 1700 | ||
0.965145282702 1690 | ||
0.963471100282 1680 | ||
0.961460983114 1670 | ||
0.959223785101 1660 | ||
0.957112195257 1650 | ||
0.955126372354 1640 | ||
0.953516269597 1630 | ||
0.951770223613 1620 | ||
0.949284878017 1610 | ||
0.947529813768 1600 | ||
0.944814510852 1590 | ||
0.942398368109 1580 | ||
0.940205810113 1570 | ||
0.937627645706 1560 | ||
0.935679026001 1550 | ||
0.934307378529 1540 | ||
0.932823944871 1530 | ||
0.930527645819 1520 | ||
0.928302424056 1510 | ||
0.925809638227 1500 | ||
0.923888165468 1490 | ||
0.921725746082 1480 | ||
0.918870469367 1470 | ||
0.916407906281 1460 | ||
0.913315029171 1450 | ||
0.910641155711 1440 | ||
0.907842568567 1430 | ||
0.904766846921 1420 | ||
0.901844901104 1410 | ||
0.899109047354 1400 | ||
0.89650477816 1390 | ||
0.894253571542 1380 | ||
0.890645730125 1370 | ||
0.887899832075 1360 | ||
0.885410072852 1350 | ||
0.883429625069 1340 | ||
0.880075348396 1330 | ||
0.877399518339 1320 | ||
0.874533385108 1310 | ||
0.872188050443 1300 | ||
0.868958957691 1290 | ||
0.865923059848 1280 | ||
0.861913211685 1270 | ||
0.858376268296 1260 | ||
0.855789672392 1250 | ||
0.851688298968 1240 | ||
0.848357449498 1230 | ||
0.845612806372 1220 | ||
0.842179293964 1210 | ||
0.838340620554 1200 | ||
0.835188945865 1190 | ||
0.832098566759 1180 | ||
0.82937600895 1170 | ||
0.825737392819 1160 | ||
0.823662889121 1150 | ||
0.820306857944 1140 | ||
0.817373138291 1130 | ||
0.813897059195 1120 | ||
0.810627539346 1110 | ||
0.806941879625 1100 | ||
0.803198620377 1090 | ||
0.799005269061 1080 | ||
0.795099549817 1070 | ||
0.792235033764 1060 | ||
0.788763752956 1050 | ||
0.784422160132 1040 | ||
0.781762915985 1030 | ||
0.777591427939 1020 | ||
0.773446675717 1010 | ||
0.770209738649 1000 | ||
0.76632769626 990 | ||
0.762423261443 980 | ||
0.759246817665 970 | ||
0.75547866758 960 | ||
0.751460099184 950 | ||
0.746462881199 940 | ||
0.741925423137 930 | ||
0.737320328078 920 | ||
0.732563792686 910 | ||
0.728350249856 900 | ||
0.724397339666 890 | ||
0.721557708688 880 | ||
0.717835498786 870 | ||
0.713805941456 860 | ||
0.710118967271 850 | ||
0.705795829437 840 | ||
0.70055520806 830 | ||
0.695268483459 820 | ||
0.692116376307 810 | ||
0.687948981035 800 | ||
0.683313344726 790 | ||
0.679891669107 780 | ||
0.674662810789 770 | ||
0.668793844149 760 | ||
0.6648073963 750 | ||
0.65968016815 740 | ||
0.655124065561 730 | ||
0.649974523751 720 | ||
0.643887913538 710 | ||
0.639965134968 700 | ||
0.633859333948 690 | ||
0.62903428081 680 | ||
0.623628900859 670 | ||
0.617082570897 660 | ||
0.612066648985 650 | ||
0.605571392273 640 | ||
0.599811064852 630 | ||
0.594386844183 620 | ||
0.588028009368 610 | ||
0.580609288777 600 | ||
0.575408344381 590 | ||
0.570369696192 580 | ||
0.565066734192 570 | ||
0.559238938682 560 | ||
0.552889525881 550 | ||
0.5464950486 540 | ||
0.540624469157 530 | ||
0.536666552076 520 | ||
0.528158741118 510 | ||
0.522613540849 500 | ||
0.515754715667 490 | ||
0.507774606585 480 | ||
0.503210130152 470 | ||
0.496590848091 460 | ||
0.492761600036 450 | ||
0.488884868992 440 | ||
0.481924114234 430 | ||
0.476370166801 420 | ||
0.469814824615 410 | ||
0.460684106682 400 | ||
0.45447015962 390 | ||
0.447585172137 380 | ||
0.440728400544 370 | ||
0.432847529339 360 | ||
0.4236947581 350 | ||
0.416812437958 340 | ||
0.408363485292 330 | ||
0.400304738967 320 | ||
0.39209067945 310 | ||
0.384266355718 300 | ||
0.373724855487 290 | ||
0.363354333818 280 | ||
0.353597229674 270 | ||
0.345928518861 260 | ||
0.337631583145 250 | ||
0.329900173723 240 | ||
0.32284899057 230 | ||
0.312108569899 220 | ||
0.301951736111 210 | ||
0.291994094456 200 | ||
0.280728361183 190 | ||
0.271548008185 180 | ||
0.26100884153 170 | ||
0.253047671653 160 | ||
0.242007087168 150 | ||
0.231168742948 140 | ||
0.221261850542 130 | ||
0.207483503726 120 | ||
0.195190368333 110 | ||
0.184636078888 100 | ||
0.168529652746 90 | ||
0.153747068846 80 | ||
0.143754611625 70 | ||
0.127343416832 60 | ||
0.113825032941 50 | ||
0.0960014890347 40 | ||
0.0805575066408 30 | ||
0.0572739124443 20 | ||
0.0381228632856 11 | ||
0.0269350207669 5 | ||
0.0208513108681 3 |
Oops, something went wrong.