Giter Club home page Giter Club logo

timshel-2020's Introduction

This code is associated with the paper from Timshel et al., "Genetic mapping of etiologic brain cell types for obesity". eLife, 2020. http://doi.org/10.7554/eLife.55851

Mapping heritability of obesity by cell types

This repository contains code to reproduce analysis and figures in presented in:

Timshel (bioRxiv, 2020): Mapping heritability of obesity by cell types

image

Steps to reproduce analysis

  1. Download and prepare single-cell expression datasets: src/prep-expr_datasets/<dataset>-preprocessing.R

  2. Perform CELLEX* ES precomputation: src/es/run_es_precalculation.ipynb

  3. Calculate CELLEX* ES: src/es/run_es_calculation.sh

  4. Run CELLECT analysis:

    CELLECT-LDSC config files in src/CELLECT-LDSC
    CELLECT-MAGMA using scripts in src/CELLECT-MAGMA

    Note that to run these analysis, you will have to download the relevant GWAS summary stats from the consortium hosting the files. We are not allowed to share (redistribute) the the summary statistics. Details on the GWAS summary stats and how they where 'munged' can be found in src/prep-gwas_munge/README-cmds_munge_sumstats.txt

  5. Generate figures and tables using the scripts in src/publication**

*Since finishing the manuscript, we have implemented CELLEX in Python available here. We recommend using Python CELLEX as it is easier to use for new users.

**For cross-platform portability we used renv to create a reproducible environment for the R code used to produce the figures/tables. You can install the environment (i.e. CRAN packages) by running

renv::restore(repos = c(CRAN = "https://cloud.r-project.org"),
              lockfile="./renv.lock")

(See the renv.lock file here.)

Additional repositories to reproduce analysis

Code to reproduce cell-type co-expression networks can be found here: 19-BMI-brain-wgcna

Code to reproduce 'obesity geneset' enrichment tests can be found here: 19-BMI-brain-genesettests

image

Figures and tables

All output figures (.pdf) and tables (.csv) are available in this repository: src/publication/figs and src/publication/tables.

timshel-2020's People

Contributors

pascaltimshel avatar elife-exeter avatar pvtodorov avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.