Skip to contents

Given a revmap row (e.g. 1 5 6), we map those positions to their corresponding probe names (and end up with something like "cg00000029", "cg00000158", "cg00000165".This is a helper function of findVML()).

Usage

map_revmap_names(positions, manifest_hvp)

Arguments

positions

A revmap row in the form of a vector

manifest_hvp

the manifest of the highly variable probes used in the findVML() function with the probes as row names

Value

a vector with the names of the probes that conform one reduced region

Examples

if (FALSE) { # \dontrun{
  target = data.frame(row.names = c("a", "b", "c", "d"), values = c(1,1,1,1))
  query = c(2,1)

  map_revmap_names(positions = query, manifest_hvp = target)
  ## Expected output: c("b", "a")
} # }