numericCHR: Conversion of chromosome IDs between numeric and character
Description
The function converts chromosomal ids to their numeric form, and the sex
chromosomes to values between 98 and 100.
This simplifies sorting on chromosome ID
character/numeric vector for both functions the mode of the input
is not forced. For numericCHR strings "X","Y" and "XY" are converted
to 98,99 and 100 respectively.
prefix
character, string is excluded from (numericCHR) or prepended to (characterCHR) all items of the output
Value
numericCHR returns a numeric vector of same length as CHRcharacterCHR returns a character vector of same length as CHR