项目作者: tydarnell

项目描述 :
An R Package for Causal Mediation Analysis of ROSMAP Data
高级语言: R
项目地址: git://github.com/tydarnell/GeneticMediation.git
创建时间: 2020-04-23T17:55:28Z
项目社区:https://github.com/tydarnell/GeneticMediation

开源协议:GNU General Public License v3.0

下载


" class="reference-link">Genetic Mediation

An R Package for Causal Mediation Analysis of ROSMAP Data

Overview

GeneticMediation was created as part of the UNC Wu
Lab
project Constructing Causal
Mediation Pathways For Multi-Level Genomic Data

GeneticMediation provides methods for cleaning and processing data
from the ROSMAP study and preparing it for causal mediation analysis.

The documentation pdf can be viewed
here

Installation

You can install GeneticMediation from GitHub
with:

  1. # install.packages("devtools")
  2. devtools::install_github("tydarnell/GeneticMediation")

Prerequisites

  1. ####################################################################################
  2. #
  3. # Software:--------------------------------------------------------
  4. #
  5. # R version >= 3.6.1
  6. # devtools (to install GeneticMediation package from github)
  7. # Rstudio (highly recommended)
  8. #
  9. # Data:------------------------------------------------------------
  10. #
  11. # ROSMAP Study:**************************************************
  12. # ReadCounts.csv
  13. # H3K9acDomains.csv
  14. #
  15. # UNC Wu Lab:****************************************************
  16. # snps.txt
  17. # JulyselGeneBySNP.1030.RData
  18. # mediator_chr#_new.RData (each chr has a separate RData file)
  19. #
  20. ####################################################################################

Data Access

Setup

1) Create an Rproject in Rstudio

2) Install and load GeneticMediation from
GitHub with:

  1. # devtools::install_github("tydarnell/GeneticMediation")
  2. library(GeneticMediation)

3) Create subdirectories of your Rproject directory: data,
data/mediator, results with:

  1. GeneticMediation::setup_folders()

4) Put all data except for the mediator_chr#_new.RData files in the
data folder

5) Put the mediator_chr#_new.RData files in the mediator folder

6) Check that data files are in the data folder with:

  1. GeneticMediation::check_data()