Code to generate the data and website for Rat TWAS Hub
Code for running large-scale multi-modal TWAS analyses in rat and producing static Markdown reports. This repository contains scripts that compute TWAS statistics for many traits, merge and annotate them, produce reports, and generate an interactive website. This code is adapted from the (human) TWAS HUB. It extends gene expression-based TWAS to multimodal RNA phenotypes (xTWAS) using Pantry to generate the transcriptome models.
The code uses the following parameter files:
panels.par: Statistics on the transcriptome reference panels used. AMODALITYcolumn has been added for xTWAS.all_models.par: Statistics on each of the predictive models. TheSnakefileassembles this from the FUSION profiler script outputs.traits.par: Information on each of the traits/TWAS studies performed. Important, theOUTPUTcolumn must to point to the merged results from all chromosomes for that trait.gene_names.tsv: Lookup table to convert the Ensembl IDs in the results to gene symbols for the site. TheSnakefileassembles this from a gene annotation GTF file.
- Use Snakemake with the included
Snakefileto run TWAS (FUSION) and post-processing. - Run
scripts/build_jekyll.shto generate the Jekyll template. cd jekylland thenbundle exec jekyll buildto generate the site.