Skip to content

Commit

Permalink
Merge pull request #100 from maxplanck-ie/tm
Browse files Browse the repository at this point in the history
add sizefactor
  • Loading branch information
thomasmanke authored May 14, 2024
2 parents 2938e55 + 854276d commit 7ce161e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rmd/day02.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -285,16 +285,15 @@ A number of commonly used normalization techniques:
|:-------|:-----|
CPM | sequencing depth
RPKM | sequencing depth and gene length
DESeq2 median of ratios | sequencing depth and RNA composition
DESeq2 size factor | sequencing depth and RNA composition

... and many others exist.


DESeq2 Workflow for the 'median of ratios':

* Take geometric mean per gene (of all samples!) -> 'pseudosample'
* calculate the count / pseudosample ratio
* 'sizefactor' == median(ratios)
![DESeq2 sizefactor determination.](images/DESeq2_sizefactor.jpeg)


> **Task (5 min)**: Plot a heatmap of the first 10 genes (rows) of the counts matrix and add the metadata
after DESeq was run as above.
Expand Down Expand Up @@ -561,7 +560,7 @@ dds_res %>% subset(padj < 0.05) %>% nrow()
dds_res %>%
data.frame() %>%
subset(padj < 0.05) %>%
arrange(abs(log2FoldChange), descending=TRUE) %>% head(20)
arrange(-abs(log2FoldChange)) %>% head(20)
```

### Explore results
Expand Down
Binary file added rmd/images/DESeq2_sizefactor.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified rmd/images/Wald_LRT.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ce161e

Please sign in to comment.