Learn R Programming

gap (version 1.6)

inv_chr_pos_a1_a2: 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(":", "_", "_"))

Value

A data.frame with the following variables:

  • chr Chromosome.

  • pos Position.

  • a1 Allele 1.

  • a2 Allele 2.

Arguments

chr_pos_a1_a2

SNP id.

prefix

Prefix of the identifier.

seps

Delimiters of fields.

Examples

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

Run the code above in your browser using DataLab