Coder Social home page Coder Social logo

hasihays / autism_precision_medicine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luoyuanlab/autism_precision_medicine

0.0 0.0 0.0 123 KB

Nature Medicine paper. A Multidimensional Precision Medicine Approach for Autism Subtype Identification.

License: MIT License

Shell 82.07% Python 0.96% R 16.98%

autism_precision_medicine's Introduction

A Multidimensional Precision Medicine Approach for Autism Subtype Identification

The promise of precision medicine lies in data diversity. More than the sheer size of biomedical data, it is the layering of multiple data modalities, offering complementary perspectives, that is thought to enable the identification of coherent patient subgroups with shared pathophysiology. Here we use autism spectrum disorder (ASD) to test this notion. By combining healthcare claims, electronic health records, familial whole-exome sequences, and neurodevelopmental gene expression patterns, we identified a subgroup of patients with dyslipidemia-associated ASD.

For more details, see the accompanying paper (link available soon).

Installation

First, clone this repository and enter the directory by running:

git clone https://github.com/yuanluo/autism_precision_medicine
cd autism_precision_medicine

The repository is implemented in R 3.x and Python 2.7.x, and depends on the following packages:

  • reshape2
  • ggplot2
  • scales
  • igraph
  • GenomicRanges
  • VariantAnnotation
  • grid
  • pheatmap
  • hash
  • genefilter
  • rtracklayer
  • MASS
  • foreach
  • doMC

Usage

Setting Paths

Paths can be set in the configuration file giConfig.R. In that file, the major paths are: dn.ndar that contains intermediate files for NDAR (https://ndar.nih.gov), e.g., variant annotations, compiled genotypes etc; dn.base that contains base data, e.g., from BrainSpan (http://developinghumanbrain.org). We are not authorized to share those datasets, but they are directly available from the above links.

Running Code

Much of our code is designed to run a High Performance Computing (HPC) cluster, due to the highly parallel nature of the major processing steps. Following are examples of such steps. We have included examples for popular parallel job scheduling systems including LSF and Slurm.

Parallel Computation of Correlation among Exon Pairs from BrainSpan RNA-Seq data

Run the script pcor.sh, this script submit jobs to LSF scheduling system. This code is generated by the Python script import pscripts as ps function ps.expr_cor_parallel_script() that utilizes pcor_tmp.lsf and pcor_tmp.sh.

Printing Exon Clusters

To print the exons contained in the exon clusters

source('printAllECs.R')
source('printl2AllECs.R')

Cross Tabulating the Variant Annotation Files

Run the script pCrossTabVA.sh, this script submit jobs to LSF scheduling system.

Reading Genotype Out of Cross Tabulated Variant Annotations

Run the script read_genotype_discordant.sh, this script submit jobs to Slurm scheduling system. This code is generated by the Python script import pscripts as ps function ps.read_genotype_discordant_slm_parallel_script() that utilizes read_genotype_discordant_tmp.lsf and read_genotype_discordant_tmp.sh.

Generating the Lookup Table for SSC Family:

source('sscFamLookupTabBatch.R')

Generating the Lookup table for Multiplex Family:

source('ndarMultiplexSubjLookupTabBatch.R')

Generating Deleterious Variants Table

These tables contain deleterious variants (defined in delMuts.R) from subjects of different cohorts. To obtain them, run

source('discordantDelvar.R')
source('multiplexDelvar.R')
source('discordantl2Delvar.R')
source('multiplexl2Delvar.R')

Plotting the Exon Progression:

There are 3 modes of plotting:

  • Line plotting with error bars
  • LOWESS smoothed plotting
  • Developmentally phased plotting

To obtain them, run

source('ecTempProgressLOWESS.R')
source('ecTempProgressPhase.R')
source('ecTempProgress.R')
source('ecl2TempProgressLOWESS.R')
source('ecl2TempProgressPhase.R')
source('ecl2TempProgress.R')

Citation

Luo, Y., Eran, A., Palmer, N. et al. A multidimensional precision medicine approach identifies an autism subtype characterized by dyslipidemia. Nat Med (2020). https://doi.org/10.1038/s41591-020-1007-0

autism_precision_medicine's People

Contributors

yuanluo 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.