get_position: Append two columns, chromosome (chr) and position (pos), to...

View source: R/locuscompare.R

get_positionR Documentation

Append two columns, chromosome (chr) and position (pos), to the input data.frame.

Description

Append two columns, chromosome (chr) and position (pos), to the input data.frame.

Usage

get_position(x, genome = c("hg19", "hg38"))

Arguments

x

(data.frame) Input data.frame.

genome

(string, optional) Genome assembly, either 'hg19' or 'hg38'. Default: 'hg19'.

Examples

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

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