CAMERA_local class
CAMERA_local.Rd
A simple wrapper function for importing data from local files for use with the CAMERA class.
Methods
Method new()
Create a new dataset and initialise an R interface
Usage
CAMERA_local$new(
metadata,
ld_ref,
plink_bin,
mc.cores = 1,
radius = 25000,
pthresh = 5e-08,
minmaf = 0.01
)
Arguments
metadata
Data frame with information about the data. One row per dataset. See details for info on columns
ld_ref
Data frame with two columns - pop = population (referencing the pop values in metadata), bfile = path to plink file for that reference
plink_bin
Location of executable plink (ver.1.90 is recommended)
radius
Genomic window size to extract SNPs
pthresh
P-value threshold for instrument inclusion
minmaf
Minimum allelel frequency per dataset
clump_pop
Reference population for clumping