You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/afl2.r
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,15 @@
8
8
#' @param variantlist Choose pre-defined list. `"reduced"` = ~20k SNPs that are
9
9
#' common in all super populations (default). `"hapmap3"` = ~1.3 million hm3 SNPs
10
10
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
11
+
#' @param ... Additional arguments passed to `api_query()`.
11
12
#'
12
13
#' @export
13
14
#' @return Data frame containing ancestry specific LD scores and allele frequencies for each variant
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
39
+
#' @param ... Additional arguments passed to `api_query()`.
38
40
#'
39
41
#' @export
40
42
#' @return Data frame containing ancestry specific LD scores and allele frequencies for each variant
#' Also allows ranges e.g `"7:105561135-105563135"`
58
60
#' @param reference Default=`"1000g"`
59
61
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
62
+
#' @param ... Additional arguments passed to `api_query()`.
60
63
#'
61
64
#' @export
62
65
#' @return Data frame containing ancestry specific LD scores and allele frequencies for each variant
#' @param snpinfo Output from [`afl2_list`], [`afl2_rsid`] or [`afl2_chrpos`].
84
87
#' If `NULL` then [`afl2_list()`] is used by default
85
88
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
89
+
#' @param ... Additional arguments passed to `afl2_list()`
86
90
#'
87
91
#' @export
88
92
#' @return data frame ordered by most likely ancestry, each row represents a super population and cor column represents the correlation between the GWAS dataset and the 1000 genomes super population allele frequencies
#' @param pop Super-population to use as reference panel. Default = `"EUR"`.
107
108
#' Options are `"EUR"`, `"SAS"`, `"EAS"`, `"AFR"`, `"AMR"`
108
109
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
110
+
#' @param ... Additional arguments passed to `api_query()`.
109
111
#' @return Data frame of only independent variants
#' @param pop Super-population to use as reference panel. Default = `"EUR"`.
196
198
#' Options are `"EUR"`, `"SAS"`, `"EAS"`, `"AFR"`, `"AMR"`
197
199
#' @param opengwas_jwt Used to authenticate protected endpoints. Login to <https://api.opengwas.io> to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT.
200
+
#' @param ... Additional arguments passed to `api_query()`.
198
201
#'
199
202
#' @export
200
203
#' @return Array of rsids that are present in the LD reference panel
stop("SNP list must be smaller than 500. Try running locally by providing local ld reference with bfile argument. See vignettes for a guide on how to do this.")
0 commit comments