probe_to_385k: Finds nearest probe on hg18_385k

Description Usage Arguments Value Examples

Description

Returns nearest probe on a 385k array design in hg18 assembly

Usage

1
probe_to_385k(x, chrom)

Arguments

x

Numeric vector, with genomic coordinate of probe

chrom

Character or character vector (in the form "chr11", "chrX", etc.), with chromosome of probe. All elements must be identical.

Value

Numeric vector, with genomic coordinate of closest probe in the hg18_385k design

Examples

1
2
3
4
5
  # Create sample data
  library(data.table)
  dat <- data.table(chrom = c("chr1", "chr1"), pos = c(46348, 46349))
  dat[, pos_385k := map_to_385k(pos, chrom), by = chrom]
  dat

arnijohnsen/arjtools documentation built on May 10, 2019, 1:45 p.m.