@@ -117,10 +117,10 @@ using [Freyja](https://github.com/andersen-lab/Freyja).
117117![ Estimated lineage admixture of each sample.
118118Samples in the X-axis are ordered chronologically, from more ancient to newer.] (` r params$freyja ` ){#fig-freyja}
119119
120- ### Phylogeny and temporal signal
120+ ### Phylogenetic reconstruction
121121
122122A maximum likelihood tree of the target and context samples has been
123- build using [ IQTREE] ( http://www.iqtree.org/ ) .
123+ built using [ IQTREE] ( http://www.iqtree.org/ ) .
124124The target samples ` r stats[["monophyly"]] ` monophyletic. The clade
125125that contains all the target samples is supported by a ** UFBoot** score of
126126$` r stats[["boot"]] ` $% and a ** SH-aLRT** score of $` r stats[["alrt"]] ` $% (@fig -tree_ml).
@@ -129,22 +129,6 @@ $`r stats[["boot"]]`$% and a **SH-aLRT** score of $`r stats[["alrt"]]`$% (@fig-t
129129target datasets and their context samples. The clade that contains the target
130130samples is squared in red.] (` r params$tree_ml ` ){#fig-tree_ml}
131131
132- A neighbor-joining tree has been constructed using pairwise distances
133- between target samples (@fig-tree ), based on the allele frequencies measured from
134- read mappings.
135-
136- ![ Neighbor-joining tree based on the pairwise allele
137- frequency-weighted distances.] (` r params$tree ` ){#fig-tree}
138-
139- Root-to-tip distances measured on this tree have been correlated
140- with time, obtaining a $R^2$ of ** ` r correlation ` ** and a p-value of
141- $` r p_value_lm ` $. The estimated substitution rate is ** ` r sub_rate ` **
142- substitutions per year (@fig-tempest ).
143-
144- ![ Scatterplot depicting the relationship between root-to-tip
145- distances and the number of days passed since the first sample. The red
146- line shows the linear model fit.] (` r params$tempest ` ){#fig-tempest}
147-
148132### Nucleotide diversity comparison
149133
150134Nucleotide diversity (π) has been calculated for $` r div_values[["boot.reps"]] ` $ random
@@ -206,7 +190,7 @@ at the bottom, and the latest, at the top.](`r params$SNV_s`){#fig-SNV_s}
206190
207191:::
208192
209- ### Time dependency for the intra-host nucleotide variants
193+ ### Temporal signal of the intra-host mutations
210194
211195The correlation of the allele frequency of each NV with the time since the
212196initial sampling has been calculated (@fig-volcano ).
@@ -223,6 +207,22 @@ nucleotide variants with a significant correlation with time and sites with more
223207than two possible states. Each subplot depicts the progression of the allele
224208frequencies in time for a given genome position.] (` r params$panel ` ){#fig-panel}
225209
210+ A neighbor-joining tree has been constructed using pairwise distances
211+ between target samples (@fig-tree ), based on the allele frequencies measured from
212+ read mappings.
213+
214+ ![ Neighbor-joining tree based on the pairwise allele
215+ frequency-weighted distances.] (` r params$tree ` ){#fig-tree}
216+
217+ To estimate the substitution rate, root-to-tip distances measured on the previous
218+ tree (@fig-tree ) have been correlated with time, obtaining a $R^2$ of
219+ ** ` r correlation ` ** and a p-value of $` r p_value_lm ` $. The estimated substitution
220+ rate is ** ` r sub_rate ` ** substitutions per year (@fig-tempest ).
221+
222+ ![ Scatterplot depicting the relationship between root-to-tip
223+ distances and the number of days passed since the first sample. The red
224+ line shows the linear model fit.] (` r params$tempest ` ){#fig-tempest}
225+
226226### Correlation between alternative alleles
227227
228228To detect possible interactions between mutations, pairwise correlation between allele
0 commit comments