number: Convert chromosome names (character) to numeric

Description Usage Arguments Value Note

View source: R/MADGiC.R

Description

Function that converts character chromosome names (including those using "X" and "Y") to numeric values 1-24

Usage

1
  number(x)

Arguments

x

a character, one of "1", "2", ..., "24", "X", "Y"

Value

an integer between 1 and 24. "X" is converted to 23 and "Y" is converted to 24. All other values just change classes from character to numeric ("1" -> 1).

Note

This internal function is not intended to be called by the user.


kdkorthauer/MADGiC documentation built on June 13, 2020, 1:35 p.m.