chr_pos_a1_a2 {gap} | R Documentation |
SNP id by chr:pos+a1/a2
Description
SNP id by chr:pos+a1/a2
Usage
chr_pos_a1_a2(
chr,
pos,
a1,
a2,
prefix = "chr",
seps = c(":", "_", "_"),
uppercase = TRUE
)
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. |
Details
This function generates unique identifiers for variants
Value
Identifier.
Examples
# rs12075
chr_pos_a1_a2(1,159175354,"A","G",prefix="chr",seps=c(":","_","_"),uppercase=TRUE)
[Package gap version 1.5-3 Index]