check_coloc_data_format: Check coloc data format

View source: R/coloc_general_functions.R

check_coloc_data_formatR Documentation

Check coloc data format

Description

Checks that the necessary columns for coloc are present and are the correct type (num, character) currently for the betas requires: (i) SNP - chr/pos or rsids used to join the two datasets; (ii) beta; (iii) varbeta; (iv) maf (option depending on the check_maf argument).

Usage

check_coloc_data_format(df, beta_or_pval, check_maf)

Arguments

df

Dataframe to check the columns of

beta_or_pval

Either "beta" or "pval" depending on whether you want to use betas or pvals in the coloc analysis.

check_maf

lgl. Should function check if the maf is present?

Value

Inputted dataframe with columns the correct type.


RHReynolds/colochelpR documentation built on June 18, 2022, 5:53 a.m.