chr_uniform: Uniform chromosome notation

Description Usage Arguments Value Examples

View source: R/chr_uniform.R

Description

This is a function for internal use in the package, it handles the standardize process of chromosome notation within the other functions.

Usage

1
chr_uniform(DT_in)

Arguments

DT_in,

a data.table with a columns named "chr"

Value

the same data.table in input with the "chr" uniformed to the notation "1", "2", ... , "23", "24" for the chromosomes 1:22, X and Y

Examples

1
2
3
DT <- data.table::data.table(chr= c("chr1", "chrX", "chr20"))
DT <- chr_uniform(DT)
DT

SinomeM/CNVgears documentation built on Nov. 21, 2021, 5:34 a.m.