Last updated: 2021-11-10
Checks: 2 0
Knit directory: fitnessGWAS/
This reproducible R Markdown analysis was created with workflowr (version 1.6.2). 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 7449a90. 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:
Ignored files:
Ignored: .DS_Store
Ignored: .Rapp.history
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: .httr-oauth
Ignored: .pversion
Ignored: analysis/.DS_Store
Ignored: analysis/correlations_SNP_effects_cache/
Ignored: code/.DS_Store
Ignored: code/Drosophila_GWAS.Rmd
Ignored: data/.DS_Store
Ignored: data/derived/
Ignored: data/input/.DS_Store
Ignored: data/input/.pversion
Ignored: data/input/dgrp.fb557.annot.txt
Ignored: data/input/dgrp2.bed
Ignored: data/input/dgrp2.bim
Ignored: data/input/dgrp2.fam
Ignored: data/input/huang_transcriptome/
Ignored: figures/.DS_Store
Ignored: figures/fig1_inkscape.svg
Ignored: figures/figure1a.pdf
Ignored: figures/figure1b.pdf
Untracked files:
Untracked: big_model.rds
Untracked: code/quant_gen_1.R
Untracked: data/input/genomic_relatedness_matrix.rds
Untracked: old_analyses/
Unstaged changes:
Modified: .gitignore
Modified: figures/GWAS_stats_figure.pdf
Modified: figures/SNP_effect_ED.pdf
Modified: figures/TWAS_stats_figure.pdf
Modified: figures/antagonism_ratios.pdf
Modified: figures/boyle_plot.pdf
Modified: figures/composite_mixture_figure.pdf
Modified: figures/eff_size_histos.pdf
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 | 7449a90 | lukeholman | 2021-10-01 | Build site. |
Rmd | 01226ab | lukeholman | 2021-10-01 | wflow_publish("analysis/*") |
html | 6494956 | lukeholman | 2021-09-26 | Build site. |
Rmd | 3cbeccb | lukeholman | 2021-09-26 | Commit Sept 2021 |
html | a7065f6 | lukeholman | 2021-09-26 | Build site. |
Rmd | 44c520d | lukeholman | 2021-09-26 | Commit Sept 2021 |
html | 8d14298 | lukeholman | 2021-09-26 | Build site. |
Rmd | af15dd6 | lukeholman | 2021-09-26 | Commit Sept 2021 |
html | a50524c | lukeholman | 2021-03-04 | Build site. |
Rmd | 3f847f8 | lukeholman | 2021-03-04 | big first commit 2021 |
html | f5c3861 | lukeholman | 2021-03-04 | Build site. |
Rmd | 937e1ee | lukeholman | 2021-03-04 | big first commit 2021 |
html | 871ae81 | lukeholman | 2021-03-04 | Build site. |
html | e112260 | lukeholman | 2021-03-04 | Build site. |
html | 836a780 | lukeholman | 2021-03-04 | Build site. |
html | 359ff37 | lukeholman | 2021-03-04 | Build site. |
html | 5506c4b | lukeholman | 2021-03-04 | Build site. |
Rmd | 390a393 | lukeholman | 2021-03-04 | big first commit 2021 |
Rmd | 8d54ea5 | Luke Holman | 2018-12-23 | Initial commit |
html | 8d54ea5 | Luke Holman | 2018-12-23 | Initial commit |
This website relates to the forthcoming paper ‘A genome-wide scan for pleiotropic fitness effects on sexes and age classes in Drosophila’, by Wong and Holman.
Click the headings below to see the code, results, plots, tables and figures associated with this study.
This script creates a SQLite3 database holding two tables: one with annotations for each variant (provided by the Mackay lab), and one with annotations for each gene (from annotation hub). In step 3, we also add the GWAS results to this database, allowing memory-efficient handling of the results. Using this database also avoids having to load Bioconductor packages that conflict with dplyr::select()
, etc.
This script uses Bayesian mixed models implemented in brms
to estimate the line means for our four fitness traits.
We first present a table showing the proportion of variance in fitness explained by ‘DGRP line’, which was calculated using the models in Section 2. We then use gcta64
software to estimate the genetics (co)variances for the four fitness metrics from the genomic relatedness matrix.
This script first performs quality control and imputation on the dataset of SNPs and indels for the DGRP. Second, it runs mixed model association tests on our four phenotypes using the software GEMMA. Third, it uses PLINK to identify groups of loci that are in complete linkage disequilibrium (‘SNP clumps’).
Here, we use the R package mashr
to perform multivariate adaptive shrinkage on the results of the GWAS, for an LD-pruned subset of loci. This produces corrected estimates of each SNP’s effect size, and allows estimation of the frequencies of different types of loci (e.g. sexually- or age-antagonistic loci).
This script uses the transcriptomic data on the DGRP from Huang et al. 2015 PNAS. In this script, we
mashr
in canonical and data-driven modes.This script plots the estimated line means for each of the four fitness metrics, i.e. Figure 1 in the paper.
This script presents a searchable HTML table showing list of significant loci from the GWAS using GEMMA, with annotations, effect sizes, and p-values for each one.
Text here
Here, we plot the correlations in the estimated effects of each variant (or group of variants in perfect linkage disequilibrium with one another). For the GWAS results, we run linear models to test whether variants differ in their effect on fitness according to chromosome, site class, and minor allele frequency. For the TWAS results, we run linear models to test whether transcripts differ in their effect on fitness according to chromosome, average expression level, and the sex bias in expression.