addINFO {geneHapR}R Documentation

Add Infomation to Haplotype Results

Description

add annotations to INFO fields used for plotHapTable()

Usage

addINFO(hap,
        tag = "", values = values,
        replace = FALSE, sep = ";")

sites(hap)

Arguments

hap

object of hapResult or hapSummary class

tag

tag names, usually is a single word used before "="

values

annotation for each site. Length of values must be equal with sites in hapResult

replace

whether replace origin INFOs in hapResult or not. Default as FALSE

sep

a character string to separate the terms. Not NA_character_.

Value

object of hapSummary or hapResult class with added/replaced INFOs

See Also

plotHapTable()

plotHapTable()

Examples


data("geneHapR_test")

# length of values must be equal with number of sites in hap result
values <- paste0("newInfo",c(1:9))
hapResult <- addINFO(hapResult, tag = "new", values = values, replace = TRUE)

data("geneHapR_test")

# check how many sites were concluded in hapResult/hapSummary
sites(hapResult)


[Package geneHapR version 1.2.4 Index]