read_metal: Read association summary statistics from file and append...

View source: R/locuscompare.R

read_metalR Documentation

Read association summary statistics from file and append column. The file must contain 2 columns: markers, i.e SNPs, and p-value. The marker column should contain SNP rsIDs.

Description

Read association summary statistics from file and append column. The file must contain 2 columns: markers, i.e SNPs, and p-value. The marker column should contain SNP rsIDs.

Usage

read_metal(in_fn, marker_col = "rsid", pval_col = "pval")

Arguments

in_fn

(string) Path to the input file.

marker_col

(string, optional) Name of the marker column. Default: 'rsid'.

pval_col

(string, optional) Name of the p-value column. Default: 'pval'.

Examples

in_fn = system.file('extdata', 'gwas.tsv', package = 'locuscomparer')
d1 = read_metal(in_fn, marker_col = 'rsid', pval_col = 'pval')

boxiangliu/locuscomparer documentation built on Nov. 27, 2022, 7:26 a.m.