Learn R Programming

gap (version 1.5-1)

chr_pos_a1_a2: SNP id by chr:pos+a1/a2

Description

This function generates unique identifiers for variants

Usage

chr_pos_a1_a2(
  chr,
  pos,
  a1,
  a2,
  prefix = "chr",
  seps = c(":", "_", "_"),
  uppercase = TRUE
)

Value

Identifier.

Arguments

chr

Chromosome.

pos

Position.

a1

Allele 1.

a2

Allele 2.

prefix

Prefix of the identifier.

seps

Delimiters.

uppercase

A flag to return in upper case.

Examples

Run this code
# rs12075
chr_pos_a1_a2(1,159175354,"A","G",prefix="chr",seps=c(":","_","_"),uppercase=TRUE)

Run the code above in your browser using DataLab