Giter Club home page Giter Club logo

brainxcan's Introduction

brainxcan

S-BrainXcan takes GWAS as input and return the association between GWAS phenotype and a list of brain image-derived phenotypes.

  • BrainXcan manuscript is at link
  • Software documentation is at link
  • BrainXcan database is downloadable from Zenodo at link
  • Analysis scripts is at link

IMPORTANT NOTE: https://github.com/liangyy/brainxcan is DEPRECATED. Please go to https://github.com/hakyimlab/brainxcan for the latest BrainXcan software.

Installation notes

Software dependencies

The software is built upon both Python and R scripts along with some standalone executables. Here we provide a conda environment containing all the Python dependencies and snakemake.

conda env create -f environment.yml

Also, install plink 1.9 which will be used for LD clumping in MR analysis.

By default, the pipeline call python, Rscript, and plink as is. And you can provide the path to the desired executables in the configuration file. For instance,

# in config.[name].yaml
rscript_exe: 'path-to/Rscript' 
python_exe: 'path-to/python'
plink_exe: 'path-to/plink'

Standalone R

R dependencies are: ggplot2, dplyr, optparse, logging, rmarkdown, pdftools, patchwork, oro.nifti, data.table, pander, arrow, TwoSampleMR, qvalue.

Below, we provide an example for installing R dependencies as a conda environment. Any standalone R installation with these dependent packages being installed should work just fine.

$ conda create -n r_36 -y
$ conda activate r_36
(r_36) $ conda install -c r r
(r_36) $ conda install -c conda-forge r-arrow
(r_36) $ conda install -c conda-forge r-pdftools
(r_36) $ conda install -c conda-forge r-gmp
(r_36) $ conda install -c conda-forge r-rio
(r_36) $ conda install -c conda-forge r-pander
(r_36) $ conda install -c conda-forge r-sf
(r_36) $ conda install -c conda-forge r-stars
(r_36) $ conda install -c conda-forge r-plotly
(r_36) $ conda install -c conda-forge r-ggnewscale
(r_36) $ R
# inside R
> install.packages(c('ggplot2', 'dplyr', 'logging', 'optparse', 'rmarkdown', 'patchwork', 'oro.nifti', 'data.table', 'remotes', 'raster', 'rgeos'))
> remotes::install_github("MRCIEU/TwoSampleMR")
> devtools::install_github("jdstorey/qvalue")

Mix-BrainXcan

Mix-BrainXcan is implemented in standalone R scripts independent of the S-BrainXcan pipeline. Mix-BrainXcan code is at [https://github.com/hakyimlab/brainxcan/tree/main/brainxcan/mix_brainxcan] and please take a look at example.R for an illustrative example.

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.