Package: ieugwasr 1.0.3

Gibran Hemani

ieugwasr: Interface to the 'OpenGWAS' Database API

Interface to the 'OpenGWAS' database API <https://api.opengwas.io/api/>. Includes a wrapper to make generic calls to the API, plus convenience functions for specific queries.

Authors:Gibran Hemani [aut, cre, cph], Ben Elsworth [aut], Tom Palmer [aut], Rita Rasteiro [aut]

ieugwasr_1.0.3.tar.gz
ieugwasr_1.0.3.zip(r-4.5)ieugwasr_1.0.3.zip(r-4.4)ieugwasr_1.0.3.zip(r-4.3)
ieugwasr_1.0.3.tgz(r-4.5-any)ieugwasr_1.0.3.tgz(r-4.4-any)ieugwasr_1.0.3.tgz(r-4.3-any)
ieugwasr_1.0.3.tar.gz(r-4.5-noble)ieugwasr_1.0.3.tar.gz(r-4.4-noble)
ieugwasr_1.0.3.tgz(r-4.4-emscripten)ieugwasr_1.0.3.tgz(r-4.3-emscripten)
ieugwasr.pdf |ieugwasr.html
ieugwasr/json (API)
NEWS

# Install 'ieugwasr' in R:
install.packages('ieugwasr', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mrcieu/ieugwasr/issues

Pkgdown site:https://mrcieu.github.io

On CRAN:

Conda:

10.71 score 89 stars 6 packages 404 scripts 3.0k downloads 31 exports 23 dependencies

Last updated 7 hours agofrom:4827c8f28c. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 13 2025
R-4.5-winOKMar 13 2025
R-4.5-macOKMar 13 2025
R-4.5-linuxOKMar 13 2025
R-4.4-winOKMar 13 2025
R-4.4-macOKMar 13 2025
R-4.4-linuxOKMar 13 2025
R-4.3-winOKMar 13 2025
R-4.3-macOKMar 13 2025

Exports:afl2_chrposafl2_listafl2_rsidapi_queryapi_statusassociationsbatch_from_idbatchescheck_access_tokeneditcheckfill_nget_opengwas_jwtget_query_contentgwasinfogwasinfo_filesinfer_ancestryld_clumpld_clump_localld_matrixld_matrix_localld_reflookuplegacy_idslogging_infophewasselect_apitophitsuservariants_chrposvariants_genevariants_rsidvariants_to_rsid

Dependencies:askpassclicurldplyrfansigenericsgluehttrjsonlitelifecyclemagrittrmimeopensslpillarpkgconfigR6rlangsystibbletidyselectutf8vctrswithr

Perform fast queries against a massive database of complete GWAS summary data

Rendered fromguide.Rmdusingknitr::rmarkdownon Mar 13 2025.

Last update: 2024-04-21
Started: 2019-11-06

Running local LD operations

Rendered fromlocal_ld.Rmdusingknitr::rmarkdownon Mar 13 2025.

Last update: 2024-03-12
Started: 2020-06-02

Readme and manuals

Help Manual

Help pageTopics
Look up allele frequencies and LD scores for 1000 genomes populations by chrposafl2_chrpos
Retrieve a allele frequency and LD scores for pre-defined lists of variantsafl2_list
Look up allele frequencies and LD scores for 1000 genomes populations by rsidafl2_rsid
Wrapper for sending queries and payloads to APIapi_query
MR-Base server statusapi_status
Query specific variants from specific GWASassociations
Extract batch name from study IDbatch_from_id
Get list of data batches in IEU GWAS databasebatches
Check if authentication has been madedcheck_access_token
Check if OpenGWAS allowance needs to be resetcheck_reset
Check datasets that are in process of being uploadededitcheck
Look up sample sizes when meta data is missing from associationsfill_n
Retrieve OpenGWAS JSON Web Token from .Renviron fileget_opengwas_jwt
Parse out json response from httr objectget_query_content
Get list of studies with available GWAS summary statistics through APIgwasinfo
Get list of download URLs each file (.vcf.gz, .vcf.gz.tbi, _report.html) associated with the dataset. The URLs will expire in 2 hours. If a dataset is missing from the results, that means the dataset doesn't exist or you don't have access to it. If a dataset is in the results but some/all links are missing, that means the files are unavailable.gwasinfo_files
Infer ancestry of GWAS dataset by matching against 1000 genomes allele frequenciesinfer_ancestry
Perform LD clumping on SNP datald_clump
Perform clumping on the chosen variants using through APIld_clump_api
Wrapper for clump function using local plink binary and ld reference datasetld_clump_local
Get LD matrix for list of SNPsld_matrix
Get LD matrix using local plink binary and reference datasetld_matrix_local
Check which rsids are present in a remote LD reference panelld_reflookup
Convert current IDs to legacy IDslegacy_ids
Details of how access token logs are usedlogging_info
Perform fast phewas of a specific variants against all available GWAS datasetsphewas
Print API statusprint.ApiStatus
Print GWAS informationprint.GwasInfo
Toggle API address between development and releaseselect_api
Set the reset time for OpenGWAS allowanceset_reset
Obtain top hits from a GWAS datasettophits
Get user detailsuser
Obtain information about chr pos and surrounding regionvariants_chrpos
Obtain variants around a genevariants_gene
Obtain information about rsidvariants_rsid
Convert mixed array of rsid and chrpos to list of rsidvariants_to_rsid