GithubHelp home page GithubHelp logo

chorscroft / mr-and-selection Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 59.95 MB

Documents and code for the MR and selection project

Home Page: https://chorscroft.github.io/MR-and-selection/

R 92.02% Shell 7.98%

mr-and-selection's People

Contributors

chorscroft avatar explodecomputer avatar

Watchers

 avatar  avatar  avatar

Forkers

zerland

mr-and-selection's Issues

Meta-analysis of male and female number of children

So the objective here is to take the GWAS for males and GWAS for females, and create a new one which has the same number of SNPs but a single combined effect for each SNP. In doing so we can also test each SNP whether they have different effects in males and females using a heterogeneity test statistic.

  1. Get the GWAS summary data for the male and female traits

You should be able to download them from here:
https://gwas.mrcieu.ac.uk/datasets/ukb-b-1209/
https://gwas.mrcieu.ac.uk/datasets/ukb-b-2227/

  1. Extract from gwas-vcf format to plain text format e.g.
    https://github.com/MRCIEU/gwas2vcf/blob/master/README.md#export-to-nhgri-ebi-gwas-catalog-format

  2. Use a tool like METAL to meta-analyse the
    https://genome.sph.umich.edu/wiki/METAL_Documentation
    What you do is create a configuration text file that specifies the files, the columns in the files, and what analysis to run. Then you pass that file to the METAL binary

  • Meta-analyse betas and SE rather than p-values and sample size (e.g. use the "SCHEME STDERR" option)
  • Genomic control OFF
  • Use AVERAGEFREQ ON
  • use "ANALYSE HETEROGENEITY" instead of ANALYSE, to get the heterogeneity test statistics
  1. Once you have the new GWAS dataset, that can be uploaded to OpenGWAS using the GwasDataImport R package: https://mrcieu.github.io/GwasDataImport/articles/import_pipeline.html
    Note that this won't be able take the heterogeneity results, so if we are to use any of that info at some point it will have to be from the meta-analysis results file directly.

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.