Learn R Programming

onemap (version 0.1-1)

extract.group: Extracts a linkage group for further analysis

Description

Takes as input an object of class group and extracts a linkage group that is going to be ordered.

Usage

extract.group(w, i = NULL)

Arguments

w
an object of class group.
i
number of the linkage group to be extracted, according to the numeration found in object w.

Value

  • Returns an object of class extracted.group, which is a list containing the following components:
  • marnamesnames of markers present in linkage group i, according to the original input file.
  • numbernumber of the linkage group extracted, according to the numeration in object w.
  • orinamename of the original object of class rf.2pts used to generate the object of class group, i.e., containing the results of two-point analyses.
  • namename of the object of class group used as input, i.e., containing the information on linkage groups.

See Also

group, print.group and remove.marker

Examples

Run this code
data(example_out)
  twopts <- est.rf.2pts(example_out)

  link_gr <- group(twopts)
  LG1 <- extract.group(link_gr, 1) # extracts the first linkage group
  LG1

Run the code above in your browser using DataLab