Giter Site home page Giter Site logo

christacaggiano / treewas-exploration Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 24.96 MB

exploration of TreeWas/TreeWas2 code for the Zaitlen lab. Based on TreeWas developed by McVean Lab @ Oxford.

R 0.61% Shell 0.01% HTML 99.39%
treewas biobank statistical-genetics

treewas-exploration's Introduction

Zaitlen Lab Exploration into TreeWas

UCSF

October 2018


Slides

TreeWas papers

This code draws from the methods described in the following papers:

Data

  • Repository uses UKBiobank genotype and phenotype data. Phenotype data codes are 20002 (self-reported illness, non-cancer) and 41142 and 41078 (hospital episode statistics) Paths to local Zaitlenlab data:

  • Disease classification comes from ICD10 codes

  • Phenotype matrix of all diseases here: /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/UKBIOBANK_DATA/

  • Genotypes can be selected using this script for SNP(s) of interest: /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/UKBIOBANK_DATA/scripts/generate_genotypes.sh

    • Parameters for this script: SNPs of interest (one on each line, ex: /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/UKBIOBANK_DATA/snps.txt) and an output prefix.
    qsub generate_genotypes <file of SNPs of interest> <output prefix>
    
    # ex: qsub generate_genotypes snps.txt output_snps
    • afterward, filter to people of interest using scripts/select_people.py
       qsub select_people.sh <ids> <output>
    
       # ex: qsub select_people.sh ../british_ancestry_ids.txt ../icd10_phenotype_british.txt
    
  • Age, sex, site of collection - british_covariates.txt

  • Filtered matrix of just British Isles ancestry - icd10_phenotype_british.txt

  • Filtered matrix of people who passed PLINK QC - icd10_passed_qc.txt

TreeWAS Scripts

  • Original treeWAS code /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/TreeWAS

  • Install treewas with R -

    library(devtools)
    install_github("mcveanlab/TreeWAS/TreeWAS")
  • Example TreeWAS code - /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/treewas_example.R

  • TreeWas2.0 code - /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/TreeWas2.0

    library(devtools)
    install_github("christacaggiano/TreeWASDir")
  • TreeWAS 2.0 Sample code-

  • /ye/zaitlenlabstore/christacaggiano/treeWas-exploration/treewas2.0_example.R

  • To save dynamic Plotly tree, click on export in Rstudio image window, and save as html.

treewas-exploration's People

Contributors

christacaggiano avatar

Stargazers

 avatar  avatar

Watchers

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