addID | R Documentation |
Populate the ID column of VCF data by concatenating the chromosome, position and optionally an index.
addID(x, sep = "_")
x |
an object of class vcfR or chromR. |
sep |
a character string to separate the terms. |
Variant callers typically leave the ID column empty in VCF data. However, the VCF data may potentially include variants with IDs as well as variants without. This function populates the missing elements by concatenating the chromosome and position. When this concatenation results in non-unique names, an index is added to force uniqueness.
data(vcfR_test)
head(vcfR_test)
vcfR_test <- addID(vcfR_test)
head(vcfR_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.