A simple util function that used internally to generate display labels of GeneTrack and TxTrack.

strandlabel(labels, strands)

Arguments

labels

Character vector, names of each feature.

strands

Factor or character vector with the same length of labels, can be "+", "-" or "*".

Value

A character vector that combines the labels with strand information.

Examples

strandlabel(c("gene1", "gene2", "gene3"), c("+", "-", "*"))
#> [1] "gene1 >" "< gene2" "gene3"