mungesumstats_to_echolocatoR: Convert from 'MungeSumstats' to 'echolocatoR' format

View source: R/mungesumstats_to_echolocatoR.R

mungesumstats_to_echolocatoRR Documentation

Convert from MungeSumstats to echolocatoR format

Description

Convert column names between package-specific formats. Optionally, can also be used to first automatically standardise column names by setting standardise_colnames=TRUE before converting to echolocatoR format.

Usage

mungesumstats_to_echolocatoR(dat, standardise_colnames = FALSE, verbose = TRUE)

Arguments

dat

A data.table of SNP-level summary statistics.

standardise_colnames

Automatically rename all columns to a standard nomenclature using standardise_header.

verbose

Print messages.

Examples

 
dat <- dplyr::rename(echodata::BST1, BPOS=POS, SEBETA=StdErr, B=Effect)
dat_echoR <- echodata::mungesumstats_to_echolocatoR(
    dat=dat,
    standardise_colnames=TRUE)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.