chrp {GMRP} | R Documentation |
Split string hg19 into two numeric columns: chr and posit.
chrp(hg)
hg |
character vector represented with codechr##.####### where chr## is chromosome number and |
chrp can convert chr##.#######
into two numeric columns: chr(chromosome number) and posit(SNP position)
Return two numeric vectors: chrosomome number and SNP position
If there is chrX.######### in the data sheet, then user should change chrX.######## to chr23.#######.
hg may also be hg18. User can also use packages GenomicRanges to retrieve chromosome # and SNP position.
Yuan-De Tan tanyuande@gmail.com
\Dajiang Liu
mktable
,link{GenomicRanges}[Granges]
,link{GenomicRanges}[IRangs]
,link{GenomicRanges}[DataFrame]
data(lpd.data) lpd<-lpd.data hg19<-lpd$SNP_hg19.HDL chr<-chrp(hg=hg19)