Last updated: 2023-12-04
Checks: 2 0
Knit directory: DEanalysis/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 39196a3. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for
the analysis have been committed to Git prior to generating the results
(you can use wflow_publish
or
wflow_git_commit
). workflowr only checks the R Markdown
file, but you know if there are other scripts or data files that it
depends on. Below is the status of the Git repository when the results
were generated:
Untracked files:
Untracked: .DS_Store
Untracked: .Rhistory
Untracked: data/.Rhistory
Untracked: data/10X_Kang_DEresult.RData
Untracked: data/10X_inputdata.RData
Untracked: data/10X_inputdata_DEresult.RData
Untracked: data/10X_inputdata_cpm.RData
Untracked: data/10X_inputdata_integrated.RData
Untracked: data/10X_inputdata_lognorm.RData
Untracked: data/10Xdata_annotate.rds
Untracked: data/Bcells.Rmd
Untracked: data/Bcellsce.rds
Untracked: data/data2sce.RData
Untracked: data/permutation.RData
Untracked: data/vstcounts.Rdata
Unstaged changes:
Modified: analysis/CD14+ Monocytes.Rmd
Modified: code/DE_methods.R
Modified: code/functions_in_rmd.R
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were
made to the R Markdown (analysis/methods_details.Rmd
) and
HTML (docs/methods_details.html
) files. If you’ve
configured a remote Git repository (see ?wflow_git_remote
),
click on the hyperlinks in the table below to view the files as they
were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 39196a3 | C-HW | 2023-12-04 | fix log2FC sign |
html | f1d8375 | C-HW | 2023-12-01 | Build site. |
html | 65985ff | C-HW | 2023-12-01 | Build site. |
Rmd | 3803697 | C-HW | 2023-12-01 | upload rmd |
html | 3803697 | C-HW | 2023-12-01 | upload rmd |
html | 59872e4 | C-HW | 2023-11-13 | update methods |
html | 366cd53 | C-HW | 2023-06-06 | add group8_17&2_19 |
html | 2107af3 | C-HW | 2023-05-24 | add methods_details |
In this project, we compare a few methods performing the DE analysis results. Each of them might use different input data ,different statistical model and different FDR control on p-values.
Poisson-glmm | Binomial-glmm | Pb-DESeq2 | Pb-edgeR | MAST | Wilcox | MMvst | MMpoisson | |
---|---|---|---|---|---|---|---|---|
Package | Our method | Our method | Muscat | Muscat | MAST | Seurat | Muscat | Muscat |
Input | UMI | zero proportion | UMI | CPM | CPM | Integrated/Log normalized | VST | UMI |
Model base | Poisson glmm | Binomial glmm | Negative binomial model | Negative binomial model | Zero-inflated model | Rank-sum test | Linear mixed model | Poisson glmm |
Normalization | X | X | V | V | V | V | V | V |
Normalization method | Median of ratio size factor, variance stabilizing transformation in model | In data, trimmed mean of M values (TMM) in model | In data | In data | In data | Library size factor as offset |
Only genes that pass the threshold for gene expression frequency will be considered as inputs.
For each gene, we run a poisson glmm method (glmmPQL) on the raw counts with cellgroups as fixed effect and repgroups as random effect \[ \begin{aligned} X_{cgk}|\lambda_{cgk} & \sim Poisson(\lambda_{cgk})\\ \log \lambda_{cgk} & = \mu_g + X_c{\beta_g} + \epsilon_{gk}\\ \end{aligned} \]
If the algorithm doesn’t converge, the gene will be excluded.
Only genes that pass the threshold for gene expression frequency will be considered as inputs.
We take the zero proportion of each gene as the response in the binomial model. (\(1\) if the read count is zero; otherwise \(0\).)
For each gene, we run a binomial glmm method (glmmPQL) on the zero proportion with cellgroups as fixed effect and repgroups as random effect \[ \begin{aligned} \mathbb{1}_{X_{cgk}=0}|p_{cgk} & \sim Bernoulli(p_{cgk})\\ \log \frac{p_{cgk}}{1-p_{cgk}} & = \mu_g + X_c\beta_{g} + \epsilon_{gk}\\ \end{aligned} \]
If the algorithm doesn’t converge, the gene will be excluded.