Skip to content

Commit

Permalink
Change figures
Browse files Browse the repository at this point in the history
  • Loading branch information
laduplessis committed Feb 1, 2017
1 parent 134e28e commit f5dfeac
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 52 deletions.
78 changes: 65 additions & 13 deletions README.md
Expand Up @@ -42,12 +42,20 @@ Bacter Package Installation
Bacter is easily installed via the BEAUti package manager. To do this, Bacter is easily installed via the BEAUti package manager. To do this,
run BEAUti and select "Manage Packages" from the File menu: run BEAUti and select "Manage Packages" from the File menu:


![image](figures/beauti.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/beauti.png">
<figcaption></figcaption>
</figure>


Then, ensure the "bacter" package is highlighted before pressing the Then, ensure the "bacter" package is highlighted before pressing the
"Install/Upgrade" button: "Install/Upgrade" button:


![image](figures/package_manager.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/package_manager.png">
<figcaption></figcaption>
</figure>


That's it! Bacter is now installed. It is a good idea to restart BEAUti That's it! Bacter is now installed. It is a good idea to restart BEAUti
at this point. at this point.
Expand All @@ -63,7 +71,11 @@ Open the BEAUti program. Before doing anything else we must switch to
the Bacter template. To do this, open the file menu and from the the Bacter template. To do this, open the file menu and from the
Template submenu select "Bacter". Template submenu select "Bacter".


![image](figures/template.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/template.png">
<figcaption></figcaption>
</figure>


Loading sequence alignments Loading sequence alignments
--------------------------- ---------------------------
Expand All @@ -80,7 +92,11 @@ to the directory containing the tutorial data. This directory contains
the directory contains only these files and nothing else, we can select the directory contains only these files and nothing else, we can select
them all simply using Ctrl+A (or Command+A on a Mac). them all simply using Ctrl+A (or Command+A on a Mac).


![image](figures/load_alignments.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/load_alignments.png">
<figcaption></figcaption>
</figure>


After pressing Open, the alignments should be visible as 12 new records After pressing Open, the alignments should be visible as 12 new records
in the table. By default, each locus is assumed to have its own distinct in the table. By default, each locus is assumed to have its own distinct
Expand All @@ -95,7 +111,11 @@ right-hand side just above the table. In our case, we will use shared
site and clock models too, so click the "Link Site Models" and "Link site and clock models too, so click the "Link Site Models" and "Link
Clock Models" buttons as well. Clock Models" buttons as well.


![image](figures/link_models.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/link_models.png">
<figcaption></figcaption>
</figure>


Defining the model Defining the model
------------------ ------------------
Expand All @@ -114,7 +134,11 @@ transition/transversion rates and non-equal equilibrium base frequencies.
Leave the default initial value for kappa and the base frequencies as "estimated". Leave the default initial value for kappa and the base frequencies as "estimated".
The site model panel should now look similar to the following: The site model panel should now look similar to the following:


![image](figures/site_model.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/site_model.png">
<figcaption></figcaption>
</figure>


Again, because the data was sampled contemporaneously and we have no relevant Again, because the data was sampled contemporaneously and we have no relevant
calibration information, we will ignore the Clock Model panel. By doing this, calibration information, we will ignore the Clock Model panel. By doing this,
Expand All @@ -139,7 +163,11 @@ parameters, with parameters M=0 and S=2.


The priors panel should now look similar to the following: The priors panel should now look similar to the following:


![image](figures/priors.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/priors.png">
<figcaption></figcaption>
</figure>


Finally, switch to the MCMC panel and change the chain length to Finally, switch to the MCMC panel and change the chain length to
1000000 (i.e. 10^6). This is far too short for a production run, 1000000 (i.e. 10^6). This is far too short for a production run,
Expand All @@ -150,7 +178,11 @@ section by clicking on the arrow to the left of this line, then set the
"Log Every" field to 1000. The MCMC panel should now look similar to the "Log Every" field to 1000. The MCMC panel should now look similar to the
following: following:


![image](figures/mcmc_settings.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/mcmc_settings.png">
<figcaption></figcaption>
</figure>


Once your analysis is set up, select File-&gt;Save, navigate to the Once your analysis is set up, select File-&gt;Save, navigate to the
directory you wish the analysis XML to be written to, give it a sensible directory you wish the analysis XML to be written to, give it a sensible
Expand Down Expand Up @@ -201,7 +233,11 @@ log file. (To do this, select "Import trace file" from the File menu or click th
Shown below is the marginal posterior for the number of conversions ancestral to Shown below is the marginal posterior for the number of conversions ancestral to
our data. our data.


![image](figures/tracer.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/tracer.png">
<figcaption></figcaption>
</figure>


Note that the ESS for many parameters may still be extremely small after 10^6 Note that the ESS for many parameters may still be extremely small after 10^6
iterations. This indicates that, as anticipated, the chain should be run for a iterations. This indicates that, as anticipated, the chain should be run for a
Expand Down Expand Up @@ -235,7 +271,11 @@ image below, edges were coloured by locus (Style-&gt;"Colour edges by"),
the colouring legend and the time axis were switched on the colouring legend and the time axis were switched on
(Style-&gt;"Display legend" and Style-&gt;"Display axis"). (Style-&gt;"Display legend" and Style-&gt;"Display axis").


![image](figures/icytree.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/icytree.png">
<figcaption></figcaption>
</figure>


ARGs are displayed in IcyTree in a particular way. The solid lines ARGs are displayed in IcyTree in a particular way. The solid lines
depict lineages belonging to the clonal frame, while dashed edges depict lineages belonging to the clonal frame, while dashed edges
Expand Down Expand Up @@ -273,7 +313,11 @@ To produce a summary ARG, open the "AppStore" program that is
distributed with BEAST 2. (You can also select "Launch Apps" from the File menu distributed with BEAST 2. (You can also select "Launch Apps" from the File menu
in BEAUti.) in BEAUti.)


![image](figures/appstore.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/appstore.png">
<figcaption></figcaption>
</figure>


Ensure the ACGAnnotator icon is highlighted, then press the Launch button. Ensure the ACGAnnotator icon is highlighted, then press the Launch button.
This will open a dialog box from which you can select the ACG (tree) log This will open a dialog box from which you can select the ACG (tree) log
Expand All @@ -299,7 +343,11 @@ that conversions will only have to appear in 20% of the sampled ARGs to
be included in the summary. The dialog box should now look like the be included in the summary. The dialog box should now look like the
following image: following image:


![image](figures/acgannotator.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/acgannotator.png">
<figcaption></figcaption>
</figure>


Pressing the "Analyze" button will bring up an additional window which Pressing the "Analyze" button will bring up an additional window which
will report on the progress of creating the summary tree. As there are will report on the progress of creating the summary tree. As there are
Expand All @@ -312,7 +360,11 @@ the following figure. (Edges have been coloured by "locus", and labelled with
their posterior support. Error bars indicating the 95% HPD intervals their posterior support. Error bars indicating the 95% HPD intervals
for the age of each ancestral event have also been included.) for the age of each ancestral event have also been included.)


![image](figures/summary.png){width=80%} <figure>
<!--a id="fig:treeannot"></a-->
<img style="width:80%;" src="figures/summary.png">
<figcaption></figcaption>
</figure>


This summary suggests that our E. coli dataset only has evidence for one or two This summary suggests that our E. coli dataset only has evidence for one or two
conversions: one on the rplA gene with ~60% support and one on the rplO gene conversions: one on the rplA gene with ~60% support and one on the rplO gene
Expand Down
78 changes: 39 additions & 39 deletions main.tex
Expand Up @@ -82,18 +82,18 @@ \subsection{Bacter Package
run BEAUti and select ``Manage Packages'' from the File menu: run BEAUti and select ``Manage Packages'' from the File menu:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/beauti.png} \includegraphics[width=0.800000\textwidth]{figures/beauti.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Then, ensure the ``bacter'' package is highlighted before pressing the Then, ensure the ``bacter'' package is highlighted before pressing the
``Install/Upgrade'' button: ``Install/Upgrade'' button:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/package_manager.png} \includegraphics[width=0.800000\textwidth]{figures/package_manager.png}
\caption{image} \caption{}
\end{figure} \end{figure}


That's it! Bacter is now installed. It is a good idea to restart BEAUti That's it! Bacter is now installed. It is a good idea to restart BEAUti
Expand All @@ -109,9 +109,9 @@ \subsection{Choosing the Bacter BEAUti
Template submenu select ``Bacter''. Template submenu select ``Bacter''.


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/template.png} \includegraphics[width=0.800000\textwidth]{figures/template.png}
\caption{image} \caption{}
\end{figure} \end{figure}


\subsection{Loading sequence \subsection{Loading sequence
Expand All @@ -132,9 +132,9 @@ \subsection{Loading sequence
can select them all simply using Ctrl+A (or Command+A on a Mac). can select them all simply using Ctrl+A (or Command+A on a Mac).


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/load_alignments.png} \includegraphics[width=0.800000\textwidth]{figures/load_alignments.png}
\caption{image} \caption{}
\end{figure} \end{figure}


After pressing Open, the alignments should be visible as 12 new records After pressing Open, the alignments should be visible as 12 new records
Expand All @@ -151,9 +151,9 @@ \subsection{Loading sequence
and ``Link Clock Models'' buttons as well. and ``Link Clock Models'' buttons as well.


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/link_models.png} \includegraphics[width=0.800000\textwidth]{figures/link_models.png}
\caption{image} \caption{}
\end{figure} \end{figure}


\subsection{Defining the model}\label{defining-the-model} \subsection{Defining the model}\label{defining-the-model}
Expand All @@ -174,9 +174,9 @@ \subsection{Defining the model}\label{defining-the-model}
similar to the following: similar to the following:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/site_model.png} \includegraphics[width=0.800000\textwidth]{figures/site_model.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Again, because the data was sampled contemporaneously and we have no Again, because the data was sampled contemporaneously and we have no
Expand All @@ -203,9 +203,9 @@ \subsection{Defining the model}\label{defining-the-model}
The priors panel should now look similar to the following: The priors panel should now look similar to the following:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/priors.png} \includegraphics[width=0.800000\textwidth]{figures/priors.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Finally, switch to the MCMC panel and change the chain length to 1000000 Finally, switch to the MCMC panel and change the chain length to 1000000
Expand All @@ -218,9 +218,9 @@ \subsection{Defining the model}\label{defining-the-model}
the following: the following:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/mcmc_settings.png} \includegraphics[width=0.800000\textwidth]{figures/mcmc_settings.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Once your analysis is set up, select File-\textgreater{}Save, navigate Once your analysis is set up, select File-\textgreater{}Save, navigate
Expand Down Expand Up @@ -284,9 +284,9 @@ \subsection{Parameter posteriors}\label{parameter-posteriors}
marginal posterior for the number of conversions ancestral to our data. marginal posterior for the number of conversions ancestral to our data.


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/tracer.png} \includegraphics[width=0.800000\textwidth]{figures/tracer.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Note that the ESS for many parameters may still be extremely small after Note that the ESS for many parameters may still be extremely small after
Expand Down Expand Up @@ -324,9 +324,9 @@ \subsection{Viewing sampled ARGs}\label{viewing-sampled-args}
Style-\textgreater{}``Display axis''). Style-\textgreater{}``Display axis'').


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/icytree.png} \includegraphics[width=0.800000\textwidth]{figures/icytree.png}
\caption{image} \caption{}
\end{figure} \end{figure}


ARGs are displayed in IcyTree in a particular way. The solid lines ARGs are displayed in IcyTree in a particular way. The solid lines
Expand Down Expand Up @@ -367,9 +367,9 @@ \subsection{Creating a summary ARG}\label{creating-a-summary-arg}
File menu in BEAUti.) File menu in BEAUti.)


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/appstore.png} \includegraphics[width=0.800000\textwidth]{figures/appstore.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Ensure the ACGAnnotator icon is highlighted, then press the Launch Ensure the ACGAnnotator icon is highlighted, then press the Launch
Expand Down Expand Up @@ -404,9 +404,9 @@ \subsection{Creating a summary ARG}\label{creating-a-summary-arg}
following image: following image:


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/acgannotator.png} \includegraphics[width=0.800000\textwidth]{figures/acgannotator.png}
\caption{image} \caption{}
\end{figure} \end{figure}


Pressing the ``Analyze'' button will bring up an additional window which Pressing the ``Analyze'' button will bring up an additional window which
Expand All @@ -422,9 +422,9 @@ \subsection{Creating a summary ARG}\label{creating-a-summary-arg}
included.) included.)


\begin{figure} \begin{figure}
\centering \centering
\includegraphics[width=0.80000\textwidth]{figures/summary.png} \includegraphics[width=0.800000\textwidth]{figures/summary.png}
\caption{image} \caption{}
\end{figure} \end{figure}


This summary suggests that our E. coli dataset only has evidence for one This summary suggests that our E. coli dataset only has evidence for one
Expand Down

0 comments on commit f5dfeac

Please sign in to comment.