Last updated: 2020-03-19
Checks: 2 0
Knit directory: misc/
This reproducible R Markdown analysis was created with workflowr (version 1.6.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 version displayed above was the version of the Git repository at the time these results were generated.
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:
Ignored files:
Ignored: .Rhistory
Ignored: .Rproj.user/
Untracked files:
Untracked: analysis/contrainedclustering.Rmd
Untracked: analysis/gsea.Rmd
Untracked: analysis/ideas.Rmd
Untracked: analysis/methylation.Rmd
Untracked: analysis/susie.Rmd
Untracked: code/sccytokines.R
Untracked: code/scdeCalibration.R
Untracked: data/bart/
Untracked: data/cytokine/DE_controls_output_filter10.RData
Untracked: data/cytokine/DE_controls_output_filter10_addlimma.RData
Untracked: data/cytokine/README
Untracked: data/cytokine/test.RData
Untracked: data/cytokine_normalized.RData
Untracked: data/deconv/
Untracked: data/scde/
Unstaged changes:
Modified: analysis/deconvolution.Rmd
Modified: analysis/index.Rmd
Deleted: data/mout_high.RData
Deleted: data/scCDT.RData
Deleted: data/sva_sva_high.RData
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 R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view them.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 8367e78 | DongyueXie | 2020-03-19 | wflow_publish(“analysis/ruv4.Rmd”) |
html | b465036 | Dongyue Xie | 2020-01-06 | Build site. |
Rmd | 50f2746 | Dongyue Xie | 2020-01-06 | wflow_publish(“analysis/ruv4.Rmd”) |
Assume true relationship, \(Y = XB + Z\Gamma + E\), \(Z\) is unobserved and can be high correlated with \(X\). Goal: find a good surrogate of \(Z\), split the effects of \(X\) and \(Z\) on \(Y\).
Methods:
Remove top PCs of \(Y\)(Price et al. (2006)). Need \(Z\Gamma\) dominates \(XB\), otherwise removes effects of \(X\).
Remove top PCs of \(Y-X\hat B\). But confounder effects \(Z\Gamma\) are also removed.
SVA. The idea is to find a subset of [negative control] genes that are associated with Z but not with X. Weighted SVD with gene weight \(p(B_i=0,\Gamma_i\neq 0|Y,X,\hat Z)\).
RUV-4. Need to know genes \(B_i=0\)
LEAPP. Assume \(B\) is sparse and \(Z = X\alpha + W\). Assume we have one variable of interest \(B=\beta^T\), then model is \[Y = X(\beta+\Gamma\alpha)^T+(W\Gamma+E)\]
QR decompositon of \(X\) is \(X=QR\), where \(R=(||x||_2,0,0,...,0)^T\). Then \[Q^TY = R\beta^T+Q^TZ\Gamma^T+Q^TE\].
Then the second to the last row of \(Q^TY\) follows \(N(0,\Gamma\Gamma^T+E)\).
Open problems: 1. In addition to multiple testing, the surrogate variable analysis framework can solve many other high-dimensional problems, e.g., classification 2. Beyond linear models: High-dimensional random effects model; GLM; Varying coefficients model; Tree-based methods… 3. Beyond PCA