importPlink2: Import Plink 2 Associations

View source: R/import_functions.R

importPlink2R Documentation

Import Plink 2 Associations

Description

This function takes the output from the plink 2 -glm output and returns a data frame readable by the TwoSampleMR package. Users can choose to include .freq files with details concerning allele frequencies and these will be included in the output data frame which aids in the process of harmonisation when using the harmonise_data() function from the TwoSampleMR package.

Usage

importPlink2(association_file, variable_type, eaf_file, phenotype)

Arguments

association_file

output from plink2 -glm function

variable_type

choose from c("exposure", "outcome")

eaf_file

.afreq output from plink2 detailing allele frequencies (optional)

phenotype

string detailing variable of interest (optional)

Value

data frame


asalzy/mrtryxhelpR documentation built on May 6, 2023, 11:52 p.m.