Difference between revisions of "Week 9"
Kdahlquist (talk | contribs) (→Background: add emphasis) |
Kdahlquist (talk | contribs) (→Clustering and GO Term Enrichment with stem (part 2): delete section because moved to Week 10) |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''This journal entry is due on Thursday, March 21, at 12:01am Pacific time.''' | '''This journal entry is due on Thursday, March 21, at 12:01am Pacific time.''' | ||
+ | |||
+ | '''''Note that there is an interim deadline of Tuesday, March 19, 12:01am Pacific time to upload the spreadsheet you completed on Thursday and link to it on your individual journal page.''''' | ||
== Objectives == | == Objectives == | ||
Line 11: | Line 13: | ||
* Store this journal entry as "''username'' Week 9" (i.e., this is the text to place between the square brackets when you link to this page). | * Store this journal entry as "''username'' Week 9" (i.e., this is the text to place between the square brackets when you link to this page). | ||
− | * | + | * Invoke your personal template that you created for the [[Week 1 | Week 1 Assignment]] on your individual journal entry page. Your template should provide the following set of navigation links: |
− | + | ** Link to your user page. | |
− | ** Link | + | ** Links to the weekly Assignment pages. |
− | ** | + | ** Links to your weekly Individual Journal entry pages. |
− | * | + | ** Links to the weekly Class Journal pages. |
− | ** | + | ** The category "Journal Entry". |
− | ** | + | * The sections you need for this week are '''Purpose''', '''Methods/Results''' (one combined section), '''Data & Files''', '''Conclusion''', '''Acknowledgments''', and '''References''' (as specified by the [[Week_1 | Week 1]] assignment). |
− | * The sections you need for this week are Purpose, Methods/Results (one combined section), Data & Files, Conclusion, Acknowledgments, and References (as specified by the [[Week_1 | Week 1]] assignment). | ||
* For your assignment this week, the electronic laboratory notebook you will keep on your individual wiki page is crucial. An electronic laboratory notebook records all the manipulations you perform on the data and the answers to the questions throughout the protocol. Like a paper lab notebook found in a wet lab, it should contain enough information so that you or someone else could reproduce what you did using only the information from the notebook. | * For your assignment this week, the electronic laboratory notebook you will keep on your individual wiki page is crucial. An electronic laboratory notebook records all the manipulations you perform on the data and the answers to the questions throughout the protocol. Like a paper lab notebook found in a wet lab, it should contain enough information so that you or someone else could reproduce what you did using only the information from the notebook. | ||
** We will be performing a series of computations on a microarray dataset, primarily using Microsoft Excel. In the interests of reproducible research, it is appropriate to copy and paste the methods from this assignment into your individual journal entry. | ** We will be performing a series of computations on a microarray dataset, primarily using Microsoft Excel. In the interests of reproducible research, it is appropriate to copy and paste the methods from this assignment into your individual journal entry. | ||
Line 28: | Line 29: | ||
=== Homework Partners === | === Homework Partners === | ||
− | + | You will keep the same partner for the next two weeks. Please sit next to your partner in class. You will be expected to consult with your partner, in order to complete the assignment. However, unless otherwise stated, each partner must submit his or her own work as the individual journal entry (direct copies of each other's work is not allowed). Homework partners for this week are: | |
− | * Katie & Dean ([[Media: | + | * Katie & Dean ([[Media:BIOL367_S24_microarray-data_wt.xlsx | wild type data]]) |
− | * Hailey & Natalija ([[Media: | + | * Hailey & Natalija ([[Media:BIOL367_S24_microarray-data_dCIN5.xlsx | ''Δcin5'' data]]) |
− | * Charlotte & Andrew ([[Media: | + | * Charlotte & Andrew ([[Media:BIOL367_S24_microarray-data_dGLN3.xlsx | ''Δgln3'' data]]) |
+ | |||
+ | === Preliminary Tasks === | ||
+ | |||
+ | * If necessary, follow the instructions on the [[Week_8#Preliminary_Tasks | Week 8]] page to turn on file extensions, control where the browser downloads files, and decompress files. | ||
=== Microarray Data Analysis === | === Microarray Data Analysis === | ||
Line 38: | Line 43: | ||
We will be working on the protocols in class on Thursday, March 14 and Tuesday, March 19. Based on the progress that is made during class, the milestone of what needs to be completed by the Week 9 journal deadline will be announced in class. We will continue with this protocol for the Week 10 assignment. | We will be working on the protocols in class on Thursday, March 14 and Tuesday, March 19. Based on the progress that is made during class, the milestone of what needs to be completed by the Week 9 journal deadline will be announced in class. We will continue with this protocol for the Week 10 assignment. | ||
− | ==== | + | ==== Overview ==== |
This is a list of steps required to analyze DNA microarray data. | This is a list of steps required to analyze DNA microarray data. | ||
Line 48: | Line 53: | ||
#Normalize the ratios on each microarray slide | #Normalize the ratios on each microarray slide | ||
#Normalize the ratios for a set of slides in an experiment | #Normalize the ratios for a set of slides in an experiment | ||
− | #* ''Steps 4-5 | + | #* ''Steps 4-5 were performed for you using a script in R, a statistics package (see: [https://openwetware.org/wiki/Dahlquist:Microarray_Data_Analysis_Workflow#Steps_4-5:_Within-_and_Between-chip_Normalization Microarray Data Analysis Workflow])'' |
#* You will perform the following steps: | #* You will perform the following steps: | ||
#Perform statistical analysis on the ratios | #Perform statistical analysis on the ratios | ||
#Compare individual genes with known data | #Compare individual genes with known data | ||
− | #* ''''' | + | #* '''''We will perform steps 6-7 in Microsoft Excel''''' |
#Pattern finding algorithms (clustering) | #Pattern finding algorithms (clustering) | ||
#Map onto biological pathways | #Map onto biological pathways | ||
Line 58: | Line 63: | ||
#* [https://academic.oup.com/bioinformatics/article/21/suppl_1/i159/203147 Ernst, J., & Bar-Joseph, Z. (2006). STEM: a tool for the analysis of short time series gene expression data. ''BMC bioinformatics'', ''7''(1), 191. DOI: 10.1093/bioinformatics/bti1022] | #* [https://academic.oup.com/bioinformatics/article/21/suppl_1/i159/203147 Ernst, J., & Bar-Joseph, Z. (2006). STEM: a tool for the analysis of short time series gene expression data. ''BMC bioinformatics'', ''7''(1), 191. DOI: 10.1093/bioinformatics/bti1022] | ||
# Identifying regulatory transcription factors responsible for observed changes in gene expression (YEASTRACT) | # Identifying regulatory transcription factors responsible for observed changes in gene expression (YEASTRACT) | ||
− | #* [https:// | + | #* [https://doi.org/10.1093/nar/gkac1041 Teixeira, M. C., Viana, R., Palma, M., Oliveira, J., Galocha, M., Mota, M. N., ... & Monteiro, P. T. (2023). YEASTRACT+: a portal for the exploitation of global transcription regulation and metabolic model data in yeast biotechnology and pathogenesis. ''Nucleic Acids Research, 51''(D1), D785-D791. DOI: 10.1093/nar/gkac1041] |
# Dynamical systems modeling of the gene regulatory network ([http://kdahlquist.github.io/GRNmap/ GRNmap]) | # Dynamical systems modeling of the gene regulatory network ([http://kdahlquist.github.io/GRNmap/ GRNmap]) | ||
#* [https://link.springer.com/article/10.1007/s11538-015-0092-6 Dahlquist, K. D., Fitzpatrick, B. G., Camacho, E. T., Entzminger, S. D., & Wanner, N. C. (2015). Parameter estimation for gene regulatory networks from microarray data: cold shock response in ''Saccharomyces cerevisiae''. ''Bulletin of mathematical biology'', ''77''(8), 1457-1492. DOI: 10.1007/s11538-015-0092-6] | #* [https://link.springer.com/article/10.1007/s11538-015-0092-6 Dahlquist, K. D., Fitzpatrick, B. G., Camacho, E. T., Entzminger, S. D., & Wanner, N. C. (2015). Parameter estimation for gene regulatory networks from microarray data: cold shock response in ''Saccharomyces cerevisiae''. ''Bulletin of mathematical biology'', ''77''(8), 1457-1492. DOI: 10.1007/s11538-015-0092-6] | ||
Line 68: | Line 73: | ||
The data used in this exercise is publicly available at the NCBI GEO database in [https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE83656 record GSE83656]. | The data used in this exercise is publicly available at the NCBI GEO database in [https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE83656 record GSE83656]. | ||
* Begin by downloading the Excel file for your group's strain. | * Begin by downloading the Excel file for your group's strain. | ||
− | ** ([[Media: | + | ** Katie & Dean ([[Media:BIOL367_S24_microarray-data_wt.xlsx | wild type data]]) |
− | ** ([[Media: | + | ** Hailey & Natalija ([[Media:BIOL367_S24_microarray-data_dCIN5.xlsx | ''Δcin5'' data]]) |
− | ** ([[Media: | + | ** Charlotte & Andrew ([[Media:BIOL367_S24_microarray-data_dGLN3.xlsx | ''Δgln3'' data]]) |
* '''NOTE: before beginning any analysis, immediately change the filename (Save As...) so that it contains your initials to distinguish it from other students' work.''' | * '''NOTE: before beginning any analysis, immediately change the filename (Save As...) so that it contains your initials to distinguish it from other students' work.''' | ||
− | * In the Excel spreadsheet, there is a worksheet labeled "Master_Sheet_<STRAIN>", where <STRAIN> is replaced by the strain designation, wt, dCIN5, dGLN3 | + | * In the Excel spreadsheet, there is a worksheet labeled "Master_Sheet_<STRAIN>", where <STRAIN> is replaced by the strain designation, wt, dCIN5, or dGLN3. |
** In this worksheet, each row contains the data for one gene (one spot on the microarray). | ** In this worksheet, each row contains the data for one gene (one spot on the microarray). | ||
** The first column contains the "MasterIndex", which numbers all of the rows sequentially in the worksheet so that we can always use it to sort the genes into the order they were in when we started. | ** The first column contains the "MasterIndex", which numbers all of the rows sequentially in the worksheet so that we can always use it to sort the genes into the order they were in when we started. | ||
Line 95: | Line 100: | ||
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. | 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 | + | # Create a new worksheet, naming it "(STRAIN)_ANOVA" as appropriate. For example, you might call yours "wt_ANOVA" or "dCIN5_ANOVA". |
− | # Copy | + | # Copy all data from the "Master_Sheet" worksheet and paste it in your new worksheet. |
− | # At the top of the first column to the right of your data, create five column headers of the form (STRAIN)_AvgLogFC_(TIME) where STRAIN is your strain designation and (TIME) is 15, 30, | + | # At the top of the first column to the right of your data, create five column headers of the form (STRAIN)_AvgLogFC_(TIME) where STRAIN is your strain designation and (TIME) is 15, 30, 60, 90, and 120. |
# In the cell below the (STRAIN)_AvgLogFC_t15 header, type <code>=AVERAGE(</code> | # In the cell below the (STRAIN)_AvgLogFC_t15 header, type <code>=AVERAGE(</code> | ||
# Then highlight all the data in row 2 associated with t15, press the closing paren key (shift 0),and press the "enter" key. | # Then highlight all the data in row 2 associated with t15, press the closing paren key (shift 0),and press the "enter" key. | ||
Line 107: | Line 112: | ||
# Highlight all the LogFC data in row 2 (but not the AvgLogFC), press the closing paren key (shift 0),and press the "enter" key. | # Highlight all the LogFC data in row 2 (but not the AvgLogFC), press the closing paren key (shift 0),and press the "enter" key. | ||
# In the next empty column to the right of (STRAIN)_ss_HO, create the column headers (STRAIN)_ss_(TIME) as in (3). | # In the next empty column to the right of (STRAIN)_ss_HO, create the column headers (STRAIN)_ss_(TIME) as in (3). | ||
− | # Make a note of how many data points you have at each time point for your strain. For most of the strains, it will be 4, but | + | # Make a note of how many data points you have at each time point for your strain. For most of the strains, it will be 4, but for the wild type it will be "4" or "5". Count carefully. Also, make a note of the total number of data points. Again, for most strains, this will be 20, but for example, for wt it should be 23 (double-check). |
# In the first cell below the header (STRAIN)_ss_t15, type <code>=SUMSQ(<range of cells for logFC_t15>)-COUNTA(<range of cells for logFC_t15>)*<AvgLogFC_t15>^2</code> and hit enter. | # In the first cell below the header (STRAIN)_ss_t15, type <code>=SUMSQ(<range of cells for logFC_t15>)-COUNTA(<range of cells for logFC_t15>)*<AvgLogFC_t15>^2</code> and hit enter. | ||
#* The <code>COUNTA</code> function counts the number of cells in the specified range that have data in them (i.e., does not count cells with missing values). | #* The <code>COUNTA</code> function counts the number of cells in the specified range that have data in them (i.e., does not count cells with missing values). | ||
Line 123: | Line 128: | ||
#* Replace the phrase <(STRAIN)_SS_full> with the cell designation. | #* Replace the phrase <(STRAIN)_SS_full> with the cell designation. | ||
#* Copy to the whole column. | #* Copy to the whole column. | ||
− | # In the first cell below the (STRAIN)_p-value header, type <code>=FDIST(<(STRAIN)_Fstat>,5,n-5)</code> replacing the phrase <(STRAIN)_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)--> | + | # In the first cell below the (STRAIN)_p-value header, type <code>=FDIST(<(STRAIN)_Fstat>,5,n-5)</code> replacing the phrase <(STRAIN)_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. | # 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 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. | ||
Line 129: | Line 134: | ||
#* 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. | #* 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. | ||
#* Be sure to undo any filters that you have applied before making any additional calculations. | #* Be sure to undo any filters that you have applied before making any additional calculations. | ||
+ | |||
+ | '''''Stopping point for Thursday, March 14. Be sure to upload your spreadsheet to this wiki and link to it on your individual Week 9 journal page by Tuesday, March 19, 12:01am.''''' | ||
==== Calculate the Bonferroni and p value Correction ==== | ==== Calculate the Bonferroni and p value Correction ==== | ||
Line 152: | Line 159: | ||
* '''''Zip and upload the .xlsx file that you have just created to the wiki.''''' | * '''''Zip and upload the .xlsx file that you have just created to the wiki.''''' | ||
− | '''''You must finish up to this point for the interim deadline of Tuesday, | + | <!--'''''You must finish up to this point for the interim deadline of Tuesday, March 19, 12:01am Pacific time, so that the instructor can check your calculations before class.'''''--> |
==== Sanity Check: Number of genes significantly changed ==== | ==== Sanity Check: Number of genes significantly changed ==== | ||
Line 171: | Line 178: | ||
** '''''How many genes are p < 0.05 for the Benjamini and Hochberg-corrected p value? and what is the percentage (out of 6189)?''''' | ** '''''How many genes are p < 0.05 for the Benjamini and Hochberg-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. | * 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. | ||
− | * We will compare the numbers we get between the wild type strain and the other strains studied, organized as a table. Use this [[Media: | + | * We will compare the numbers we get between the wild type strain and the other strains studied, organized as a table. Use this [[Media:BIOL367_S24_sample_p-value_slide.pptx | sample PowerPoint slide]] to see how your table should be formatted. '''''Upload your slide to the wiki.''''' |
** Note that since the wild type data is being analyzed by one of the groups in the class, it will be sufficient for this week to supply just the data for your strain. We will do the comparison with wild type at a later date. | ** Note that since the wild type data is being analyzed by one of the groups in the class, it will be sufficient for this week to supply just the data for your strain. We will do the comparison with wild type at a later date. | ||
* 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? 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 "STRAIN)_AvgLogFC_(TIME)" in step 3 of the ANOVA analysis. Does ''NSR1'' change expression due to cold shock in this experiment? | * 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? 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 "STRAIN)_AvgLogFC_(TIME)" in step 3 of the ANOVA analysis. Does ''NSR1'' change expression due to cold shock in this experiment? | ||
* For fun, find "your favorite gene" (from your [[Week 3]] assignment) in the dataset. '''''What is its unadjusted, Bonferroni-corrected, and B-H-corrected p values? What is its average Log fold change at each of the timepoints in the experiment?''''' Does your favorite gene change expression due to cold shock in this experiment? | * For fun, find "your favorite gene" (from your [[Week 3]] assignment) in the dataset. '''''What is its unadjusted, Bonferroni-corrected, and B-H-corrected p values? What is its average Log fold change at each of the timepoints in the experiment?''''' Does your favorite gene change expression due to cold shock in this experiment? | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Data and Files ==== | ==== Data and Files ==== | ||
Line 254: | Line 205: | ||
* Sign your portion of the journal with the standard wiki signature shortcut (<code><nowiki>~~~~</nowiki></code>). | * Sign your portion of the journal with the standard wiki signature shortcut (<code><nowiki>~~~~</nowiki></code>). | ||
* Add the "Journal Entry" and "Shared" categories to the end of the wiki page (if someone has not already done so). | * Add the "Journal Entry" and "Shared" categories to the end of the wiki page (if someone has not already done so). | ||
+ | |||
+ | === View === | ||
+ | |||
+ | Now that you've done your own microarray data analysis, we will revisit the case [https://www.youtube.com/watch?v=eV9dcAGaVU8 "Deception at Duke"]. | ||
+ | * View the video: [http://videolectures.net/cancerbioinformatics2010_baggerly_irrh/ ''The Importance of Reproducible Research in High-Throughput Biology: Case Studies in Forensic Bioinformatics.''] | ||
+ | * View the slides from DataONE on [[MEDIA:L04_DataEntryManipulation.pptx | data entry and manipulation]]. | ||
+ | * Optional: for more information on the Duke saga, see the web site put together by Baggerly and Coombes [http://bioinformatics.mdanderson.org/Supplements/ReproRsch-All/Modified/StarterSet/ here]. | ||
=== Reflect === | === Reflect === | ||
− | + | # What were the main issues with the data and analysis identified by Baggerly and Coombs? What best practices enumerated by DataONE were violated? Which of these did Dr. Baggerly claim were common issues? | |
− | + | # What recommendations does Dr. Baggerly recommend for reproducible research? How do these correspond to what DataONE recommends? | |
− | # What | + | # What best practices did you perform for this week's assignment? |
− | # What | + | # Do you have any further reaction to this case after viewing Dr. Baggerly's talk? |
− | # | ||
[[Category:Assignment]] | [[Category:Assignment]] |
Latest revision as of 10:39, 19 March 2024
This journal entry is due on Thursday, March 21, at 12:01am Pacific time.
Note that there is an interim deadline of Tuesday, March 19, 12:01am Pacific time to upload the spreadsheet you completed on Thursday and link to it on your individual journal page.
Contents
- 1 Objectives
- 2 Individual Journal Assignment
- 2.1 Homework Partners
- 2.2 Preliminary Tasks
- 2.3 Microarray Data Analysis
- 2.3.1 Overview
- 2.3.2 Experimental Design and Getting Ready
- 2.3.3 Statistical Analysis Part 1: ANOVA
- 2.3.4 Calculate the Bonferroni and p value Correction
- 2.3.5 Calculate the Benjamini & Hochberg p value Correction
- 2.3.6 Sanity Check: Number of genes significantly changed
- 2.3.7 Data and Files
- 2.3.8 Conclusion (Summary Paragraph)
- 3 Shared Journal Assignment
Objectives
The purpose of this assignment is:
- to conduct the "analyze" step of the data life cycle for a DNA microarray dataset.
- to develop an intuition about what different p-value cut-offs mean.
- to keep a detailed electronic laboratory notebook to facilitate reproducible research.
Individual Journal Assignment
- Store this journal entry as "username Week 9" (i.e., this is the text to place between the square brackets when you link to this page).
- Invoke your personal template that you created for the Week 1 Assignment on your individual journal entry page. Your template should provide the following set of navigation links:
- Link to your user page.
- Links to the weekly Assignment pages.
- Links to your weekly Individual Journal entry pages.
- Links to the weekly Class Journal pages.
- The category "Journal Entry".
- The sections you need for this week are Purpose, Methods/Results (one combined section), Data & Files, Conclusion, Acknowledgments, and References (as specified by the Week 1 assignment).
- For your assignment this week, the electronic laboratory notebook you will keep on your individual wiki page is crucial. An electronic laboratory notebook records all the manipulations you perform on the data and the answers to the questions throughout the protocol. Like a paper lab notebook found in a wet lab, it should contain enough information so that you or someone else could reproduce what you did using only the information from the notebook.
- We will be performing a series of computations on a microarray dataset, primarily using Microsoft Excel. In the interests of reproducible research, it is appropriate to copy and paste the methods from this assignment into your individual journal entry.
- You must then modify the general instructions (which are generic to the whole class) to your own data analysis, recording the specific modifications and equations that you used on your dataset.
- Record the answers to the questions posed in the protocol at the place in which they appear in the method. You do not need to separate them out in a different results section.
- All files generated in the protocol must be uploaded to the wiki and linked to from your journal entry page in a "Data and Files" section.
- You will write a summary paragraph that gives the conclusions from this week's analysis.
Homework Partners
You will keep the same partner for the next two weeks. Please sit next to your partner in class. You will be expected to consult with your partner, in order to complete the assignment. However, unless otherwise stated, each partner must submit his or her own work as the individual journal entry (direct copies of each other's work is not allowed). Homework partners for this week are:
- Katie & Dean ( wild type data)
- Hailey & Natalija ( Δcin5 data)
- Charlotte & Andrew ( Δgln3 data)
Preliminary Tasks
- If necessary, follow the instructions on the Week 8 page to turn on file extensions, control where the browser downloads files, and decompress files.
Microarray Data Analysis
We will be working on the protocols in class on Thursday, March 14 and Tuesday, March 19. Based on the progress that is made during class, the milestone of what needs to be completed by the Week 9 journal deadline will be announced in class. We will continue with this protocol for the Week 10 assignment.
Overview
This is a list of steps required to analyze DNA microarray data.
- Quantitate the fluorescence signal in each spot
- Calculate the ratio of red/green fluorescence
- Log2 transform the ratios
- Steps 1-3 have been performed for you by the GenePix Pro software (which runs the microarray scanner).
- Normalize the ratios on each microarray slide
- Normalize the ratios for a set of slides in an experiment
- Steps 4-5 were performed for you using a script in R, a statistics package (see: Microarray Data Analysis Workflow)
- You will perform the following steps:
- Perform statistical analysis on the ratios
- Compare individual genes with known data
- We will perform steps 6-7 in Microsoft Excel
- Pattern finding algorithms (clustering)
- Map onto biological pathways
- We will use software called STEM for the clustering and mapping
- Ernst, J., & Bar-Joseph, Z. (2006). STEM: a tool for the analysis of short time series gene expression data. BMC bioinformatics, 7(1), 191. DOI: 10.1093/bioinformatics/bti1022
- Identifying regulatory transcription factors responsible for observed changes in gene expression (YEASTRACT)
- Dynamical systems modeling of the gene regulatory network (GRNmap)
- Viewing modeling results in GRNsight
Experimental Design and Getting Ready
The data used in this exercise is publicly available at the NCBI GEO database in record GSE83656.
- Begin by downloading the Excel file for your group's strain.
- Katie & Dean ( wild type data)
- Hailey & Natalija ( Δcin5 data)
- Charlotte & Andrew ( Δgln3 data)
- NOTE: before beginning any analysis, immediately change the filename (Save As...) so that it contains your initials to distinguish it from other students' work.
- In the Excel spreadsheet, there is a worksheet labeled "Master_Sheet_<STRAIN>", where <STRAIN> is replaced by the strain designation, wt, dCIN5, or dGLN3.
- In this worksheet, each row contains the data for one gene (one spot on the microarray).
- The first column contains the "MasterIndex", which numbers all of the rows sequentially in the worksheet so that we can always use it to sort the genes into the order they were in when we started.
- The second column (labeled "ID") contains the Systematic Name (gene identifier) from the Saccharomyces Genome Database.
- The third column contains the Standard Name for each of the genes.
- Each subsequent column contains the log2 ratio of the red/green fluorescence from each microarray hybridized in the experiment (steps 1-5 above having been performed for you already), for each strain starting with wild type and proceeding in alphabetical order by strain deletion.
- Each of the column headings from the data begin with the experiment name ("wt" for wild type S. cerevisiae data, "dCIN5" for the Δcin5 data, etc.). "LogFC" stands for "Log2 Fold Change" which is the Log2 red/green ratio. The timepoints are designated as "t" followed by a number in minutes. Replicates are numbered as "-0", "-1", "-2", etc. after the timepoint.
- The timepoints are t15, t30, t60 (cold shock at 13°C) and t90 and t120 (cold shock at 13°C followed by 30 or 60 minutes of recovery at 30°C).
- Begin by recording in your wiki, the strain that you will analyze, the filename, the number of replicates for each strain and each time point in your data.
Statistical Analysis Part 1: 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 "(STRAIN)_ANOVA" as appropriate. For example, you might call yours "wt_ANOVA" or "dCIN5_ANOVA".
- Copy all data from the "Master_Sheet" worksheet and paste it in your new worksheet.
- At the top of the first column to the right of your data, create five column headers of the form (STRAIN)_AvgLogFC_(TIME) where STRAIN is your strain designation and (TIME) is 15, 30, 60, 90, and 120.
- In the cell below the (STRAIN)_AvgLogFC_t15 header, type
=AVERAGE(
- Then highlight all the data in row 2 associated with t15, press the closing paren key (shift 0),and press the "enter" key.
- This cell now contains the average of the log fold change data from the first gene at t=15 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 6188 other genes.
- Repeat steps (4) through (8) with the t30, t60, t90, and the t120 data.
- Now in the first empty column to the right of the (STRAIN)_AvgLogFC_t120 calculation, create the column header (STRAIN)_ss_HO.
- In the first cell below this header, type
=SUMSQ(
- Highlight all the LogFC data in row 2 (but not the AvgLogFC), press the closing paren key (shift 0),and press the "enter" key.
- In the next empty column to the right of (STRAIN)_ss_HO, create the column headers (STRAIN)_ss_(TIME) as in (3).
- Make a note of how many data points you have at each time point for your strain. For most of the strains, it will be 4, but for the wild type it will be "4" or "5". Count carefully. Also, make a note of the total number of data points. Again, for most strains, this will be 20, but for example, for wt it should be 23 (double-check).
- In the first cell below the header (STRAIN)_ss_t15, type
=SUMSQ(<range of cells for logFC_t15>)-COUNTA(<range of cells for logFC_t15>)*<AvgLogFC_t15>^2
and hit enter.- The
COUNTA
function counts the number of cells in the specified range that have data in them (i.e., does not count cells with missing values). - The phrase <range of cells for logFC_t15> should be replaced by the data range associated with t15.
- The phrase <AvgLogFC_t15> should be replaced by the cell number in which you computed the AvgLogFC for t15, and the "^2" squares that value.
- Upon completion of this single computation, use the Step (7) trick to copy the formula throughout the column.
- The
- Repeat this computation for the t30 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 (STRAIN)_ss_t120, create the column header (STRAIN)_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 (STRAIN)_Fstat and (STRAIN)_p-value.
- Recall the number of data points from (13): call that total n.
- In the first cell of the (STRAIN)_Fstat column, type
=((n-5)/5)*(<(STRAIN)_ss_HO>-<(STRAIN)_SS_full>)/<(STRAIN)_SS_full>
and hit enter.- Don't actually type the n but instead use the number from (13). Also note that "5" is the number of timepoints.
- Replace the phrase (STRAIN)_ss_HO with the cell designation.
- Replace the phrase <(STRAIN)_SS_full> with the cell designation.
- Copy to the whole column.
- In the first cell below the (STRAIN)_p-value header, type
=FDIST(<(STRAIN)_Fstat>,5,n-5)
replacing the phrase <(STRAIN)_Fstat> with the cell designation and the "n" as in (13) with the number of data points total. 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 (STRAIN)_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.
- Be sure to undo any filters that you have applied before making any additional calculations.
Stopping point for Thursday, March 14. Be sure to upload your spreadsheet to this wiki and link to it on your individual Week 9 journal page by Tuesday, March 19, 12:01am.
Calculate the Bonferroni and p value Correction
Note: Be sure to undo any filters that you have applied before continuing with the next steps.
- 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, (STRAIN)_Bonferroni_p-value.
- Type the equation
=<(STRAIN)_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 (STRAIN)_Bonferroni_p-value header:
=IF((STRAIN)_Bonferroni_p-value>1,1,(STRAIN)_Bonferroni_p-value)
, where "(STRAIN)_Bonferroni_p-value" refers to the cell in which the first Bonferroni p value computation was made. Use the Step (10) trick to copy the formula throughout the column.
Calculate the Benjamini & Hochberg p value Correction
- Insert a new worksheet named "(STRAIN)_ANOVA_B-H".
- Copy and paste the "MasterIndex", "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 (STRAIN)_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 "STRAIN_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 MasterIndex 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.
- Zip and upload the .xlsx file that you have just created to the wiki.
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 (STRAIN)_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)?
- How many genes have p < 0.01? and what is the percentage (out of 6189)?
- How many genes have p < 0.001? and what is the percentage (out of 6189)?
- How many genes have p < 0.0001? and what is the percentage (out of 6189)?
- Note that it is a good idea to create a new worksheet in your workbook to record the answers to these questions. Then you can write a formula in Excel to automatically calculate the percentage for you.
- 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)?
- How many genes are p < 0.05 for the Benjamini and Hochberg-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.
- 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. Upload your slide to the wiki.
- Note that since the wild type data is being analyzed by one of the groups in the class, it will be sufficient for this week to supply just the data for your strain. We will do the comparison with wild type at a later date.
- 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? 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 "STRAIN)_AvgLogFC_(TIME)" in step 3 of the ANOVA analysis. Does NSR1 change expression due to cold shock in this experiment?
- For fun, find "your favorite gene" (from your Week 3 assignment) in the dataset. What is its unadjusted, Bonferroni-corrected, and B-H-corrected p values? What is its average Log fold change at each of the timepoints in the experiment? Does your favorite gene change expression due to cold shock in this experiment?
Data and Files
Your data and files section should include:
- Your Excel workbook with all of your calculations.
- Note that you will be working with this workbook for the next week or two, adding computations to it. Save the new versions to the wiki with the same filename. The wiki will store each version of the file so you can always go back to a previous version, if need be.
- Your PowerPoint slide with a summary table of p values.
- You will also be adding to the PowerPoint presentation during subsequent steps in the analysis.
- The input .txt file that you used to run stem.
Conclusion (Summary Paragraph)
- Write a summary paragraph that gives the conclusions from this week's analysis.
- Store your journal entry in the shared Class Journal Week 8 page. If this page does not exist yet, go ahead and create it (congratulations on getting in first :) )
- Link to your journal entry from your user page.
- Link back from the journal entry to your user page.
- NOTE: you can easily fulfill the links part of these instructions by adding them to your template and using the template on your user page.
- Sign your portion of the journal with the standard wiki signature shortcut (
~~~~
). - Add the "Journal Entry" and "Shared" categories to the end of the wiki page (if someone has not already done so).
View
Now that you've done your own microarray data analysis, we will revisit the case "Deception at Duke".
- View the video: The Importance of Reproducible Research in High-Throughput Biology: Case Studies in Forensic Bioinformatics.
- View the slides from DataONE on data entry and manipulation.
- Optional: for more information on the Duke saga, see the web site put together by Baggerly and Coombes here.
Reflect
- What were the main issues with the data and analysis identified by Baggerly and Coombs? What best practices enumerated by DataONE were violated? Which of these did Dr. Baggerly claim were common issues?
- What recommendations does Dr. Baggerly recommend for reproducible research? How do these correspond to what DataONE recommends?
- What best practices did you perform for this week's assignment?
- Do you have any further reaction to this case after viewing Dr. Baggerly's talk?