chromosome2numeric {SNPchip} | R Documentation

## Converts chromosome to numeric

### Description

Provides a standard way of converting chromosome annotation stored in `SnpLevelSet` objects to the numeric class.

### Usage

    chromosome2numeric(chromosome)

### Arguments

`chromosome` | an object inherited from `SnpLevelSet`

### Details

This is useful when sorting SNPs in an object by chromosome and physical position – ensures that the sorting is done in the same way for different objects.

The function currently provides the following conversions:

"X" -> 23 "XY" -> 24 "Y" -> 25 "M" -> 26

### Value

`numeric`

### Author(s)

R. Scharpf

[Package SNPchip version 1.4.0 Index]