
Build instrument table from user-provided data
createInstrumentTable.RdCreates a properly formatted instrument table from user-provided GWAS summary statistics, bypassing the OpenGWAS API. Useful when working offline or with custom GWAS results not available in OpenGWAS.
Usage
createInstrumentTable(
snpId,
effectAllele,
otherAllele,
betaZX,
seZX,
pvalZX,
eaf,
geneRegion = NULL
)Arguments
- snpId
Character vector of SNP rsIDs.
- effectAllele
Character vector of effect alleles.
- otherAllele
Character vector of other alleles.
- betaZX
Numeric vector of SNP-exposure effect estimates.
- seZX
Numeric vector of standard errors.
- pvalZX
Numeric vector of p-values.
- eaf
Numeric vector of effect allele frequencies.
- geneRegion
Optional character vector of gene/region annotations.
Value
A data frame with the same structure as getMRInstruments
output.