inv_chr_pos_a1_a2: Retrieval of chr:pos+a1/a2 according to SNP id

View source: R/snpid.R

inv_chr_pos_a1_a2R Documentation

Retrieval of chr:pos+a1/a2 according to SNP id

Description

This function obtains information embedded in unique identifiers.

Usage

inv_chr_pos_a1_a2(chr_pos_a1_a2, prefix = "chr", seps = c(":", "_", "_"))

Arguments

chr_pos_a1_a2

SNP id.

prefix

Prefix of the identifier.

seps

Delimiters of fields.

Value

A data.frame with the following variables:

  • chr Chromosome.

  • pos Position.

  • a1 Allele 1.

  • a2 Allele 2.

Examples

# rs12075
inv_chr_pos_a1_a2("chr1:159175354_A_G",prefix="chr",seps=c(":","_","_"))

gap documentation built on Sept. 11, 2024, 5:36 p.m.