Matthew K. Oki Individual Journal 15
Week 15 Individual Journal
Purpose
The dSWI4 strain from the Dahlquist Lab was analyzed to find information about the effect of cold shock and recovery on genes of the strain. This was compared/contrasted to the strain studied by Hebley et al. (2014).
Methods & Results
Experimental Design
There were four timepoints in the experiment that were competitively hybridized with the t0 sample:
- t30 (cold shock)
- t60 (cold shock)
- t90 (recovery)
- t120 (recovery)
Each timepoint has 4 independent replicates.
Within-strain ANOVA
The purpose of the within-stain ANOVA test is to determine if any genes had a gene expression change that was significantly different than zero at any timepoint.
- Create a new worksheet, naming it "(dSWI4)_ANOVA".
- Copy over all columns from the "Master Sheet" to the new worksheet.
- At the top of the first column to the right of your data, create five column headers of the form dSWI4_AvgLogFC_(TIME) where (TIME) is 30, 60, etc.
- In the cell below the dSWI4_AvgLogFC_t30 header, type =AVERAGE(t30 range)
- Then highlight all the data in row 2 associated with dSWI and t30, and press enter.
- This cell now contains the average of the log fold change data from the first gene at t=30 minutes.
- Click on this cell and position your cursor at the bottom right corner. You should see your cursor change to a thin black plus sign (not a chubby white one). When it does, double click, and the formula will magically be copied to the entire column of 6189 other genes. Some of the cells contained no numbers. So, the cursor had to dragged to the bottom of the page.
- Repeat steps (4) through (8) with the t60, t90, and the t120 data.
- Now in the first empty column to the right of the dSWI4_AvgLogFC_t120 calculation, create the column header dSWI4_ss_HO.
- In the first cell below this header, type
=SUMSQ()
- Highlight all the LogFC data in row 2 for your dSWI4 (but not the AvgLogFC), and press the "enter" key.
- In the next empty column to the right of dSWI4_ss_HO, create the column headers dSWI4_ss_(TIME) as in (3).
- Make a note of how many data points you have at each time point for your strain. For all of the strains, it will be 4. Also, make a note of the total number of data points. For dSWI4, this will be 16
- In the first cell below the header dSWI4_ss_t30, type
=SUMSQ(<range of cells for logFC_t30>)-<number of data points>*<AvgLogFC_t30>^2
and hit enter.- The phrase <range of cells for logFC_t30> should be replaced by the data range associated with t30.
- The phrase <number of data points> should be replaced by the number of data points for that timepoint (4).
- The phrase <AvgLogFC_t30> should be replaced by the cell number in which you computed the AvgLogFC for t30, and the "^2" squares that value.
- Upon completion of this single computation, use the Step (7) trick to copy the formula throughout the column.
- Repeat this computation for the t60 through t120 data points. Again, be sure to get the data for each time point, type the right number of data points, and get the average from the appropriate cell for each time point, and copy the formula to the whole column for each computation.
- In the first column to the right of dSWI4_ss_t120, create the column header dSWI4_SS_full.
- In the first row below this header, type
=sum(<range of cells containing "ss" for each timepoint>)
and hit enter. - In the next two columns to the right, create the headers dSWI4_Fstat and dSWI4_p-value.
- Recall the number of data points from (13): call that total n, n=16.
- In the first cell of the dSWI4_Fstat column, type
=((16-4)/4)*(<dSWI4_ss_HO>-<dSWI4_SS_full>)/<dSWI4_SS_full>
and hit enter.- Don't actually type the n but instead use the number from (13). Also note that "4" is the number of timepoints and the dSWI4 strain has 4 timepoints (it is missing t15).
- Replace the phrase dSWI4_ss_HO with the cell designation.
- Replace the phrase <dSWI4_SS_full> with the cell designation.
- Copy to the whole column.
- In the first cell below the dSWI4_p-value header, type
=FDIST(<dSWI4_Fstat>,4,16-4)
replacing the phrase <dSWI4_Fstat> with the cell designation and the "n" as in (13) with the number of data points total. (Again, note that the number of timepoints is actually "4" for the dSWI4 strain). Copy to the whole column. - Before we move on to the next step, we will perform a quick sanity check to see if we did all of these computations correctly.
- Click on cell A1 and click on the Data tab. Select the Filter icon (looks like a funnel). Little drop-down arrows should appear at the top of each column. This will enable us to filter the data according to criteria we set.
- Click on the drop-down arrow on your dSWI4_p-value column. Select "Number Filters". In the window that appears, set a criterion that will filter your data so that the p value has to be less than 0.05.
- Excel will now only display the rows that correspond to data meeting that filtering criterion. A number will appear in the lower left hand corner of the window giving you the number of rows that meet that criterion. We will check our results with each other to make sure that the computations were performed correctly.
Calculate the Bonferroni and p value Correction
- Now we will perform adjustments to the p value to correct for the multiple testing problem. Label the next two columns to the right with the same label, dSWI4_Bonferroni_p-value.
- Type the equation
=(dSWI4_p-value)*6189
, Upon completion of this single computation, use the Step (10) trick to copy the formula throughout the column. - Replace any corrected p value that is greater than 1 by the number 1 by typing the following formula into the first cell below the second dSWI4_Bonferroni_p-value header:
=IF(r2>1,1,r2)
. Use the Step (10) trick to copy the formula throughout the column.
Calculate the Benjamini & Hochberg p value Correction
- Insert a new worksheet named "dSWI4_ANOVA_B-H".
- Copy and paste the "Master_Index", "ID", and "Standard_Name" columns from your previous worksheet into the first two columns of the new worksheet.
- For the following, use Paste special > Paste values. Copy your unadjusted p values from your ANOVA worksheet and paste it into Column D.
- Select all of columns A, B, C, and D. Sort by ascending values on Column D. Click the sort button from A to Z on the toolbar, in the window that appears, sort by column D, smallest to largest.
- Type the header "Rank" in cell E1. We will create a series of numbers in ascending order from 1 to 6189 in this column. This is the p value rank, smallest to largest. Type "1" into cell E2 and "2" into cell E3. Select both cells E2 and E3. Double-click on the plus sign on the lower right-hand corner of your selection to fill the column with a series of numbers from 1 to 6189.
- Now you can calculate the Benjamini and Hochberg p value correction. Type dSWI4_B-H_p-value in cell F1. Type the following formula in cell F2:
=(D2*6189)/E2
and press enter. Copy that equation to the entire column. - Type "dSWI4_B-H_p-value" into cell G1.
- Type the following formula into cell G2:
=IF(F2>1,1,F2)
and press enter. Copy that equation to the entire column. - Select columns A through G. Now sort them by your Master_Index in Column A in ascending order.
- Copy column G and use Paste special > Paste values to paste it into the next column on the right of your ANOVA sheet.
Sanity Check: Number of genes significantly changed
Before we move on to further analysis of the data, we want to perform a more extensive sanity check to make sure that we performed our data analysis correctly. We are going to find out the number of genes that are significantly changed at various p value cut-offs.
- Go to your dSWI4_ANOVA worksheet.
- Select row 1 (the row with your column headers) and select the menu item Data > Filter > Autofilter (The funnel icon on the Data tab). Little drop-down arrows should appear at the top of each column. This will enable us to filter the data according to criteria we set.
- Click on the drop-down arrow for the unadjusted p value. Set a criterion that will filter your data so that the p value has to be less than 0.05.
- How many genes have p < 0.05? and what is the percentage (out of 6189)?
- 2782, 44.9%
- How many genes have p < 0.01? and what is the percentage (out of 6189)?
- 1837, 29.69%
- How many genes have p < 0.001? and what is the percentage (out of 6189)?
- 977, 15.78%
- How many genes have p < 0.0001? and what is the percentage (out of 6189)?
- 522, 8.43%
- How many genes have p < 0.05? and what is the percentage (out of 6189)?
- When we use a p value cut-off of p < 0.05, what we are saying is that you would have seen a gene expression change that deviates this far from zero by chance less than 5% of the time.
- We have just performed 6189 hypothesis tests. Another way to state what we are seeing with p < 0.05 is that we would expect to see this a gene expression change for at least one of the timepoints by chance in about 5% of our tests, or 309 times. Since we have more than 309 genes that pass this cut off, we know that some genes are significantly changed. However, we don't know which ones. To apply a more stringent criterion to our p values, we performed the Bonferroni and Benjamini and Hochberg corrections to these unadjusted p values. The Bonferroni correction is very stringent. The Benjamini-Hochberg correction is less stringent. To see this relationship, filter your data to determine the following:
- How many genes are p < 0.05 for the Bonferroni-corrected p value? and what is the percentage (out of 6189)?
- 224, 3.62%
- How many genes are p < 0.05 for the Benjamini and Hochberg-corrected p value? and what is the percentage (out of 6189)?
- 2080, 33.61%
- How many genes are p < 0.05 for the Bonferroni-corrected p value? and what is the percentage (out of 6189)?
- In summary, the p value cut-off should not be thought of as some magical number at which data becomes "significant". Instead, it is a moveable confidence level. If we want to be very confident of our data, use a small p value cut-off. If we are OK with being less confident about a gene expression change and want to include more genes in our analysis, we can use a larger p value cut-off.
- Comparing results with known data: the expression of the gene NSR1 (ID: YGR159C)is known to be induced by cold shock.
- Find NSR1 in your dataset.
- What is its unadjusted, Bonferroni-corrected, and B-H-corrected p values?
- 1.96 * 10^-7, .00074, 1.45 * 10^-5
- What is its average Log fold change at each of the timepoints in the experiment? Note that the average Log fold change is what we called "dSWI4_AvgLogFC_(TIME)" in step 3 of the ANOVA analysis.
- t30: 1.8472
- t60: 3.9168
- t90: 1.7212
- t120: .6385
- What is its unadjusted, Bonferroni-corrected, and B-H-corrected p values?
- We will compare the numbers we get between the wild type strain and the other strains studied, organized as a table. Use this sample PowerPoint slide to see how your table should be formatted.
Clustering and GO Term Enrichment with stem
- Prepare your microarray data file for loading into STEM.
- Insert a new worksheet into your Excel workbook, and name it "dSWI4_stem".
- Select all of the data from your "dSWI4_ANOVA" worksheet and Paste special > paste values into your "dSWI4_stem" worksheet.
- Your leftmost column should have the column header "Master_Index". Rename this column to "SPOT". Column B should be named "ID". Rename this column to "Gene Symbol". Delete the column named "Standard_Name".
- Filter the data on the B-H corrected p value to be > 0.05 (that's greater than in this case).
- Once the data has been filtered, select all of the rows (except for your header row) and delete the rows by right-clicking and choosing "Delete Row" from the context menu. Undo the filter. This ensures that we will cluster only the genes with a "significant" change in expression and not the noise.
- Delete all of the data columns EXCEPT for the Average Log Fold change columns for each timepoint (for example, dSWI4_AvgLogFC_t30, etc.).
- Rename the data columns with just the time and units (for example, 30m, 60m, etc.).
- Save your work. Then use Save As to save this spreadsheet as Text (Tab-delimited) (*.txt). Click OK to the warnings and close your file.
- Note that you should turn on the file extensions if you have not already done so.
- Now download and extract the STEM software. Click here to go to the STEM web site.
- Click on the download link, register, and download the
stem.zip
file to your Desktop. - Unzip the file. In Seaver 120, you can right click on the file icon and select the menu item 7-zip > Extract Here.
- This will create a folder called
stem
. Inside the folder, double-click on thestem.jar
to launch the STEM program.
- Click on the download link, register, and download the
- Running STEM
- In section 1 (Expression Data Info) of the the main STEM interface window, click on the Browse... button to navigate to and select your file.
- Click on the radio button No normalization/add 0.
- Check the box next to Spot IDs included in the data file.
- In section 2 (Gene Info) of the main STEM interface window, select Saccharomyces cerevisiae (SGD), from the drop-down menu for Gene Annotation Source. Select No cross references, from the Cross Reference Source drop-down menu. Select No Gene Locations from the Gene Location Source drop-down menu.
- In section 3 (Options) of the main STEM interface window, make sure that the Clustering Method says "STEM Clustering Method" and do not change the defaults for Maximum Number of Model Profiles or Maximum Unit Change in Model Profiles between Time Points.
- In section 4 (Execute) click on the yellow Execute button to run STEM.
- In section 1 (Expression Data Info) of the the main STEM interface window, click on the Browse... button to navigate to and select your file.
- Viewing and Saving STEM Results
- A new window will open called "All STEM Profiles (1)". Each box corresponds to a model expression profile. Colored profiles have a statistically significant number of genes assigned; they are arranged in order from most to least significant p value. Profiles with the same color belong to the same cluster of profiles. The number in each box is simply an ID number for the profile.
- Click on the button that says "Interface Options...". At the bottom of the Interface Options window that appears below where it says "X-axis scale should be:", click on the radio button that says "Based on real time". Then close the Interface Options window.
- Take a screenshot of this window (on a PC, simultaneously press the
Alt
andPrintScreen
buttons to save the view in the active window to the clipboard) and paste it into a PowerPoint presentation to save your figures.
- Click on each of the SIGNIFICANT profiles (the colored ones) to open a window showing a more detailed plot containing all of the genes in that profile.
- Take a screenshot of each of the individual profile windows and save the images in your PowerPoint presentation.
- At the bottom of each profile window, there are two yellow buttons "Profile Gene Table" and "Profile GO Table". For each of the profiles, click on the "Profile Gene Table" button to see the list of genes belonging to the profile. In the window that appears, click on the "Save Table" button and save the file to your desktop. Make your filename descriptive of the contents, e.g. "dSWI4_profile#_genelist.txt", where you replace the number symbol with the actual profile number.
- Upload these files to OpenWetWare and link to them on your individual journal page. (Note that it will be easier to zip all the files together and upload them as one file).
- For each of the significant profiles, click on the "Profile GO Table" to see the list of Gene Ontology terms belonging to the profile. In the window that appears, click on the "Save Table" button and save the file to your desktop. Make your filename descriptive of the contents, e.g. "dSWI4_profile#_GOlist.txt", where you use "dSWI4" to indicate the dataset and where you replace the number symbol with the actual profile number. At this point you have saved all of the primary data from the STEM software and it's time to interpret the results!
- Upload these files to OpenWetWare and link to them on your individual journal page. (Note that it will be easier to zip all the files together and upload them as one file).
- A new window will open called "All STEM Profiles (1)". Each box corresponds to a model expression profile. Colored profiles have a statistically significant number of genes assigned; they are arranged in order from most to least significant p value. Profiles with the same color belong to the same cluster of profiles. The number in each box is simply an ID number for the profile.
- Analyzing and Interpreting STEM Results
- Select one of the profiles you saved in the previous step for further intepretation of the data. I suggest that you choose one that has a pattern of up- or down-regulated genes at the cold shock timepoints. Each member of your group should choose a different profile. Profile #45 was chosen for these questions. Answer the following:
- Why did you select this profile? In other words, why was it interesting to you?
- This profile seemed interesting based on its significance level and general graphical trend. It had both up- and down-regulated portions.
- How many genes belong to this profile?
- 205
- How many genes were expected to belong to this profile?
- 43.9
- What is the p value for the enrichment of genes in this profile? Bear in mind that we just finished computing p values to determine whether each individual gene had a significant change in gene expression at each time point. This p value determines whether the number of genes that show this particular expression profile across the time points is significantly more than expected.
- 2.80*10^-72
- Open the GO list file you saved for this profile in Excel. This list shows all of the Gene Ontology terms that are associated with genes that fit this profile. Select the third row and then choose from the menu Data > Filter > Autofilter.
- Filter on the "p-value" column to show only GO terms that have a p value of < 0.05. How many GO terms are associated with this profile at p < 0.05?
- 141
- The GO list also has a column called "Corrected p-value". This correction is needed because the software has performed thousands of significance tests. Filter on the "Corrected p-value" column to show only GO terms that have a corrected p value of < 0.05. How many GO terms are associated with this profile with a corrected p value < 0.05?
- 6
- Filter on the "p-value" column to show only GO terms that have a p value of < 0.05. How many GO terms are associated with this profile at p < 0.05?
- Select 6 Gene Ontology terms from your filtered list (either p < 0.05 or corrected p < 0.05).
- Each member of the group will be reporting on his or her own cluster in your presentation next week. You should take care to choose terms that are the most significant, but that are also not too redundant. For example, "RNA metabolism" and "RNA biosynthesis" are redundant with each other because they mean almost the same thing.
- Note whether the same GO terms are showing up in multiple clusters.
- Look up the definitions for each of the terms at http://geneontology.org. In your final presentation, you will discuss the biological interpretation of these GO terms. In other words, why does the cell react to cold shock by changing the expression of genes associated with these GO terms? Also, what does this have to do with the transcription factor being deleted (for the Δgln3 and Δswi4 groups)?
- To easily look up the definitions, go to http://geneontology.org.
- Copy and paste the GO ID (e.g. GO:0044848) into the search field at center top of the page called "Search GO Data".
- In the results page, click on the button that says "Link to detailed information about <term>, in this case "biological phase"".
- The definition will be on the next results page, e.g. here.
- Each member of the group will be reporting on his or her own cluster in your presentation next week. You should take care to choose terms that are the most significant, but that are also not too redundant. For example, "RNA metabolism" and "RNA biosynthesis" are redundant with each other because they mean almost the same thing.
- Nuclear part (GO:0044428): "Any constituent part of the nucleus, a membrane-bounded organelle of eukaryotic cells in which chromosomes are housed and replicated."
- ATP-dependent RNA helicase activity (GO:0004004): "Catalysis of the reaction: ATP + H2O = ADP + phosphate; this reaction drives the unwinding of an RNA helix."
- RNA metabolic process (GO:0016070): "The cellular chemical reactions and pathways involving RNA, ribonucleic acid, one of the two main type of nucleic acid, consisting of a long, unbranched macromolecule formed from ribonucleotides joined in 3',5'-phosphodiester linkage."
- Gene expression (GO:0010467): "The process in which a gene's sequence is converted into a mature gene product or products (proteins or RNA). This includes the production of an RNA transcript as well as any processing to produce a mature RNA product or an mRNA (for protein-coding genes) and the translation of that mRNA into protein. Protein maturation is included when required to form an active form of a product from an inactive precursor form."
- U2-type prespliceosome (GO: 0071004): "A spliceosomal complex that is formed by association of the 5' splice site with the U1 snRNP, while the branch point sequence is recognized by the U2 snRNP. The prespliceosome includes many proteins in addition to those found in the U1 and U2 snRNPs. Commitment to a given pair of 5' and 3' splice sites occurs at the time of prespliceosome formation."
- Heterocycle metabolic process (GO: 0046483): "The chemical reactions and pathways involving heterocyclic compounds, those with a cyclic molecular structure and at least two different atoms in the ring (or rings)."
- Why did you select this profile? In other words, why was it interesting to you?
- Select one of the profiles you saved in the previous step for further intepretation of the data. I suggest that you choose one that has a pattern of up- or down-regulated genes at the cold shock timepoints. Each member of your group should choose a different profile. Profile #45 was chosen for these questions. Answer the following:
Scientific Conclusion
Based on which type of test was used to find a P-value, there were different levels of significance. The different tests were used in order have a more regulated and selective significant P-value. Profile #45 showed 205 genes that were upregulated during cold-shock time slots and downregulated during the recovery time slots. When looking into the terms discussed on the Go list, most (if not all) were related to RNA regulation and processing. This also correlates with Cluster 3 from Helbey et al. (2014), which showed the same pattern of regulation and gene expression.
Data & Files
- STEM Input File
- Excel Workbook with Statistical Analyses
- ZIP file to Profile Gene Table
- ZIP file to Profile Go Table
- ZIP file to Significant Cluster Profiles
Presentation
A copy of our final presentation can be found here.
Acknowledgements
- I would like to thank my partners, Mia Huddleston, Matthew R Allegretti, and Colin Wikholm, for the assistance on this weeks project both in the understanding of our paper in class and completion of the powerpoint outside of class.
- I would also like to thank Kam D. Dahlquist, Ph.D. for providing the instructions and information for this assignment both in class and on this document: BIOL368/F16:Week 15.
- The methods were copied from BIOL368/F16:Week 15, but changed based on our project's specificity.
- Even though I worked with the people noted above, this individual journal entry was completed by me and not copied from another source.
- Matthew K. Oki 16:48, 6 December 2016 (EST):
References
- BIOL368/F16:Week 15
- STEM
- Gene Ontology
- Hebly, M., de Ridder, D., de Hulster, E. A. F., de la Torre Cortes, P., Pronk, J. T., & Daran-Lapujade, P. (2014). Physiological and transcriptional responses of anaerobic chemostat cultures of Saccharomyces cerevisiae subjected to diurnal temperature cycles. Applied and Environmental Microbiology, 80(14), 4433-4449. doi: 10.1128/AEM.00785-14
Class Homework Links
Weekly Assignments
Individual Journals
Class Journals
Other Links
My Home Page: Matthew K. Oki
Class Home Page: Bioinformatics Home Page
My Paper Resume: Matthew K. Oki Resume