Giter Club home page Giter Club logo

bbmri_surrogates_twas's Introduction

README

This repository contains the code used to run data analyses for Metabolic predictors of phenotypic traits can replace and complement measured clinical variables in transcriptome-wide association studies by Anna Niehues, Daniele Bizzarri, Marcel J.T. Reinders, P. Eline Slagboom, Alain J. van Gool, Erik B. van den Akker, and Peter A.C. 't Hoen, with the BBMRI-NL BIOS and Metabolomics Consortia.

Installation

To run analyses in the SURF Research Cloud of the BBMRI-NL BIOS consortium, create a BBMRI BIOS flavoured R-Studio version 4.0.3 workspace and clone this repository. Run the RStudio server, install the R package renv - install.packages("renv"), open the R project surrogate_vs_reported\surrogate_vs_reported.Rproj, and restore the project's dependencies - renv::restore().

Executing the workflow

This project uses drake for workflow management. Run the script surrogate_vs_reported\run.R to run the complete pipeline and render markdown reports with the results.

See surrogate_vs_reported\interactive.R for example commands to run drake workflow in an interactive R session.

Troubleshooting and help

Using renv package environment

A brief overview of commands is given below. See this introduction to the renv workflow for more detail.

renv::init()      # initialize the project package environment, create lockfile
renv::snapshot()  # save current state of library to lockfile `renv.lock`
renv::restore()   # restore environment from lockfile (e.g. in a new VM)

Manual installation of Bioconductor libraries

This might be necessary if packages are not automatically restored from surrogate_vs_reported\renv.lock.

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("preprocessCore", update = FALSE)
BiocManager::install("bacon", update = FALSE)
BiocManager::install("limma", update = FALSE)
BiocManager::install("edgeR", update = FALSE)
BiocManager::install("fgsea", update = FALSE)
BiocManager::install("org.Hs.eg.db", update = FALSE)
BiocManager::install("reactome.db", update = FALSE)
renv::snapshot()

Checking data availability via BBMRIomics

library(BBMRIomics)
data(package = "BBMRIomics")
# example data load
# BBMRIomics::bbmri.data(rnaSeqData_ReadCounts_NTR_Freeze2_unrelated)

bbmri_surrogates_twas's People

Contributors

niehues avatar

Watchers

 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.