chrToX: convert chromsome and position to the single genomic...

View source: R/getVariantsByIndividual.R

chrToXR Documentation

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

xToPos(1e9)
xToPos(1e9, genome='mm10')

ChristofferFlensburg/superFreq documentation built on Nov. 15, 2023, 6:15 a.m.