Giter Site home page Giter Site logo

coloc's Introduction

coloc

NB! Not a polished product. A workflow for running colocalisation analysis on eQTL vs pQTL or eQTL vs GWAS data. The analyses performed are CLPP (colocalisation posterior probability), coloc.abf (here referred to as coloc v3) and coloc.susie (here referred to as coloc v5). To run the workflow, submit run_pqtl.sh or run_gwas to HPC.

Usage

Input parameters:

  • --eqtl_tsv TSV file with 6 columns. Example in sample_data/sample_eqtl.tsv.
  • eqtl_dataset_id Dataset name or identifier.
  • eqtl_sumstats Summary statistics file containing the following columns: molecular_trait_id, chromosome, position, ref, alt, variant, ma_samples, maf, pvalue, beta, se, type, ac, an, r2, molecular_trait_object_id, gene_id, median_tpm, rsid
  • eqtl_sumstats_index Tabix-generated index file for the summary statistics file.
  • eqtl_permuted Permutation file containing the following columns: molecular_trait_object_id, molecular_trait_id, n_traits, n_variants, variant, chromosome, position, pvalue, beta, p_perm, p_beta
  • eqtl_credible_sets Credible sets file containing the following columns: molecular_trait_id, gene_id, cs_id, variant, rsid, cs_size, pip, pvalue, beta, se, z, cs_min_r2, region
  • eqtl_lbf LBF variable file containing the following columns: molecular_trait_id, region, variant, chromosome, position, lbf_variable1, lbf_variable2, lbf_variable3, lbf_variable4, lbf_variable5, lbf_variable6, lbf_variable7, lbf_variable8, lbf_variable9, lbf_variable10
  • --pqtl_tsv (only for run_pqtl.sh). TSV file formatted exactly like eqtl_tsv, only the prefix changes from "eqtl" to "pqtl". Example in sample_data/sample_pqtl.tsv`.
  • --gwas_tsv (only for run_gwas.sh). TSV file with 5 columns. Example in sample_data/sample_gwas.tsv.
  • gwas_subset Subset name or identifier.
  • gwas_clpp TSV file containing the following columns: molecular_trait_id, region, variant, chromosome, position, ref, alt, cs_id, cs_index, pip, z, cs_min_r2
  • gwas_coloc3 TSV file containing the following columns: molecular_trait_id, region, variant, ref, alt, chromosome, position, maf, beta, se, an, ac, n, log10p, info
  • gwas_coloc5 TSV file containing the following columns: molecular_trait_id, region, variant, chromosome, position, lbf_variable1, lbf_variable2, lbf_variable3, lbf_variable4, lbf_variable5, lbf_variable6, lbf_variable7, lbf_variable8, lbf_variable9, lbf_variable10
  • --chromosomes comma-separated list of chromosomes.
  • --n_chromosomes number of chromosomes in previous list
  • --chr_batches number of splits to create for each chromosome (1 would analyse the entire chromosome, 3 would split each chromosome into 3 different jobs).
  • --metadata_file File to use for reference file creation. Examples
  • --outdir Directory to write the results to.

Bioinformatics example

  1. Download necessary files by navigating to bioinformatics_example/bioinformatics_data and running sbatch download_data.sh in the terminal (takes a while).
  2. Navigate to main folder, start workflow execution from terminal with the command sbatch run_bioinformatics_gwas.sh or sbatch run_bioinformatics_pqtl.sh
  3. The results will appear in results_bioinformatics_gwas or results_bioinformatics_pqtl, respectively.

coloc's People

Contributors

ralf-tambets 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.