R/get_Nalls2019_coloc.R

Defines functions get_Nalls2019_coloc

Documented in get_Nalls2019_coloc

#' Get colocalization results with Nalls2019 GWAS
#' 
#' Get colocalization results computed by 
#' \href{https://doi.org/10.1093/hmg/ddab294}{Schilder et al. 2022}
#' between the \href{https://doi.org/10.1016/S1474-4422(19)30320-5}{
#' Nalls2019 Parkinson's disease GWAS} and all eQTL datasets in the 
#' \href{https://www.ebi.ac.uk/eqtl/}{eQTL Catalogue}.  
#' 
#' @source 
#' \code{
#' URL <- paste("https://github.com/RajLabMSSM/Fine_Mapping_Shiny/raw",
#'       "master/www/data/GWAS/Nalls23andMe_2019/_genome_wide/COLOC",
#'       "coloc.eQTL_Catalogue_ALL.csv.gz", sep="/")
#' tmp <- file.path(tempdir(), basename(URL))
#' utils::download.file(URL, tmp)
#' piggyback::pb_upload(file = tmp, repo = "RajLabMSSM/echodata")
#' }
#' @export
#' @importFrom data.table fread  
#' @examples 
#' coloc_res <- get_Nalls2019_coloc()
get_Nalls2019_coloc <- function(){ 
    tmp <- get_data(fname = "coloc.eQTL_Catalogue_ALL.csv.gz")
    coloc_res <- data.table::fread(tmp)
    return(coloc_res)
}
RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.