Learn R Programming

superFreq (version 1.2.3)

chrToX: convert chromsome and position to the single genomic coordinate x

Description

convert chromsome and position to the single genomic coordinate x

Usage

chrToX(chr, bp, genome = "hg19")

Arguments

chr

character: The chromosome. Both 'chr1' and '1' works. 'Chr1' does not.

bp

integer: the position on the chromosome.

genome

character: the genome, such as 'hg19', 'hg38' or 'mm10'. Default 'hg19'.

Details

convert chromsome and position to the single genomic coordinate x.

Examples

Run this code
# NOT RUN {
xToPos(1e9)
xToPos(1e9, genome='mm10')
# }

Run the code above in your browser using DataLab