Learn R Programming

pedtools (version 0.9.0)

marker_select: Select or remove attached markers

Description

Functions for manipulating markers attached to a ped object.

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

markers

Either a character vector (with marker names), a numeric vector (with marker indices), or NULL

chroms

A vector of chromosome names, or NULL

fromPos

A single number or NULL

toPos

A single number or NULL

Value

The return values of these functions are:

  • selectMarkers() : a ped object where only the indicated markers are kept

  • removeMarkers() : a ped object where the indicated markers are removed

  • getMarkers() : a list of marker objects

  • whichMarkers() : an integer vector with indices of the indicated markers

See Also

setMarkers()