marker_select {pedtools}R Documentation

Select or remove attached markers

Description

Functions for manipulating markers attached to ped objects.

Usage

selectMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL, toPos = NULL)

getMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL, toPos = NULL)

removeMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL, toPos = NULL)

whichMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL, toPos = NULL)

Arguments

x

A ped object, or a list of such

markers

Either a character vector (with marker names), a numeric vector (with marker indices), a logical (of length nMarkers(x)), or NULL.

chroms

A vector of chromosome names, or NULL

fromPos

A single number or NULL

toPos

A single number or NULL

Details

If markers consists of negative integers, it will be converted to its complement within 1:nMarkers(x).

Value

The return values of these functions are:

See Also

setMarkers()


[Package pedtools version 2.6.0 Index]