目前GWAS方向发了不少文献,可是并无一个很完善的R包对这些文献的数据进行汇总。html
接下来推荐的这个是最新发表的GWAS数据汇总R包。看了一下功能齐全,可是数据不是收录的很齐全。
下面具体讲一下。git
install.packages("remotes")
github
remotes::install_github("ramiromagno/gwasrapidd")
api
library(gwasrapidd)
测试
my_studies <- get_studies(efo_trait = 'autoimmune disease')
code
n(my_studies)
htm
my_studies@studies$study_id
blog
my_studies@publications$title
ci
open_in_pubmed(my_studies@publications$pubmed_id)
开发
my_associations <- get_associations(study_id = my_studies@studies$study_id)
dplyr::filter(my_associations@associations, pvalue < 1e-6) %>% # Filter by p-value
tidyr::drop_na(pvalue) %>%
dplyr::pull(association_id) -> association_ids # Extract column association_id
my_associations2 <- my_associations[association_ids]
n(my_associations2)
my_associations2@risk_alleles[c('variant_id', 'risk_allele', 'risk_frequency')] %>%
print(n = Inf)
s2 <- get_studies(variant_id = 'rs12752552')
测试了一下,优势是减去了不少信息检索的工做,缺点是这个包刚开发不久,信息还不够齐全
更多详细信息请看gwasrapidd
参考文献:Magno R, Maia A T. gwasrapidd: an R package to query, download and wrangle GWAS Catalog data[J]. bioRxiv, 2019: 643940.