Code Monkey home page Code Monkey logo

caringwithoutsharing's Introduction

Caring Without Sharing

A complete pipeline for performing GWAS in a decentralized fashion. We perform QC, PCA and logistic regression in two scenarios. In scenario 1, we randomly split the data into five silos. In scenario 2, we split the data based on case control status. In both scenarios, we compare the results to a centralized analysis and demonstrate that almost perfect numerical agreement can be achieved. We furthermore, investigate our performance on extremely rare alleles and show that out pipeline can achieve the accuracy of a centralized pipeline when the allele count per silo is too low for meta studies to perform well. You can find our preprint here. This work is currently under submission.

Included files:

  • Plots_Analysis.ipynb: Notebook with the analysis results for scenario 1, 2.
  • rare_allele_sim.ipynb: Code/plots analysis of FE vs our method for very rare alleles.
  • add_pheno.py: Simulates a phenotype and performs a local GWAS.
  • scenario1.py: Code for generating the data for scenario 1.
  • scenario2.py: Code for generating the data for scenario 2.
  • data/prep_samples.sh: PLINK pipeline to subset the data for simulated GWAS.
  • data/toExclude.txt: Outlier individuals excluded from the analysis.
  • optimizationAux.py: Auxiliary files for running lbfgsb for admm regression.
  • corr.pyx: fast correlation compuatation. Same method as used by PLINK.
  • qc_utils.py: Utilities for running PLINK commands and comparing hdf stores with plink outputs
  • process_chiamo.py: Utility functions for reading PLINK/chiamo files to hdf (chiamo files were not used in our experiments)

caringwithoutsharing's People

Contributors

apoursh avatar

Stargazers

Wendy Wong avatar

Watchers

 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.