Last updated: 2020-10-25

Checks: 2 0

Knit directory: Comparative_eQTL/analysis/

This reproducible R Markdown analysis was created with workflowr (version 1.5.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:    .DS_Store
    Ignored:    .RData
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    WorkingManuscript.zip
    Ignored:    WorkingManuscript/
    Ignored:    analysis/.DS_Store
    Ignored:    analysis/.Rhistory
    Ignored:    analysis_temp/.DS_Store
    Ignored:    big_data/
    Ignored:    code/.DS_Store
    Ignored:    code/snakemake_workflow/.DS_Store
    Ignored:    code/snakemake_workflow/.Rhistory
    Ignored:    data/.DS_Store
    Ignored:    data/FinalSourceData/.DS_Store
    Ignored:    data/PastAnalysesDataToKeep/.DS_Store
    Ignored:    figures/
    Ignored:    output/.DS_Store

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 aae75ef Benjmain Fair 2020-10-26 update site
Rmd 7fc5e9c Benjmain Fair 2020-09-09 update site, address reviewers
html 7fc5e9c Benjmain Fair 2020-09-09 update site, address reviewers
Rmd bfa790a Benjmain Fair 2019-10-10 update site
html bfa790a Benjmain Fair 2019-10-10 update site
Rmd 71db33a Benjmain Fair 2019-10-03 update site
html 71db33a Benjmain Fair 2019-10-03 update site
Rmd cf50e71 Benjmain Fair 2019-08-21 update site
html cf50e71 Benjmain Fair 2019-08-21 update site
Rmd b62b089 Benjmain Fair 2019-08-21 update site
html b62b089 Benjmain Fair 2019-08-21 update site
Rmd fdbae12 Benjmain Fair 2019-08-14 updates
Rmd 641b1d9 Benjmain Fair 2019-07-11 update site
html 641b1d9 Benjmain Fair 2019-07-11 update site
Rmd 34e6b4f Benjmain Fair 2019-07-11 update site
html 34e6b4f Benjmain Fair 2019-07-11 update site
Rmd c3dbe5a Benjmain Fair 2019-06-19 update site
html c3dbe5a Benjmain Fair 2019-06-19 update site
Rmd 22eda3a Benjmain Fair 2019-06-12 update site
html 22eda3a Benjmain Fair 2019-06-12 update site
Rmd 7ef6fe2 Benjmain Fair 2019-06-11 update site
html 7ef6fe2 Benjmain Fair 2019-06-11 update site
html 8ab5bbf Benjmain Fair 2019-05-02 update site
Rmd f47ec35 Benjmain Fair 2019-04-25 updated site
html f47ec35 Benjmain Fair 2019-04-25 updated site
Rmd e592335 Benjmain Fair 2019-04-04 build site
html e592335 Benjmain Fair 2019-04-04 build site
html 905723c Benjmain Fair 2019-03-20 updated link
Rmd 8f7c737 Benjmain Fair 2019-03-20 updated link
Rmd 8dd795f Benjmain Fair 2019-03-20 First analysis on workflowr
html 8dd795f Benjmain Fair 2019-03-20 First analysis on workflowr
html 5b477a3 Benjmain Fair 2019-03-19 Build site.
Rmd b1207ee Benjmain Fair 2019-03-19 Start workflowr project.

This site contains exploratory analysis notebook and R code to make most of the figures for DOI: 10.7554/eLife.59929. This site only contains R code (Rmarkdowns), including code to make most all of the figures from the paper. Many of these Rmarkdowns read data included in the associated repository in the data and output directories. To run through R code on this site, clone the repository, and run Rmarkdowns from the analysis directory. Besides the figure source data and supplemental tables in the publication, other processed or semi-processed data (eg count tables) is available in the associated repository. Reproducible code for other aspects of this project is in a snakemake pipeline in code. See the code/snakemake_workflow/README for more info on how to run that.

Abstract

Inter-individual variation in gene expression has been shown to be heritable and is often associated with differences in disease susceptibility between individuals. Many studies focused on mapping associations between genetic and gene regulatory variation, yet much less attention has been paid to the evolutionary processes that shape the observed differences in gene regulation between individuals in humans or any other primate. To begin addressing this gap, we performed a comparative analysis of gene expression variability and expression quantitative trait loci (eQTLs) in humans and chimpanzees, using gene expression data from primary heart samples. We found that expression variability in both species is often determined by non-genetic sources, such as cell-type heterogeneity. However, we also provide evidence that inter-individual variation in gene regulation can be genetically controlled, and that the degree of such variability is generally conserved in humans and chimpanzees. In particular, we found a significant overlap of orthologous genes associated with eQTLs in both species. We conclude that gene expression variability in humans and chimpanzees often evolves under similar evolutionary pressures.

Raw data

Raw data for this project includes post mortem heart-tissues:

Code for results and exploration

Association testing with various models

  • first iteration: description: lmm with KING-robust GRM thresholded at 0, and 3 genotype PCs
  • Check residuals after regressing out some covariates
  • second iteration: description: lm with 5 genotype PCs (PCs 4 and 5 takes into account some first hand relatedness) and more stringent genotype filtering. Also, outlier sample MD_And dropped from analysis
  • Third iteration
  • fourth iteration: description, lmm with 4 PCs and 3 Genotype PCs, used STAR RNA-seq CPM for less outliers. Fixed big bug that was permuting samples, resulting in no true hits in previous iterations. Here I used standardization and qqnorm.
  • Final iteration: see paper for methods details. In short, I used lmm with kinship matrix (implented in MatrixEQTL) with 10 expression PCs as covariates. QQ-plots of permutation control and real samples indicates some eQTLs and well calibrated P-values.

Conservation and GO/GSEA analysis

Power analysis for inter-species differential expression

  • PowerAnalysisFromOrinalDataset DE gene analysis based on subsampling ~39 chimp samples & 50 human samples (mostly GTEx)… Note that there are some outlier samples that I want to purge in later iterations of this analysis.

Differential contacts

  • Do differential DNA contacts between species explain differences in eGene character between species.
  • First crude analysis In this analysis I asked whether the there is a correlation between the rank difference in eGenes between species, and the difference in the sum of contacts in each species’ cis-window for each gene
  • There was a slight but significant correlation, but I worry about a potential bias introduced by the fact that eGene significance for humans was based on cis-eQTL calling with a 1MB window and chimp was a 250kB window. I should control for this.
  • Check that human lead snps in 250kB window are reasonable As expected, the p-value for lead snps within 250kb is well correlated for the eGene p-value, with the exception that there are many genes with much lower eGene pvalues probably because there is a better SNP >250kb away
  • After controlling for cis-window-size

Shared polymorphic loci

  • QQ Plot of species shared polymorphisms Of all the shared polymorphic loci (putative targets of balancing selection), do they have inflated cis-eQTL P-values compared to a random set of snp-gene tests.

Code for final figures and analysis

  • todo… haven’t build these markdowns yet.

Reviewer comments