infer_chrom_type: Infer chromosome type

View source: R/infer_chrom_type.R

infer_chrom_typeR Documentation

Infer chromosome type

Description

In a given vector or stored table, determine whether chromosome type is of the format "chr1" (returns TRUE) or 1 (returns FALSE).

Usage

infer_chrom_type(chrom = NULL, path = NULL, chrom_col = "CHR", verbose = TRUE)

Arguments

chrom

A value (character, numeric, or integer) giving an example of the chromosome column.

path

Path to stored file.

chrom_col

The name of the chromosome column in the file.

verbose

Print messages.

Examples

echotabix::infer_chrom_type(chrom="chr1")
echotabix::infer_chrom_type(chrom=1)

RajLabMSSM/echotabix documentation built on Nov. 21, 2023, 8:02 a.m.