Learn R Programming

gaston (version 1.4.9)

is.autosome: 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 if chromosome ids

Value

A vector of logicals.

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"). It is used in particular in the default value of argument which.snps in GRM and LD.thin.

See Also

GRM, LD.thin