Skip to content

Commit

Permalink
add sketch introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
widdowquinn committed Mar 15, 2024
1 parent eaea1d2 commit 5606c68
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ book:

chapters:
- index.qmd
# - intro.qmd
- intro.qmd
# - part: part-01_16s.qmd
# chapters:
# - exercise-01_16s.qmd
Expand Down
Binary file added assets/images/bing_tree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/trees/tree_newick.nwk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(((((((A:4,B:4):6,C:5):8,D:6):3,E:21):10,((F:4,G:12):14,H:8):13):13,((I:5,J:2):30,(K:11,L:11):2):17):4,M:56);
39 changes: 33 additions & 6 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
# Preface {.unnumbered}
# Preface to {{< var ay >}} BM211 Workshop 5: Phylogenetic Trees {.unnumbered}

This is a Quarto book.
Welcome to the BM211 (Introduction to Microbiology) workshop on phylogenetic trees, for {{< var ay >}}.

To learn more about Quarto books visit <https://quarto.org/docs/books>.
This year is the first presentation of the workshop material in this format, and we would be very grateful to hear feedback [by email](mailto:{{< var admin.email >}}) or through the [GitHub repository Issues page]({{< var github.issues >}}).

## Overview

This workshop asks you to work through some computational exercises to gain some practice visualising and working with phylogenetic trees.

::: { .callout-note }
Phylogenetic trees are typically constructed _after_ sequence alignment has been performed. You learned about the fundamentals of (pairwise) sequence alignment in BM214 Workshop 2 - [slides](https://classes.myplace.strath.ac.uk/mod/resource/view.php?id=1956504), [workshop](https://sipbs-compbiol.github.io/BM214-Workshop-2/). You may find it useful to refresh your memory about pairwise alignment.
:::

::: { .callout-tip }
We also provide an ["`R` playground"](playground.qmd) if you would like to get further practice interacting with and plotting data in `R`.
:::

::: { .callout-warning title="Important Note" }
There is new material in this workshop that is not covered in lectures, and this material is examinable. Please take care to reach the text in the expandable callout boxes, as well as that for the workshop activities, to be sure you have understood the topic and obtain full value from the exercises.
:::

## Learning Objectives

By the end of this workshop, students will be able to:

[**FILL IN TEXT HERE**]

## Assessment

The workshop is not formally assessed although, as noted above, all the material contained in the workshop is examinable. [**FILL IN TEXT HERE**]

::: { .callout-important }
There are three formative exercises, one for each exercise in the workshop, and they can be found on the workshop [MyPlace page]({{< var myplace.bm211 >}}). You should complete these as part of the workshop.
:::

```{r}
1 + 1
```
31 changes: 27 additions & 4 deletions intro.qmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
# Introduction

This is a book created from markdown and executable code.
## Working with phylogenetic trees

See @knuth84 for additional discussion of literate programming.
When you use a software tool to build, or you otherwise acquire, phylogenetic tree data it will be in one of a number of file formats, such as:

```{r}
1 + 1
- [`newick`](https://en.wikipedia.org/wiki/Newick_format)
- [`NEXUS`](https://en.wikipedia.org/wiki/Nexus_file)
- [`phylip`](https://en.wikipedia.org/wiki/PHYLIP)

These files can be cryptic to read, as a human. For example, the first `newick` format file we will work with has these contents:

```text
(((((((A:4,B:4):6,C:5):8,D:6):3,E:21):10,((F:4,G:12):14,H:8):13):13,((I:5,J:2):30,(K:11,L:11):2):17):4,M:56);
```

It is difficult, as a human, to read a file like this and understand the structure of the tree it describes, so we almost always use computational tools to open these files and visualise the trees they represent.

![A genAI representation of "phylogenetic tree as a real tree."](assets/images/bing_tree.jpg){#fig-bing-tree width=80%}

### Why we are using `R`

A number of software packages are available to visualise, edit, and refine phylogenetic tree files for reports and publications. Some of these can be downloaded and run on your own computer, such as:

- [`figtree`]() _this is the one I use most often - LP_
- [`dendroscope`]()

but the [interactive Tree of Life (iTol)](https://itol.embl.de/) service allows you, once you register and sign in, to edit trees directly in the browser. Traditionally, phylogenetic trees have been visualised using independent software tools like these.

In this workshop we will be using `R` with the `ggtree` package to visualise and interpret trees. The `R` software ecosystem is a very powerful tool for computational biology and bioinformatics work, encompassing sequence analysis and genomics, transcriptomic and evolutionary analyses, with excellent visualisation capabilities. As `R` is also a programming language, large parts of the analysis can be automated and made reproducible, which is an advantage over independent tools, and a factor in the growing popularity of this approach. Basic competence and skills in `R` are in high demand in academia and industry.


0 comments on commit 5606c68

Please sign in to comment.