is.autosome: Autosomes and X, Y, MT chromosomes

View source: R/bm_select.r

is.autosomeR Documentation

Autosomes and X, Y, MT chromosomes

Description

Test if a chromosome id corresponds to an autosome or to X, Y, MT chromosomes

Usage

  is.autosome(chr)
  is.chr.x(chr)
  is.chr.y(chr)
  is.chr.mt(chr)

Arguments

chr

A vector of chromosome ids

Details

These functions work by comparing the ids given in parameters with the options gaston.autosomes, gaston.chr.x, gaston.chr.y, gaston.chr.mt.

For example, is.autosome(chr) is a short cut for chr %in% getOption("gaston.autosomes").

Value

A logical vector.

Author(s)

Hervé Perdry


gaston documentation built on May 29, 2024, 7:33 a.m.