Kipoi-GWAS: Streamlined Variant Analysis Workflow with UK BioBank Data, Kipoi.
Kipoi-GWAS is a snakemake pipeline which
-
downloads UK BioBank association files
-
merges the annotation files with variant effect predictions using Kipoi
-
runs FGWAS to fine-map variants
-
generates a report
A sample report can be found here: src/fgwas_plot.ipynb .
General workflow of Kipoi-GWAS
Installation
- Clone the git repo.
git clone https://github.com/NCBI-Hackathons/Kipoi-GWAS
- Install conda environment.
conda env create -f environment.yml
- Install the python package
cd Kipoi-GWAS; pip install .
Folder structure
Here is the complete folder structure.
input/
UKBB/ # UK-biobank phenotypes downloaded from the UK Biobank site. Select phenotypes of interest. TODO
{phenotype}.gwas.imputed_v3.both_sexes.tsv.bgz {phenotype}.gwas.imputed_v3.both_sexes.tsv # after untarring the .bgz file
anno/ # variant annotation of the phenotypes found in UKBB
kipoi/ # annotated variants using `kipoi veff score_variants`
subset/
{chr}/
{model}.tsv.gz
output/
{phenotype}/
subset/
{chr}/
{run-id}/
metadata.json # information about the run
fgwas/
input/ # input tables for fgwas
output/ # output of fgwas, includes default outputs
report/ # reports
fig1.ipynb
fig1.html
Placeholders
-
{phenotype}
- the UKBB phenotype code goes here -
{chr}
- results are generated for associations in a particular chromosome. Example: chr12 -
{run-id}
- this is a manually selected placeholder which allows for the pipeline to be run for different combinations of variant annotations
Code Snippets
13 14 | shell: "my_command -i {input.tsv} -type {params.study_type} -o {params.prefix}" |
58 59 60 61 62 63 | run: render_ipynb(input.ipynb, output.ipynb, params=dict(fgwas_output=input.fgwas, gwas=input.tsv, chr=wildcards.chr)) jupyter_nbconvert(output.ipynb) |
16 17 | shell: "wget {params.url} -O {output.bgz}" |
25 26 | shell: "zcat {input.bgz} > {output.tsv}" |
35 36 37 | run: study = config['study_hash'][wildcards.phenotype] prepare(wildcards.phenotype, input.tsv, study, input.phenotype_tsv, output.tsv) |
Support
Do you know this workflow well? If so, you can
request seller status , and start supporting this workflow.
Created: 1yr ago
Updated: 1yr ago
Maitainers:
public
URL:
https://github.com/NCBI-Hackathons/Kipoi-GWAS
Name:
kipoi-gwas
Version:
1
Downloaded:
0
Copyright:
Public Domain
License:
MIT License
- Future updates
Related Workflows
ENCODE pipeline for histone marks developed for the psychENCODE project
psychip pipeline is an improved version of the ENCODE pipeline for histone marks developed for the psychENCODE project.
The o...
Near-real time tracking of SARS-CoV-2 in Connecticut
Repository containing scripts to perform near-real time tracking of SARS-CoV-2 in Connecticut using genomic data. This pipeli...
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...
ATLAS - Three commands to start analyzing your metagenome data
Metagenome-atlas is a easy-to-use metagenomic pipeline based on snakemake. It handles all steps from QC, Assembly, Binning, t...
raw sequence reads
Genome assembly
Annotation track
checkm2
gunc
prodigal
snakemake-wrapper-utils
MEGAHIT
Atlas
BBMap
Biopython
BioRuby
Bwa-mem2
cd-hit
CheckM
DAS
Diamond
eggNOG-mapper v2
MetaBAT 2
Minimap2
MMseqs
MultiQC
Pandas
Picard
pyfastx
SAMtools
SemiBin
Snakemake
SPAdes
SqueezeMeta
TADpole
VAMB
CONCOCT
ete3
gtdbtk
h5py
networkx
numpy
plotly
psutil
utils
metagenomics
RNA-seq workflow using STAR and DESeq2
This workflow performs a differential gene expression analysis with STAR and Deseq2. The usage of this workflow is described ...
This Snakemake pipeline implements the GATK best-practices workflow
This Snakemake pipeline implements the GATK best-practices workflow for calling small germline variants. The usage of thi...