Skip to content

Commit

Permalink
Add instructions for exercise of var part and heatmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
daianna21 committed Jul 4, 2023
1 parent fc2f5a3 commit b3d0f29
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 14_variancePartition_ComplexHeatmap_exercise.Rmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Exercise with variancePartition and ComplexHeatmap

Instructors: Daianna and Renee

Now is your turn to work on variance partition analysis and to create heatmaps to visualize expression patterns of DEGs.
With the same dataset that you have (`rse_gene`) perform the the variance partition analysis with smoking data for pups (i.e., taking **pup** samples from the **smoking** experiment) just as we did with nicotine data.

## Steps:
1. Subset the complete `rse_gene` object to smoking and pup data only.
2. Assume that all smoking pup samples are high quality and use them all for the variance partition analysis.
3. Use `fitExtractVarPartModel()` to fit a model for each gene and extract the variance explained by each variable; do it with normalized counts.
4. Which variables contribute more to gene expression changes? Which ones should be included in the models for DEA? Why?
5. Now select DEGs (for the smoking experiment) only. Create heatmaps to visualize the expression of these genes. Is it enough to use normalized counts directly from `assays(rse_gene_smoking)$logcounts`? Why?
6. Is there any clustering of the samples by `Group` or any other sample variable?
7. Separate upregulated and downregulated DEGs (by `logFC`) and create their individual heatmaps. What do you observe?



0 comments on commit b3d0f29

Please sign in to comment.