position2Cytoband: Determine cytoband position based on location of probe

Description Usage Arguments Value Author(s) See Also Examples

View source: R/quantsmoothplot.R

Description

Determine cytoband position based on location of probe

Usage

1
position2Cytoband(chrom, position, units = "hg19", bands = c("major", "minor"))

Arguments

chrom

chromosomal id, chromosome to plot 1:22,X,Y

position

numeric vector

units

character, type of positional unit

bands

chararcter, type of cytoband

Value

Character vector with cytobands, if an illegal position was used, the value "-" is returned. All positions within a single function call should be for a single chromosome

Author(s)

Jan Oosting

See Also

lengthChromosome

Examples

1
2
   position2Cytoband(1,c(50e6,125e6,200e6),units="bases")
   position2Cytoband(1,c(50,125,200),units="cM",bands="minor")

Example output

Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: grid
[1] "1p33"   "1q11"   "1q32.1"
[1] "1p36.12b" "1p22.2a"  "1q31.1b" 

quantsmooth documentation built on Nov. 8, 2020, 8:27 p.m.