Learn R Programming

quantsmooth (version 1.38.0)

position2Cytoband: Determine cytoband position based on location of probe

Description

Determine cytoband position based on location of probe

Usage

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

See Also

lengthChromosome

Examples

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

Run the code above in your browser using DataLab