Loading [MathJax]/jax/output/HTML-CSS/jax.js

Last updated: 2023-06-06

Checks: 1 1

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.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

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 3b1c8ca. 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:  analysis/.DS_Store
    Untracked:  analysis/.Rhistory
    Untracked:  analysis/data_clusters.Rmd
    Untracked:  analysis/group12_13.Rmd
    Untracked:  analysis/group2_19.Rmd
    Untracked:  analysis/group8_17&2_19.Rmd
    Untracked:  analysis/methods_details.Rmd
    Untracked:  analysis/new_criteria.Rmd
    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

Unstaged changes:
    Modified:   analysis/index.Rmd

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/index.Rmd) and HTML (docs/index.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
html 3b1c8ca C-HW 2023-05-25 update index page
Rmd 95be122 C-HW 2023-05-25 update 2_19
html 95be122 C-HW 2023-05-25 update 2_19
Rmd 2107af3 C-HW 2023-05-24 add methods_details
Rmd 9a7a569 C-HW 2023-05-18 correct link
html 9a7a569 C-HW 2023-05-18 correct link
Rmd 641a5d8 C-HW 2023-05-18 add link to index
html 641a5d8 C-HW 2023-05-18 add link to index
Rmd 13d726d C-HW 2023-05-18 add DE results on different groups
html 13d726d C-HW 2023-05-18 add DE results on different groups
Rmd fc9f4b6 C-HW 2023-05-18 add new_criteria
html fc9f4b6 C-HW 2023-05-18 add new_criteria
html 7586953 C-HW 2023-05-11 add data_clusters
Rmd 703eb54 C-HW 2023-05-09 create workflowr
html 703eb54 C-HW 2023-05-09 create workflowr

Introduction

Motivation

Differential expression (DE) analysis in single-cell transcriptomics reveals cell-type-specific responses. Recent studies have raised concerns about current methods used to identify differentially expressed genes in this context.

  • scRNA sequencing provides the absolute abundances of RNA molecules in single cells, but normalization - a pre-processing step inherited from the bulk RNA-seq era - reduces this information and returns data as relative abundances, which may mask important differences among cell types

  • The majority of single-cell DE analysis methods are susceptible to generating false discoveries. This is mainly due to the lack of accounting for variations between biological replicates, commonly referred to as “donor effects”.

    • Batch effects are often estimated from leading principal components, representing a consensus from most genes.
    • Pseudo-bulk analysis ignores within-sample heterogeneity by treating donor effects as a fixed effect and assuming that each cell from the same donor is equally affected.
  • Clustering and DE analysis are different problems. The current commonly workflow works well in clustering, but cannot guarantee success in downstream analysis.

  • Excessive zeros are usually considered as “drop-outs”, while they are actually informative in cell-type heterogeneity. Ignoring zeros in single-cell gene expression data discards valuable information for any analysis.

We provide a generalized linear mixed model framework (GLMM) to detect differentially expressed genes (DEGs) between two given cell types. The model takes donor-specific variations as random effects, and uses raw UMI counts to prevent biases in DE analysis.

GLMM for DE analysis

Poisson GLMM

For each count Xcgk sampled from cell c, donor k, and gene g,

Xcgk|λcgkPoisson(λcgk)logλcgk=μg+Xcβg+ϵgk where Xc is the indicator for different cell types, and ϵgkN(0,σ2g) represents the random effects for donor k. Our goal is to test H0:βg=0. Here eβg represents the fold change of gene g between two cell types.

Binomial GLMM

1Xcgk=0|pcgkBernoulli(pcgk)logpcgk1pcgk=μg+Xcβg+ϵgk where Xc is the indicator for different cell types, and ϵgkN(0,σ2g) represents the random effects for donor k. Our goal is to test H0:βg=0.

new criteria

Application

Data summary

Data

Analysis and Methods comparison

Methods details
group12_13
group2_19
group8_17&2_19

Simulation