tidy_eQTL_psychencode: Tidy psychencode eQTLs for use with coloc.

View source: R/coloc_eQTL_tidying.R

tidy_eQTL_psychencodeR Documentation

Tidy psychencode eQTLs for use with coloc.

Description

Tidy psychencode eQTLs for use with coloc.

Usage

tidy_eQTL_psychencode(psychencode_QTLs, psychencode_SNP_info, add_colnames = T)

Arguments

psychencode_QTLs

df. Full set of cis-eQTLs with no p-value or FDR filtering as downloaded from http://resource.psychencode.org/.

psychencode_SNP_info

df. SNP information for all QTLs considered, including rsIDs (if available), location, and reference and alternate alleles, as downloaded from http://resource.psychencode.org/.

add_colnames

logical. Should columne names be added to the file? Default is TRUE i.e. assumes user has not derived column names for full summary statistic from another psychencode-derived file.

Value

Tidy dataframe with psychencode eQTLs. Note that the dataframe includes an additional column (SNP_rs). This is necessary for MAF lookup, but should be removed prior to submitting to colochelpR::get_coloc_results().


RHReynolds/colochelpR documentation built on June 18, 2022, 5:53 a.m.