powered by
convert chromsome and position to the single genomic coordinate x
chrToX(chr, bp, genome = "hg19")
character: The chromosome. Both 'chr1' and '1' works. 'Chr1' does not.
integer: the position on the chromosome.
character: the genome, such as 'hg19', 'hg38' or 'mm10'. Default 'hg19'.
convert chromsome and position to the single genomic coordinate x.
# NOT RUN { xToPos(1e9) xToPos(1e9, genome='mm10') # }
Run the code above in your browser using DataLab