getCisGenotypes: Gather the cis-genotypes for a given biomarker

View source: R/getCisGenotypes.R

getCisGenotypesR Documentation

Gather the cis-genotypes for a given biomarker

Description

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

Usage

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


bhattacharya-a-bt/MOSTWAS documentation built on April 6, 2023, 12:20 a.m.