Skip to content

Commit

Permalink
update time_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
JMHumphreys committed Aug 10, 2024
1 parent 10bdad3 commit d1ec77d
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 53 deletions.
2 changes: 1 addition & 1 deletion R/plot_time_tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ plot_time_tree <- function(tree, stats, legend_pos = c(0.3, 0.7)) {
legend.key.width = unit(3,"line"),
legend.text = element_text(size=20, face="bold"),
legend.title = element_text(size=25, face="bold"),
plot.margin = unit(c(1,8,1,1), "mm"))
plot.margin = unit(c(1,8,1,0.1), "mm"))

return(p)
}
23 changes: 22 additions & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

83 changes: 39 additions & 44 deletions docs/time_tree.html

Large diffs are not rendered by default.

Binary file modified docs/time_tree_files/figure-html/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/time_tree_files/figure-html/unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/time_tree_files/figure-html/unnamed-chunk-5-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/time_tree_files/figure-html/unnamed-chunk-7-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/time_tree_files/figure-html/unnamed-chunk-8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions time_tree.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ source_dir(here("R"))
```

## Time Calibrated Phylogenies


### Serotype A
## Serotype A
Check tree model statistics the *get_tracer_stats()* function calculates similar summary statistics as the Tracer software typically used with BEAST.
```{r message=FALSE, warning=FALSE}
check_stats <- get_tracer_stats(here("local/beast/a_1/As_rev.log"))
Expand Down Expand Up @@ -109,11 +107,11 @@ plot_time_tree(sero_A.tree, check_stats)
FMDV Effective Population Size
Trees were run using several different clock and prior choices, all showed flat-line Ne. The one here was the simplest, coalescent with contant population size.
```{r fig.width=8, fig.height=6, warning=FALSE, message=FALSE}
phylodynamic_process(sero_A.tree, check_stats, x_limits = c("2009-01-01", "2017-01-01"))
phylodynamic_process(sero_A.tree, check_stats, x_limits = c("2011-01-01", "2013-01-01"))
```


### Serotype Asia1
## Serotype Asia1
```{r}
check_stats <- get_tracer_stats(here("local/beast/asia1_1/Asia1s.log"))
Expand Down Expand Up @@ -152,7 +150,7 @@ Flat Ne, like the other serotypes
phylodynamic_process(sero_Asia1.tree, check_stats, x_limits = c("2011-01-01", "2013-01-01"))
```

### Serotype O
## Serotype O
```{r}
check_stats <- get_tracer_stats(here("local/beast/o_1/sero_0.log"))
Expand Down

0 comments on commit d1ec77d

Please sign in to comment.