Learn R Programming

GMRP (version 1.0.0)

chrp: Split hg19

Description

Split string hg19 into two numeric columns: chr and posit.

Usage

chrp(hg)

Arguments

hg
character vector represented with code{chr##.#######} where chr## is chromosome number and .####### is SNP site (bp).

Value

  • Return two numeric vectors: chrosomome number and SNP position

Details

chrp can convert chr##.####### into two numeric columns: chr(chromosome number) and posit(SNP position)

See Also

mktable,link{GenomicRanges}[Granges],link{GenomicRanges}[IRangs],link{GenomicRanges}[DataFrame]

Examples

Run this code
data(lpd.data)
lpd<-lpd.data
hg19<-lpd$SNP_hg19.HDL
chr<-chrp(hg=hg19)

Run the code above in your browser using DataLab