####Run through this example and try to understand what is going on with the data

####So, lets load RMarkdown

library(rmarkdown)

set messages to FALSE on everything (prevents certain boring things from being shown in the results)

knitr::opts_chunk$set(echo = FALSE, message=FALSE,warning=FALSE,collapse =FALSE)

PACKAGES

COLORS

LOAD DATA AND MAKE AN OVERALL HEATMAP

now let’s visualize the dataset and look for initial trends. We can do this by making a matrix so and then a heatmap to visualize the data

##      log_MCF7 log_MDA231 log_MDA468 log_SKBR3
## [1,]    -0.43       1.90      -0.74         0
## [2,]    -0.96      -0.35      -0.71         0
## [3,]     0.27       0.29      -0.04         0
## [4,]     0.88       0.78      -0.05         0
## [5,]     0.79       1.19       0.92         0
## [6,]    -0.79      -0.90      -1.28         0

Data Manipulation

##  [1] "Gene_Symbol"             "Description"            
##  [3] "Peptides"                "MCF10A_1"               
##  [5] "MCF10A_2"                "MCF7_1"                 
##  [7] "MCF7_2"                  "MDA231_1"               
##  [9] "MDA231_2"                "MDA468_1"               
## [11] "MDA468_2"                "SKBR3_1"                
## [13] "SKBR3_2"                 "pvalue_MCF7_vs_MCF10A"  
## [15] "pvalue_MDA231_vs_MCF10A" "pvalue_MDA468_vs_MCF10A"
## [17] "pvalue_SKBR3_vs_MCF10A"  "mean_MCF10A"            
## [19] "mean_MCF7"               "mean_MDA231"            
## [21] "mean_MDA468"             "mean_SKBR3"             
## [23] "log_MCF7"                "log_MDA231"             
## [25] "log_MDA468"              "log_SKBR3"

Diving deeping with VOLCANO PLOTS

Barplots of significant points of interest

EXAMPLES OF A COUPLE PROTEINS or GENES

## # A tibble: 6 × 7
##   Gene_Symbol Description              Peptides MCF10A_1 MCF10A_2 variable value
##   <chr>       <chr>                       <dbl>    <dbl>    <dbl> <chr>    <dbl>
## 1 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MCF7_1    5.07
## 2 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MCF7_2    5.42
## 3 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MDA231_1 25.4 
## 4 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MDA231_2 27.4 
## 5 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MDA468_1  4.56
## 6 NES         Nestin OS=Homo sapiens …        7     9.54     4.58 MDA468_2  3.88

##INTERPRETATION## ## What can you see in this figure? are the repeated measures/reps similar or different? What does this say about the precision and accuracy of them? ##How does the control compare to the variables? Is this what you might expect? Why? What would you look for in the literature to support this idea?

##INTERPRETATION## ## What can you see in this figure? are the repeated measures/reps similar or different? What does this say about the precision and accuracy of them? ##How does the control compare to the variables? Is this what you might expect? Why? What would you look for in the literature to support this idea?

#interpretation HINT:insert a chunk and create two seprate lines of code that filter for your specific upregulated genes/proteins of interest and selects for only their gene symbols and descriptions. Do this for the downregulated as well. This will generate two list of the descriptors for each gene of interest, helping you understand your figures. Be sure to view it, not just ask for the head of the table generated.

WRAP UP

##now you can knit this and publish to save and share your code. Use this to work with either the brain or breast cells and the Part_C_template to complete your lab 6 ELN. ##Annotate when you have trouble and reference which line of code you need help on ## good luck and have fun!