View source: R/import_functions.R
importPlink2 | R Documentation |
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.
importPlink2(association_file, variable_type, eaf_file, phenotype)
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) |
data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.