2.2.5 Loading and comparing data

In this control, you are going to do, by yourselves, repeat the analyses we did in the last classes.

The information you need to do the exam is in the text, read it attentively. You can look at the pages of the previous lessons if you want.

1 Getting your sequence

Take your first name and last name first letters and look the list below. Choose the two sequences corresponding to these two letters.

2 Using paper

Ask the teacher for two DNA strands. You will create the dot plot such as the one below, but using your own two sequences.

3 Using the computer

3.1 Loading the library

In order to use the seqinr library to load and process gene sequence data, run the following command in the console:

library(seqinr)

How to know it worked: RStudio will accept your command, and not produce any errors. The line after the command will be just empty.

3.2 Creating a dot plot

Coming back to the DNA strands you compared on paper. Save your personal DNA sequences in R:

dna1 <- s2c("actcgctgc")
dna2 <- s2c("cgctgcact")

and use dotPlot to build the dot plot. For example, dotPlot(dna1,dna2.

4 Sending the results

Take a photo of the computer screen and of the paper you wrote and send me.