Published January 8, 2023
| Version 1.0
Software
Open
Pitfalls and opportunities for applying latent variables in single-cell eQTL analyses
Authors/Creators
- 1. Garvan Institute of Medical Research
Description
This repository contains the analysis code pipeline to generate PEER factors from pseudo-bulk data and perform eQTL association analysis as part of the manuscript "Pitfalls and opportunities for applying latent variables in single-cell eQTL analyses"
Scripts are listed by the order in the methods section of the manuscript:
- Extract the whole OneK1K dataset from .RDS and subgroup into 14 cell types
- Generate the pseudo-bulk mean matrix
- Generate PEER factors (PFs) with 13 QC options
- Extra information of runtime and nr of iterations
- Make new covariate files
- Run sensitivity test by MatrixeQTL
- Merge results
- Summarize and nr of eQTL and eGenes
- Down-sampling analysis
- Principal component analysis (PCA)
- Generate PCs by PCAForQTL
- Run eQTL sensitivity test adjusting PCs 0-50 (similar to PFs)
- Main figures and supplementary figures
- Include the analysis for identifying the optimal number of latent variables by comparing automatic elbow detection method and our local greedy method.
All code is also available on Github: https://github.com/powellgenomicslab/PEER_factors or https://github.com/anglixue/PEER_factors
Files
PEER_factors-main.zip
Files
(75.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:6bbd656645888bd546a0f0f28886d01d
|
75.2 kB | Preview Download |
Additional details
Related works
- Is supplemented by
- https://github.com/powellgenomicslab/PEER_factors (URL)