The function takes in a biomarker of interest (mediator or gene) and gather the cis-genotypes in a user-defined window around the biomarker.

getCisGenotypes(biomInt, locs, snps, snpLocs, cisDist = 5e+05)

Arguments

biomInt

character, identifier for biomarker of interest

locs

data frame, location file for the biomarkers

snps

data frame, SNP dosages

snpLocs

data frame, MatrixEQTL locations for SNPs

cisDist

numeric, window for cis distance

Value

list with matrix of cis-genotypes, vector of SNP names, and data frame of SNP locations